Lines Matching refs:cmd
38 #define DPRC_RSP_GET_CONTAINER_ID(cmd, container_id) \ argument
39 MC_RSP_OP(cmd, 0, 0, 32, int, container_id)
42 #define DPRC_CMD_OPEN(cmd, container_id) \ argument
43 MC_CMD_OP(cmd, 0, 0, 32, int, container_id)
46 #define DPRC_CMD_CREATE_CONTAINER(cmd, cfg) \ argument
48 MC_CMD_OP(cmd, 0, 32, 16, uint16_t, cfg->icid); \
49 MC_CMD_OP(cmd, 0, 0, 32, uint32_t, cfg->options); \
50 MC_CMD_OP(cmd, 1, 32, 32, int, cfg->portal_id); \
51 MC_CMD_OP(cmd, 2, 0, 8, char, cfg->label[0]);\
52 MC_CMD_OP(cmd, 2, 8, 8, char, cfg->label[1]);\
53 MC_CMD_OP(cmd, 2, 16, 8, char, cfg->label[2]);\
54 MC_CMD_OP(cmd, 2, 24, 8, char, cfg->label[3]);\
55 MC_CMD_OP(cmd, 2, 32, 8, char, cfg->label[4]);\
56 MC_CMD_OP(cmd, 2, 40, 8, char, cfg->label[5]);\
57 MC_CMD_OP(cmd, 2, 48, 8, char, cfg->label[6]);\
58 MC_CMD_OP(cmd, 2, 56, 8, char, cfg->label[7]);\
59 MC_CMD_OP(cmd, 3, 0, 8, char, cfg->label[8]);\
60 MC_CMD_OP(cmd, 3, 8, 8, char, cfg->label[9]);\
61 MC_CMD_OP(cmd, 3, 16, 8, char, cfg->label[10]);\
62 MC_CMD_OP(cmd, 3, 24, 8, char, cfg->label[11]);\
63 MC_CMD_OP(cmd, 3, 32, 8, char, cfg->label[12]);\
64 MC_CMD_OP(cmd, 3, 40, 8, char, cfg->label[13]);\
65 MC_CMD_OP(cmd, 3, 48, 8, char, cfg->label[14]);\
66 MC_CMD_OP(cmd, 3, 56, 8, char, cfg->label[15]);\
70 #define DPRC_RSP_CREATE_CONTAINER(cmd, child_container_id, child_portal_offset)\ argument
72 MC_RSP_OP(cmd, 1, 0, 32, int, child_container_id); \
73 MC_RSP_OP(cmd, 2, 0, 64, uint64_t, child_portal_offset);\
77 #define DPRC_CMD_DESTROY_CONTAINER(cmd, child_container_id) \ argument
78 MC_CMD_OP(cmd, 0, 0, 32, int, child_container_id)
81 #define DPRC_CMD_RESET_CONTAINER(cmd, child_container_id) \ argument
82 MC_CMD_OP(cmd, 0, 0, 32, int, child_container_id)
85 #define DPRC_RSP_GET_ATTRIBUTES(cmd, attr) \ argument
87 MC_RSP_OP(cmd, 0, 0, 32, int, attr->container_id); \
88 MC_RSP_OP(cmd, 0, 32, 16, uint16_t, attr->icid); \
89 MC_RSP_OP(cmd, 1, 0, 32, uint32_t, attr->options);\
90 MC_RSP_OP(cmd, 1, 32, 32, int, attr->portal_id); \
94 #define DPRC_RSP_GET_OBJ_COUNT(cmd, obj_count) \ argument
95 MC_RSP_OP(cmd, 0, 32, 32, int, obj_count)
98 #define DPRC_CMD_GET_OBJ(cmd, obj_index) \ argument
99 MC_CMD_OP(cmd, 0, 0, 32, int, obj_index)
102 #define DPRC_RSP_GET_OBJ(cmd, obj_desc) \ argument
104 MC_RSP_OP(cmd, 0, 32, 32, int, obj_desc->id); \
105 MC_RSP_OP(cmd, 1, 0, 16, uint16_t, obj_desc->vendor); \
106 MC_RSP_OP(cmd, 1, 16, 8, uint8_t, obj_desc->irq_count); \
107 MC_RSP_OP(cmd, 1, 24, 8, uint8_t, obj_desc->region_count); \
108 MC_RSP_OP(cmd, 1, 32, 32, uint32_t, obj_desc->state);\
109 MC_RSP_OP(cmd, 2, 0, 16, uint16_t, obj_desc->ver_major);\
110 MC_RSP_OP(cmd, 2, 16, 16, uint16_t, obj_desc->ver_minor);\
111 MC_RSP_OP(cmd, 2, 32, 16, uint16_t, obj_desc->flags); \
112 MC_RSP_OP(cmd, 3, 0, 8, char, obj_desc->type[0]);\
113 MC_RSP_OP(cmd, 3, 8, 8, char, obj_desc->type[1]);\
114 MC_RSP_OP(cmd, 3, 16, 8, char, obj_desc->type[2]);\
115 MC_RSP_OP(cmd, 3, 24, 8, char, obj_desc->type[3]);\
116 MC_RSP_OP(cmd, 3, 32, 8, char, obj_desc->type[4]);\
117 MC_RSP_OP(cmd, 3, 40, 8, char, obj_desc->type[5]);\
118 MC_RSP_OP(cmd, 3, 48, 8, char, obj_desc->type[6]);\
119 MC_RSP_OP(cmd, 3, 56, 8, char, obj_desc->type[7]);\
120 MC_RSP_OP(cmd, 4, 0, 8, char, obj_desc->type[8]);\
121 MC_RSP_OP(cmd, 4, 8, 8, char, obj_desc->type[9]);\
122 MC_RSP_OP(cmd, 4, 16, 8, char, obj_desc->type[10]);\
123 MC_RSP_OP(cmd, 4, 24, 8, char, obj_desc->type[11]);\
124 MC_RSP_OP(cmd, 4, 32, 8, char, obj_desc->type[12]);\
125 MC_RSP_OP(cmd, 4, 40, 8, char, obj_desc->type[13]);\
126 MC_RSP_OP(cmd, 4, 48, 8, char, obj_desc->type[14]);\
127 MC_RSP_OP(cmd, 4, 56, 8, char, obj_desc->type[15]);\
128 MC_RSP_OP(cmd, 5, 0, 8, char, obj_desc->label[0]);\
129 MC_RSP_OP(cmd, 5, 8, 8, char, obj_desc->label[1]);\
130 MC_RSP_OP(cmd, 5, 16, 8, char, obj_desc->label[2]);\
131 MC_RSP_OP(cmd, 5, 24, 8, char, obj_desc->label[3]);\
132 MC_RSP_OP(cmd, 5, 32, 8, char, obj_desc->label[4]);\
133 MC_RSP_OP(cmd, 5, 40, 8, char, obj_desc->label[5]);\
134 MC_RSP_OP(cmd, 5, 48, 8, char, obj_desc->label[6]);\
135 MC_RSP_OP(cmd, 5, 56, 8, char, obj_desc->label[7]);\
136 MC_RSP_OP(cmd, 6, 0, 8, char, obj_desc->label[8]);\
137 MC_RSP_OP(cmd, 6, 8, 8, char, obj_desc->label[9]);\
138 MC_RSP_OP(cmd, 6, 16, 8, char, obj_desc->label[10]);\
139 MC_RSP_OP(cmd, 6, 24, 8, char, obj_desc->label[11]);\
140 MC_RSP_OP(cmd, 6, 32, 8, char, obj_desc->label[12]);\
141 MC_RSP_OP(cmd, 6, 40, 8, char, obj_desc->label[13]);\
142 MC_RSP_OP(cmd, 6, 48, 8, char, obj_desc->label[14]);\
143 MC_RSP_OP(cmd, 6, 56, 8, char, obj_desc->label[15]);\
147 #define DPRC_CMD_GET_OBJ_DESC(cmd, obj_type, obj_id) \ argument
149 MC_CMD_OP(cmd, 0, 0, 32, int, obj_id);\
150 MC_CMD_OP(cmd, 1, 0, 8, char, obj_type[0]);\
151 MC_CMD_OP(cmd, 1, 8, 8, char, obj_type[1]);\
152 MC_CMD_OP(cmd, 1, 16, 8, char, obj_type[2]);\
153 MC_CMD_OP(cmd, 1, 24, 8, char, obj_type[3]);\
154 MC_CMD_OP(cmd, 1, 32, 8, char, obj_type[4]);\
155 MC_CMD_OP(cmd, 1, 40, 8, char, obj_type[5]);\
156 MC_CMD_OP(cmd, 1, 48, 8, char, obj_type[6]);\
157 MC_CMD_OP(cmd, 1, 56, 8, char, obj_type[7]);\
158 MC_CMD_OP(cmd, 2, 0, 8, char, obj_type[8]);\
159 MC_CMD_OP(cmd, 2, 8, 8, char, obj_type[9]);\
160 MC_CMD_OP(cmd, 2, 16, 8, char, obj_type[10]);\
161 MC_CMD_OP(cmd, 2, 24, 8, char, obj_type[11]);\
162 MC_CMD_OP(cmd, 2, 32, 8, char, obj_type[12]);\
163 MC_CMD_OP(cmd, 2, 40, 8, char, obj_type[13]);\
164 MC_CMD_OP(cmd, 2, 48, 8, char, obj_type[14]);\
165 MC_CMD_OP(cmd, 2, 56, 8, char, obj_type[15]);\
169 #define DPRC_RSP_GET_OBJ_DESC(cmd, obj_desc) \ argument
171 MC_RSP_OP(cmd, 0, 32, 32, int, obj_desc->id); \
172 MC_RSP_OP(cmd, 1, 0, 16, uint16_t, obj_desc->vendor); \
173 MC_RSP_OP(cmd, 1, 16, 8, uint8_t, obj_desc->irq_count); \
174 MC_RSP_OP(cmd, 1, 24, 8, uint8_t, obj_desc->region_count); \
175 MC_RSP_OP(cmd, 1, 32, 32, uint32_t, obj_desc->state);\
176 MC_RSP_OP(cmd, 2, 0, 16, uint16_t, obj_desc->ver_major);\
177 MC_RSP_OP(cmd, 2, 16, 16, uint16_t, obj_desc->ver_minor);\
178 MC_RSP_OP(cmd, 2, 32, 16, uint16_t, obj_desc->flags); \
179 MC_RSP_OP(cmd, 3, 0, 8, char, obj_desc->type[0]);\
180 MC_RSP_OP(cmd, 3, 8, 8, char, obj_desc->type[1]);\
181 MC_RSP_OP(cmd, 3, 16, 8, char, obj_desc->type[2]);\
182 MC_RSP_OP(cmd, 3, 24, 8, char, obj_desc->type[3]);\
183 MC_RSP_OP(cmd, 3, 32, 8, char, obj_desc->type[4]);\
184 MC_RSP_OP(cmd, 3, 40, 8, char, obj_desc->type[5]);\
185 MC_RSP_OP(cmd, 3, 48, 8, char, obj_desc->type[6]);\
186 MC_RSP_OP(cmd, 3, 56, 8, char, obj_desc->type[7]);\
187 MC_RSP_OP(cmd, 4, 0, 8, char, obj_desc->type[8]);\
188 MC_RSP_OP(cmd, 4, 8, 8, char, obj_desc->type[9]);\
189 MC_RSP_OP(cmd, 4, 16, 8, char, obj_desc->type[10]);\
190 MC_RSP_OP(cmd, 4, 24, 8, char, obj_desc->type[11]);\
191 MC_RSP_OP(cmd, 4, 32, 8, char, obj_desc->type[12]);\
192 MC_RSP_OP(cmd, 4, 40, 8, char, obj_desc->type[13]);\
193 MC_RSP_OP(cmd, 4, 48, 8, char, obj_desc->type[14]);\
194 MC_RSP_OP(cmd, 4, 56, 8, char, obj_desc->type[15]);\
195 MC_RSP_OP(cmd, 5, 0, 8, char, obj_desc->label[0]);\
196 MC_RSP_OP(cmd, 5, 8, 8, char, obj_desc->label[1]);\
197 MC_RSP_OP(cmd, 5, 16, 8, char, obj_desc->label[2]);\
198 MC_RSP_OP(cmd, 5, 24, 8, char, obj_desc->label[3]);\
199 MC_RSP_OP(cmd, 5, 32, 8, char, obj_desc->label[4]);\
200 MC_RSP_OP(cmd, 5, 40, 8, char, obj_desc->label[5]);\
201 MC_RSP_OP(cmd, 5, 48, 8, char, obj_desc->label[6]);\
202 MC_RSP_OP(cmd, 5, 56, 8, char, obj_desc->label[7]);\
203 MC_RSP_OP(cmd, 6, 0, 8, char, obj_desc->label[8]);\
204 MC_RSP_OP(cmd, 6, 8, 8, char, obj_desc->label[9]);\
205 MC_RSP_OP(cmd, 6, 16, 8, char, obj_desc->label[10]);\
206 MC_RSP_OP(cmd, 6, 24, 8, char, obj_desc->label[11]);\
207 MC_RSP_OP(cmd, 6, 32, 8, char, obj_desc->label[12]);\
208 MC_RSP_OP(cmd, 6, 40, 8, char, obj_desc->label[13]);\
209 MC_RSP_OP(cmd, 6, 48, 8, char, obj_desc->label[14]);\
210 MC_RSP_OP(cmd, 6, 56, 8, char, obj_desc->label[15]);\
214 #define DPRC_CMD_GET_RES_COUNT(cmd, type) \ argument
216 MC_CMD_OP(cmd, 1, 0, 8, char, type[0]);\
217 MC_CMD_OP(cmd, 1, 8, 8, char, type[1]);\
218 MC_CMD_OP(cmd, 1, 16, 8, char, type[2]);\
219 MC_CMD_OP(cmd, 1, 24, 8, char, type[3]);\
220 MC_CMD_OP(cmd, 1, 32, 8, char, type[4]);\
221 MC_CMD_OP(cmd, 1, 40, 8, char, type[5]);\
222 MC_CMD_OP(cmd, 1, 48, 8, char, type[6]);\
223 MC_CMD_OP(cmd, 1, 56, 8, char, type[7]);\
224 MC_CMD_OP(cmd, 2, 0, 8, char, type[8]);\
225 MC_CMD_OP(cmd, 2, 8, 8, char, type[9]);\
226 MC_CMD_OP(cmd, 2, 16, 8, char, type[10]);\
227 MC_CMD_OP(cmd, 2, 24, 8, char, type[11]);\
228 MC_CMD_OP(cmd, 2, 32, 8, char, type[12]);\
229 MC_CMD_OP(cmd, 2, 40, 8, char, type[13]);\
230 MC_CMD_OP(cmd, 2, 48, 8, char, type[14]);\
231 MC_CMD_OP(cmd, 2, 56, 8, char, type[15]);\
235 #define DPRC_RSP_GET_RES_COUNT(cmd, res_count) \ argument
236 MC_RSP_OP(cmd, 0, 0, 32, int, res_count)
239 #define DPRC_CMD_GET_RES_IDS(cmd, range_desc, type) \ argument
241 MC_CMD_OP(cmd, 0, 42, 7, enum dprc_iter_status, \
243 MC_CMD_OP(cmd, 1, 0, 32, int, range_desc->base_id); \
244 MC_CMD_OP(cmd, 1, 32, 32, int, range_desc->last_id);\
245 MC_CMD_OP(cmd, 2, 0, 8, char, type[0]);\
246 MC_CMD_OP(cmd, 2, 8, 8, char, type[1]);\
247 MC_CMD_OP(cmd, 2, 16, 8, char, type[2]);\
248 MC_CMD_OP(cmd, 2, 24, 8, char, type[3]);\
249 MC_CMD_OP(cmd, 2, 32, 8, char, type[4]);\
250 MC_CMD_OP(cmd, 2, 40, 8, char, type[5]);\
251 MC_CMD_OP(cmd, 2, 48, 8, char, type[6]);\
252 MC_CMD_OP(cmd, 2, 56, 8, char, type[7]);\
253 MC_CMD_OP(cmd, 3, 0, 8, char, type[8]);\
254 MC_CMD_OP(cmd, 3, 8, 8, char, type[9]);\
255 MC_CMD_OP(cmd, 3, 16, 8, char, type[10]);\
256 MC_CMD_OP(cmd, 3, 24, 8, char, type[11]);\
257 MC_CMD_OP(cmd, 3, 32, 8, char, type[12]);\
258 MC_CMD_OP(cmd, 3, 40, 8, char, type[13]);\
259 MC_CMD_OP(cmd, 3, 48, 8, char, type[14]);\
260 MC_CMD_OP(cmd, 3, 56, 8, char, type[15]);\
264 #define DPRC_RSP_GET_RES_IDS(cmd, range_desc) \ argument
266 MC_RSP_OP(cmd, 0, 42, 7, enum dprc_iter_status, \
268 MC_RSP_OP(cmd, 1, 0, 32, int, range_desc->base_id); \
269 MC_RSP_OP(cmd, 1, 32, 32, int, range_desc->last_id);\
273 #define DPRC_CMD_GET_OBJ_REGION(cmd, obj_type, obj_id, region_index) \ argument
275 MC_CMD_OP(cmd, 0, 0, 32, int, obj_id); \
276 MC_CMD_OP(cmd, 0, 48, 8, uint8_t, region_index);\
277 MC_CMD_OP(cmd, 3, 0, 8, char, obj_type[0]);\
278 MC_CMD_OP(cmd, 3, 8, 8, char, obj_type[1]);\
279 MC_CMD_OP(cmd, 3, 16, 8, char, obj_type[2]);\
280 MC_CMD_OP(cmd, 3, 24, 8, char, obj_type[3]);\
281 MC_CMD_OP(cmd, 3, 32, 8, char, obj_type[4]);\
282 MC_CMD_OP(cmd, 3, 40, 8, char, obj_type[5]);\
283 MC_CMD_OP(cmd, 3, 48, 8, char, obj_type[6]);\
284 MC_CMD_OP(cmd, 3, 56, 8, char, obj_type[7]);\
285 MC_CMD_OP(cmd, 4, 0, 8, char, obj_type[8]);\
286 MC_CMD_OP(cmd, 4, 8, 8, char, obj_type[9]);\
287 MC_CMD_OP(cmd, 4, 16, 8, char, obj_type[10]);\
288 MC_CMD_OP(cmd, 4, 24, 8, char, obj_type[11]);\
289 MC_CMD_OP(cmd, 4, 32, 8, char, obj_type[12]);\
290 MC_CMD_OP(cmd, 4, 40, 8, char, obj_type[13]);\
291 MC_CMD_OP(cmd, 4, 48, 8, char, obj_type[14]);\
292 MC_CMD_OP(cmd, 4, 56, 8, char, obj_type[15]);\
296 #define DPRC_RSP_GET_OBJ_REGION(cmd, region_desc) \ argument
298 MC_RSP_OP(cmd, 1, 0, 32, uint32_t, region_desc->base_offset);\
299 MC_RSP_OP(cmd, 2, 0, 32, uint32_t, region_desc->size); \
300 MC_RSP_OP(cmd, 2, 32, 4, enum dprc_region_type, region_desc->type);\
301 MC_RSP_OP(cmd, 3, 0, 32, uint32_t, region_desc->flags);\
305 #define DPRC_CMD_SET_OBJ_LABEL(cmd, obj_type, obj_id, label) \ argument
307 MC_CMD_OP(cmd, 0, 0, 32, int, obj_id); \
308 MC_CMD_OP(cmd, 1, 0, 8, char, label[0]);\
309 MC_CMD_OP(cmd, 1, 8, 8, char, label[1]);\
310 MC_CMD_OP(cmd, 1, 16, 8, char, label[2]);\
311 MC_CMD_OP(cmd, 1, 24, 8, char, label[3]);\
312 MC_CMD_OP(cmd, 1, 32, 8, char, label[4]);\
313 MC_CMD_OP(cmd, 1, 40, 8, char, label[5]);\
314 MC_CMD_OP(cmd, 1, 48, 8, char, label[6]);\
315 MC_CMD_OP(cmd, 1, 56, 8, char, label[7]);\
316 MC_CMD_OP(cmd, 2, 0, 8, char, label[8]);\
317 MC_CMD_OP(cmd, 2, 8, 8, char, label[9]);\
318 MC_CMD_OP(cmd, 2, 16, 8, char, label[10]);\
319 MC_CMD_OP(cmd, 2, 24, 8, char, label[11]);\
320 MC_CMD_OP(cmd, 2, 32, 8, char, label[12]);\
321 MC_CMD_OP(cmd, 2, 40, 8, char, label[13]);\
322 MC_CMD_OP(cmd, 2, 48, 8, char, label[14]);\
323 MC_CMD_OP(cmd, 2, 56, 8, char, label[15]);\
324 MC_CMD_OP(cmd, 3, 0, 8, char, obj_type[0]);\
325 MC_CMD_OP(cmd, 3, 8, 8, char, obj_type[1]);\
326 MC_CMD_OP(cmd, 3, 16, 8, char, obj_type[2]);\
327 MC_CMD_OP(cmd, 3, 24, 8, char, obj_type[3]);\
328 MC_CMD_OP(cmd, 3, 32, 8, char, obj_type[4]);\
329 MC_CMD_OP(cmd, 3, 40, 8, char, obj_type[5]);\
330 MC_CMD_OP(cmd, 3, 48, 8, char, obj_type[6]);\
331 MC_CMD_OP(cmd, 3, 56, 8, char, obj_type[7]);\
332 MC_CMD_OP(cmd, 4, 0, 8, char, obj_type[8]);\
333 MC_CMD_OP(cmd, 4, 8, 8, char, obj_type[9]);\
334 MC_CMD_OP(cmd, 4, 16, 8, char, obj_type[10]);\
335 MC_CMD_OP(cmd, 4, 24, 8, char, obj_type[11]);\
336 MC_CMD_OP(cmd, 4, 32, 8, char, obj_type[12]);\
337 MC_CMD_OP(cmd, 4, 40, 8, char, obj_type[13]);\
338 MC_CMD_OP(cmd, 4, 48, 8, char, obj_type[14]);\
339 MC_CMD_OP(cmd, 4, 56, 8, char, obj_type[15]);\
343 #define DPRC_CMD_CONNECT(cmd, endpoint1, endpoint2, cfg) \ argument
345 MC_CMD_OP(cmd, 0, 0, 32, int, endpoint1->id); \
346 MC_CMD_OP(cmd, 0, 32, 32, int, endpoint1->if_id); \
347 MC_CMD_OP(cmd, 1, 0, 32, int, endpoint2->id); \
348 MC_CMD_OP(cmd, 1, 32, 32, int, endpoint2->if_id); \
349 MC_CMD_OP(cmd, 2, 0, 8, char, endpoint1->type[0]); \
350 MC_CMD_OP(cmd, 2, 8, 8, char, endpoint1->type[1]); \
351 MC_CMD_OP(cmd, 2, 16, 8, char, endpoint1->type[2]); \
352 MC_CMD_OP(cmd, 2, 24, 8, char, endpoint1->type[3]); \
353 MC_CMD_OP(cmd, 2, 32, 8, char, endpoint1->type[4]); \
354 MC_CMD_OP(cmd, 2, 40, 8, char, endpoint1->type[5]); \
355 MC_CMD_OP(cmd, 2, 48, 8, char, endpoint1->type[6]); \
356 MC_CMD_OP(cmd, 2, 56, 8, char, endpoint1->type[7]); \
357 MC_CMD_OP(cmd, 3, 0, 8, char, endpoint1->type[8]); \
358 MC_CMD_OP(cmd, 3, 8, 8, char, endpoint1->type[9]); \
359 MC_CMD_OP(cmd, 3, 16, 8, char, endpoint1->type[10]); \
360 MC_CMD_OP(cmd, 3, 24, 8, char, endpoint1->type[11]); \
361 MC_CMD_OP(cmd, 3, 32, 8, char, endpoint1->type[12]); \
362 MC_CMD_OP(cmd, 3, 40, 8, char, endpoint1->type[13]); \
363 MC_CMD_OP(cmd, 3, 48, 8, char, endpoint1->type[14]); \
364 MC_CMD_OP(cmd, 3, 56, 8, char, endpoint1->type[15]); \
365 MC_CMD_OP(cmd, 4, 0, 32, uint32_t, cfg->max_rate); \
366 MC_CMD_OP(cmd, 4, 32, 32, uint32_t, cfg->committed_rate); \
367 MC_CMD_OP(cmd, 5, 0, 8, char, endpoint2->type[0]); \
368 MC_CMD_OP(cmd, 5, 8, 8, char, endpoint2->type[1]); \
369 MC_CMD_OP(cmd, 5, 16, 8, char, endpoint2->type[2]); \
370 MC_CMD_OP(cmd, 5, 24, 8, char, endpoint2->type[3]); \
371 MC_CMD_OP(cmd, 5, 32, 8, char, endpoint2->type[4]); \
372 MC_CMD_OP(cmd, 5, 40, 8, char, endpoint2->type[5]); \
373 MC_CMD_OP(cmd, 5, 48, 8, char, endpoint2->type[6]); \
374 MC_CMD_OP(cmd, 5, 56, 8, char, endpoint2->type[7]); \
375 MC_CMD_OP(cmd, 6, 0, 8, char, endpoint2->type[8]); \
376 MC_CMD_OP(cmd, 6, 8, 8, char, endpoint2->type[9]); \
377 MC_CMD_OP(cmd, 6, 16, 8, char, endpoint2->type[10]); \
378 MC_CMD_OP(cmd, 6, 24, 8, char, endpoint2->type[11]); \
379 MC_CMD_OP(cmd, 6, 32, 8, char, endpoint2->type[12]); \
380 MC_CMD_OP(cmd, 6, 40, 8, char, endpoint2->type[13]); \
381 MC_CMD_OP(cmd, 6, 48, 8, char, endpoint2->type[14]); \
382 MC_CMD_OP(cmd, 6, 56, 8, char, endpoint2->type[15]); \
386 #define DPRC_CMD_DISCONNECT(cmd, endpoint) \ argument
388 MC_CMD_OP(cmd, 0, 0, 32, int, endpoint->id); \
389 MC_CMD_OP(cmd, 0, 32, 16, uint16_t, endpoint->if_id); \
390 MC_CMD_OP(cmd, 1, 0, 8, char, endpoint->type[0]); \
391 MC_CMD_OP(cmd, 1, 8, 8, char, endpoint->type[1]); \
392 MC_CMD_OP(cmd, 1, 16, 8, char, endpoint->type[2]); \
393 MC_CMD_OP(cmd, 1, 24, 8, char, endpoint->type[3]); \
394 MC_CMD_OP(cmd, 1, 32, 8, char, endpoint->type[4]); \
395 MC_CMD_OP(cmd, 1, 40, 8, char, endpoint->type[5]); \
396 MC_CMD_OP(cmd, 1, 48, 8, char, endpoint->type[6]); \
397 MC_CMD_OP(cmd, 1, 56, 8, char, endpoint->type[7]); \
398 MC_CMD_OP(cmd, 2, 0, 8, char, endpoint->type[8]); \
399 MC_CMD_OP(cmd, 2, 8, 8, char, endpoint->type[9]); \
400 MC_CMD_OP(cmd, 2, 16, 8, char, endpoint->type[10]); \
401 MC_CMD_OP(cmd, 2, 24, 8, char, endpoint->type[11]); \
402 MC_CMD_OP(cmd, 2, 32, 8, char, endpoint->type[12]); \
403 MC_CMD_OP(cmd, 2, 40, 8, char, endpoint->type[13]); \
404 MC_CMD_OP(cmd, 2, 48, 8, char, endpoint->type[14]); \
405 MC_CMD_OP(cmd, 2, 56, 8, char, endpoint->type[15]); \
409 #define DPRC_CMD_GET_CONNECTION(cmd, endpoint1) \ argument
411 MC_CMD_OP(cmd, 0, 0, 32, int, endpoint1->id); \
412 MC_CMD_OP(cmd, 0, 32, 32, int, endpoint1->if_id); \
413 MC_CMD_OP(cmd, 1, 0, 8, char, endpoint1->type[0]); \
414 MC_CMD_OP(cmd, 1, 8, 8, char, endpoint1->type[1]); \
415 MC_CMD_OP(cmd, 1, 16, 8, char, endpoint1->type[2]); \
416 MC_CMD_OP(cmd, 1, 24, 8, char, endpoint1->type[3]); \
417 MC_CMD_OP(cmd, 1, 32, 8, char, endpoint1->type[4]); \
418 MC_CMD_OP(cmd, 1, 40, 8, char, endpoint1->type[5]); \
419 MC_CMD_OP(cmd, 1, 48, 8, char, endpoint1->type[6]); \
420 MC_CMD_OP(cmd, 1, 56, 8, char, endpoint1->type[7]); \
421 MC_CMD_OP(cmd, 2, 0, 8, char, endpoint1->type[8]); \
422 MC_CMD_OP(cmd, 2, 8, 8, char, endpoint1->type[9]); \
423 MC_CMD_OP(cmd, 2, 16, 8, char, endpoint1->type[10]); \
424 MC_CMD_OP(cmd, 2, 24, 8, char, endpoint1->type[11]); \
425 MC_CMD_OP(cmd, 2, 32, 8, char, endpoint1->type[12]); \
426 MC_CMD_OP(cmd, 2, 40, 8, char, endpoint1->type[13]); \
427 MC_CMD_OP(cmd, 2, 48, 8, char, endpoint1->type[14]); \
428 MC_CMD_OP(cmd, 2, 56, 8, char, endpoint1->type[15]); \
432 #define DPRC_RSP_GET_CONNECTION(cmd, endpoint2, state) \ argument
434 MC_RSP_OP(cmd, 3, 0, 32, int, endpoint2->id); \
435 MC_RSP_OP(cmd, 3, 32, 16, uint16_t, endpoint2->if_id); \
436 MC_RSP_OP(cmd, 4, 0, 8, char, endpoint2->type[0]); \
437 MC_RSP_OP(cmd, 4, 8, 8, char, endpoint2->type[1]); \
438 MC_RSP_OP(cmd, 4, 16, 8, char, endpoint2->type[2]); \
439 MC_RSP_OP(cmd, 4, 24, 8, char, endpoint2->type[3]); \
440 MC_RSP_OP(cmd, 4, 32, 8, char, endpoint2->type[4]); \
441 MC_RSP_OP(cmd, 4, 40, 8, char, endpoint2->type[5]); \
442 MC_RSP_OP(cmd, 4, 48, 8, char, endpoint2->type[6]); \
443 MC_RSP_OP(cmd, 4, 56, 8, char, endpoint2->type[7]); \
444 MC_RSP_OP(cmd, 5, 0, 8, char, endpoint2->type[8]); \
445 MC_RSP_OP(cmd, 5, 8, 8, char, endpoint2->type[9]); \
446 MC_RSP_OP(cmd, 5, 16, 8, char, endpoint2->type[10]); \
447 MC_RSP_OP(cmd, 5, 24, 8, char, endpoint2->type[11]); \
448 MC_RSP_OP(cmd, 5, 32, 8, char, endpoint2->type[12]); \
449 MC_RSP_OP(cmd, 5, 40, 8, char, endpoint2->type[13]); \
450 MC_RSP_OP(cmd, 5, 48, 8, char, endpoint2->type[14]); \
451 MC_RSP_OP(cmd, 5, 56, 8, char, endpoint2->type[15]); \
452 MC_RSP_OP(cmd, 6, 0, 32, int, state); \