@@ -128,9 +128,11 @@ typedef enum {
128
128
AOCL_MMD_USES_YIELD = 5 , /* 1 if yield must be called to poll hw (int) */
129
129
/**
130
130
* The following can be combined in a bit field:
131
- * AOCL_MMD_PHYSICAL_MEMORY, AOCL_MMD_SVM_COARSE_GRAIN_BUFFER, AOCL_MMD_SVM_FINE_GRAIN_BUFFER, AOCL_MMD_SVM_FINE_GRAIN_SYSTEM.
132
- * Prior to 14.1, all existing devices supported physical memory and no types of SVM memory, so this
133
- * is the default when this operation returns '0' for board MMDs with a version prior to 14.1
131
+ * AOCL_MMD_PHYSICAL_MEMORY, AOCL_MMD_SVM_COARSE_GRAIN_BUFFER,
132
+ * AOCL_MMD_SVM_FINE_GRAIN_BUFFER, AOCL_MMD_SVM_FINE_GRAIN_SYSTEM.
133
+ * Prior to 14.1, all existing devices supported physical memory and no types
134
+ * of SVM memory, so this is the default when this operation returns '0' for
135
+ * board MMDs with a version prior to 14.1.
134
136
*/
135
137
AOCL_MMD_MEM_TYPES_SUPPORTED = 6 ,
136
138
} aocl_mmd_offline_info_t ;
@@ -140,7 +142,8 @@ typedef enum {
140
142
* Possible capabilities to return from AOCL_MMD_*_MEM_CAPABILITIES query
141
143
*/
142
144
/**
143
- * If not set allocation function is not supported, even if other capabilities are set.
145
+ * If not set allocation function is not supported, even if other capabilities
146
+ * are set.
144
147
*/
145
148
#define AOCL_MMD_MEM_CAPABILITY_SUPPORTED (1 << 0)
146
149
/**
@@ -172,7 +175,7 @@ typedef enum {
172
175
* AOCL_MMD_PLL_INTERFACES - the handle for each pll associated with each
173
176
* kernel interface. If a kernel interface is not clocked by acl_kernel_clk
174
177
* then return -1
175
- ** /
178
+ */
176
179
typedef enum {
177
180
AOCL_MMD_NUM_KERNEL_INTERFACES = 1 , /* Number of Kernel interfaces (int) */
178
181
AOCL_MMD_KERNEL_INTERFACES = 2 , /* Kernel interface (int*) */
@@ -198,7 +201,7 @@ typedef struct {
198
201
unsigned long long int exception_type ;
199
202
void * user_private_info ;
200
203
size_t user_cb ;
201
- }aocl_mmd_interrupt_info ;
204
+ } aocl_mmd_interrupt_info ;
202
205
203
206
typedef void (* aocl_mmd_interrupt_handler_fn )( int handle , void * user_data );
204
207
typedef void (* aocl_mmd_device_interrupt_handler_fn )( int handle , aocl_mmd_interrupt_info * data_in , void * user_data );
@@ -207,29 +210,30 @@ typedef void (*aocl_mmd_status_handler_fn)( int handle, void* user_data, aocl_mm
207
210
/**
208
211
* Host channel port IDs
209
212
*/
210
- typedef int aocl_mmd_hostchannel_port_id_t ;
211
- /**
212
- * Port ID for Avalon streaming interface startofpacket signal.
213
- */
214
- #define AOCL_MMD_HOSTCHANNEL_PORT_AVALON_SOP 1
215
- /**
216
- * Port ID for Avalon streaming interface endofpacket signal.
217
- * This port ID is currently shared with AXI streaming interface tlast signal.
218
- */
219
- #define AOCL_MMD_HOSTCHANNEL_PORT_AVALON_EOP 2
220
- /**
221
- * Port ID for Avalon streaming interface empty signal.
222
- */
223
- #define AOCL_MMD_HOSTCHANNEL_PORT_AVALON_EMPTY 3
224
- /**
225
- * Port ID for AXI streaming interface tlast signal.
226
- * This port ID is currently shared with Avalon streaming interface endofpacket signal.
227
- */
228
- #define AOCL_MMD_HOSTCHANNEL_PORT_AXI_TLAST 2
229
- /**
230
- * Port ID for AXI streaming interface tuser signal.
231
- */
232
- #define AOCL_MMD_HOSTCHANNEL_PORT_AXI_TUSER 4
213
+ typedef enum {
214
+ /**
215
+ * Unknown port ID.
216
+ */
217
+ AOCL_MMD_HOSTCHANNEL_PORT_UNKNOWN = -1 ,
218
+ /**
219
+ * Port ID for general data signal. This port ID is not to be used with
220
+ * aocl_mmd_hostchannel_get_sideband_buffer(), to get the MMD buffer for
221
+ * data port, user aocl_mmd_hostchannel_get_buffer() directly.
222
+ */
223
+ AOCL_MMD_HOSTCHANNEL_PORT_DATA = 0 ,
224
+ /**
225
+ * Port ID for Avalon streaming interface startofpacket signal.
226
+ */
227
+ AOCL_MMD_HOSTCHANNEL_PORT_AVALON_SOP = 1 ,
228
+ /**
229
+ * Port ID for Avalon streaming interface endofpacket signal.
230
+ */
231
+ AOCL_MMD_HOSTCHANNEL_PORT_AVALON_EOP = 2 ,
232
+ /**
233
+ * Port ID for Avalon streaming interface empty signal.
234
+ */
235
+ AOCL_MMD_HOSTCHANNEL_PORT_AVALON_EMPTY = 3 ,
236
+ } aocl_mmd_hostchannel_port_id_t ;
233
237
234
238
235
239
/**
@@ -254,10 +258,10 @@ typedef enum {
254
258
*/
255
259
AOCL_MMD_MEM_PROPERTIES_GLOBAL_MEMORY = 1 ,
256
260
/**
257
- * Specifies the index of a bank inside the global memory interface that can be found in
258
- * the board_spec.xml file for the BSP. Allocations will be allocated to this
259
- * memory bank. It is invalid to specify this property without also specifying
260
- * AOCL_MMD_GLOBAL_MEMORY_INTERFACE.
261
+ * Specifies the index of a bank inside the global memory interface that can be
262
+ * found in the board_spec.xml file for the BSP. Allocations will be allocated
263
+ * to this memory bank. It is invalid to specify this property without also
264
+ * specifying AOCL_MMD_GLOBAL_MEMORY_INTERFACE.
261
265
*/
262
266
AOCL_MMD_MEM_PROPERTIES_MEMORY_BANK ,
263
267
/**
@@ -463,11 +467,13 @@ AOCL_MMD_CALL int aocl_mmd_copy(
463
467
* Host Channel create operation
464
468
* Opens channel between host and kernel.
465
469
*
466
- * @param channel_name: Name of channel to initialize. Same name as used in board_spec.xml
470
+ * @param channel_name: Name of channel to initialize. Same name as used in
471
+ board_spec.xml
467
472
* @param queue_depth: The size in bytes of pinned memory queue in system memory
468
473
* @param direction: The direction of the channel
469
- * @return negative if initialization was unsuccessful, and positive otherwise. Positive
470
- * return value is handle to the channel to be used for subsequent calls for the channel.
474
+ * @return negative if initialization was unsuccessful, and positive otherwise.
475
+ Positive return value is handle to the channel to be used for
476
+ subsequent calls for the channel.
471
477
*/
472
478
AOCL_MMD_CALL int aocl_mmd_hostchannel_create (
473
479
int handle ,
@@ -481,8 +487,8 @@ AOCL_MMD_CALL int aocl_mmd_hostchannel_create(
481
487
* Host Channel destroy operation
482
488
* Closes channel between host and kernel.
483
489
*
484
- * @param channel: The handle to the channel to close, that was obtained with
485
- * create channel
490
+ * @param channel: The handle to the channel to close, that was obtained with
491
+ * create channel
486
492
* @return 0 if the destroy was successful, and negative otherwise.
487
493
*/
488
494
AOCL_MMD_CALL int aocl_mmd_hostchannel_destroy (
0 commit comments