summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/rtems/bsd/local/ifdi_if.h
blob: a1b924814ad1ac7d9bcde13b0627326043bda18f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
/*
 * This file is produced automatically.
 * Do not modify anything in here by hand.
 *
 * Created from source file
 *   freebsd-org/sys/net/ifdi_if.m
 * with
 *   makeobjops.awk
 *
 * See the source file for legal information
 */


#ifndef _ifdi_if_h_
#define _ifdi_if_h_

/** @brief Unique descriptor for the IFDI_ATTACH_PRE() method */
extern struct kobjop_desc ifdi_attach_pre_desc;
/** @brief A function implementing the IFDI_ATTACH_PRE() method */
typedef int ifdi_attach_pre_t(if_ctx_t _ctx);

static __inline int IFDI_ATTACH_PRE(if_ctx_t _ctx)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_attach_pre);
	rc = ((ifdi_attach_pre_t *) _m)(_ctx);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_ATTACH_POST() method */
extern struct kobjop_desc ifdi_attach_post_desc;
/** @brief A function implementing the IFDI_ATTACH_POST() method */
typedef int ifdi_attach_post_t(if_ctx_t _ctx);

static __inline int IFDI_ATTACH_POST(if_ctx_t _ctx)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_attach_post);
	rc = ((ifdi_attach_post_t *) _m)(_ctx);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_DETACH() method */
extern struct kobjop_desc ifdi_detach_desc;
/** @brief A function implementing the IFDI_DETACH() method */
typedef int ifdi_detach_t(if_ctx_t _ctx);

static __inline int IFDI_DETACH(if_ctx_t _ctx)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_detach);
	rc = ((ifdi_detach_t *) _m)(_ctx);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_SUSPEND() method */
extern struct kobjop_desc ifdi_suspend_desc;
/** @brief A function implementing the IFDI_SUSPEND() method */
typedef int ifdi_suspend_t(if_ctx_t _ctx);

static __inline int IFDI_SUSPEND(if_ctx_t _ctx)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_suspend);
	rc = ((ifdi_suspend_t *) _m)(_ctx);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_SHUTDOWN() method */
extern struct kobjop_desc ifdi_shutdown_desc;
/** @brief A function implementing the IFDI_SHUTDOWN() method */
typedef int ifdi_shutdown_t(if_ctx_t _ctx);

static __inline int IFDI_SHUTDOWN(if_ctx_t _ctx)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_shutdown);
	rc = ((ifdi_shutdown_t *) _m)(_ctx);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_RESUME() method */
extern struct kobjop_desc ifdi_resume_desc;
/** @brief A function implementing the IFDI_RESUME() method */
typedef int ifdi_resume_t(if_ctx_t _ctx);

static __inline int IFDI_RESUME(if_ctx_t _ctx)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_resume);
	rc = ((ifdi_resume_t *) _m)(_ctx);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_TX_QUEUES_ALLOC() method */
extern struct kobjop_desc ifdi_tx_queues_alloc_desc;
/** @brief A function implementing the IFDI_TX_QUEUES_ALLOC() method */
typedef int ifdi_tx_queues_alloc_t(if_ctx_t _ctx, caddr_t *_vaddrs,
                                   uint64_t *_paddrs, int ntxqs, int ntxqsets);

static __inline int IFDI_TX_QUEUES_ALLOC(if_ctx_t _ctx, caddr_t *_vaddrs,
                                         uint64_t *_paddrs, int ntxqs,
                                         int ntxqsets)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_tx_queues_alloc);
	rc = ((ifdi_tx_queues_alloc_t *) _m)(_ctx, _vaddrs, _paddrs, ntxqs, ntxqsets);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_RX_QUEUES_ALLOC() method */
extern struct kobjop_desc ifdi_rx_queues_alloc_desc;
/** @brief A function implementing the IFDI_RX_QUEUES_ALLOC() method */
typedef int ifdi_rx_queues_alloc_t(if_ctx_t _ctx, caddr_t *_vaddrs,
                                   uint64_t *_paddrs, int nrxqs, int nrxqsets);

static __inline int IFDI_RX_QUEUES_ALLOC(if_ctx_t _ctx, caddr_t *_vaddrs,
                                         uint64_t *_paddrs, int nrxqs,
                                         int nrxqsets)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_rx_queues_alloc);
	rc = ((ifdi_rx_queues_alloc_t *) _m)(_ctx, _vaddrs, _paddrs, nrxqs, nrxqsets);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_QUEUES_FREE() method */
extern struct kobjop_desc ifdi_queues_free_desc;
/** @brief A function implementing the IFDI_QUEUES_FREE() method */
typedef void ifdi_queues_free_t(if_ctx_t _ctx);

static __inline void IFDI_QUEUES_FREE(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_queues_free);
	((ifdi_queues_free_t *) _m)(_ctx);
}

/** @brief Unique descriptor for the IFDI_INIT() method */
extern struct kobjop_desc ifdi_init_desc;
/** @brief A function implementing the IFDI_INIT() method */
typedef void ifdi_init_t(if_ctx_t _ctx);

static __inline void IFDI_INIT(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_init);
	((ifdi_init_t *) _m)(_ctx);
}

/** @brief Unique descriptor for the IFDI_STOP() method */
extern struct kobjop_desc ifdi_stop_desc;
/** @brief A function implementing the IFDI_STOP() method */
typedef void ifdi_stop_t(if_ctx_t _ctx);

static __inline void IFDI_STOP(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_stop);
	((ifdi_stop_t *) _m)(_ctx);
}

/** @brief Unique descriptor for the IFDI_MSIX_INTR_ASSIGN() method */
extern struct kobjop_desc ifdi_msix_intr_assign_desc;
/** @brief A function implementing the IFDI_MSIX_INTR_ASSIGN() method */
typedef int ifdi_msix_intr_assign_t(if_ctx_t _sctx, int msix);

static __inline int IFDI_MSIX_INTR_ASSIGN(if_ctx_t _sctx, int msix)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_sctx)->ops,ifdi_msix_intr_assign);
	rc = ((ifdi_msix_intr_assign_t *) _m)(_sctx, msix);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_INTR_ENABLE() method */
extern struct kobjop_desc ifdi_intr_enable_desc;
/** @brief A function implementing the IFDI_INTR_ENABLE() method */
typedef void ifdi_intr_enable_t(if_ctx_t _ctx);

static __inline void IFDI_INTR_ENABLE(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_intr_enable);
	((ifdi_intr_enable_t *) _m)(_ctx);
}

/** @brief Unique descriptor for the IFDI_INTR_DISABLE() method */
extern struct kobjop_desc ifdi_intr_disable_desc;
/** @brief A function implementing the IFDI_INTR_DISABLE() method */
typedef void ifdi_intr_disable_t(if_ctx_t _ctx);

static __inline void IFDI_INTR_DISABLE(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_intr_disable);
	((ifdi_intr_disable_t *) _m)(_ctx);
}

/** @brief Unique descriptor for the IFDI_RX_QUEUE_INTR_ENABLE() method */
extern struct kobjop_desc ifdi_rx_queue_intr_enable_desc;
/** @brief A function implementing the IFDI_RX_QUEUE_INTR_ENABLE() method */
typedef int ifdi_rx_queue_intr_enable_t(if_ctx_t _ctx, uint16_t _qid);

static __inline int IFDI_RX_QUEUE_INTR_ENABLE(if_ctx_t _ctx, uint16_t _qid)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_rx_queue_intr_enable);
	rc = ((ifdi_rx_queue_intr_enable_t *) _m)(_ctx, _qid);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_TX_QUEUE_INTR_ENABLE() method */
extern struct kobjop_desc ifdi_tx_queue_intr_enable_desc;
/** @brief A function implementing the IFDI_TX_QUEUE_INTR_ENABLE() method */
typedef int ifdi_tx_queue_intr_enable_t(if_ctx_t _ctx, uint16_t _qid);

static __inline int IFDI_TX_QUEUE_INTR_ENABLE(if_ctx_t _ctx, uint16_t _qid)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_tx_queue_intr_enable);
	rc = ((ifdi_tx_queue_intr_enable_t *) _m)(_ctx, _qid);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_LINK_INTR_ENABLE() method */
extern struct kobjop_desc ifdi_link_intr_enable_desc;
/** @brief A function implementing the IFDI_LINK_INTR_ENABLE() method */
typedef void ifdi_link_intr_enable_t(if_ctx_t _ctx);

static __inline void IFDI_LINK_INTR_ENABLE(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_link_intr_enable);
	((ifdi_link_intr_enable_t *) _m)(_ctx);
}

/** @brief Unique descriptor for the IFDI_MULTI_SET() method */
extern struct kobjop_desc ifdi_multi_set_desc;
/** @brief A function implementing the IFDI_MULTI_SET() method */
typedef void ifdi_multi_set_t(if_ctx_t _ctx);

static __inline void IFDI_MULTI_SET(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_multi_set);
	((ifdi_multi_set_t *) _m)(_ctx);
}

/** @brief Unique descriptor for the IFDI_MTU_SET() method */
extern struct kobjop_desc ifdi_mtu_set_desc;
/** @brief A function implementing the IFDI_MTU_SET() method */
typedef int ifdi_mtu_set_t(if_ctx_t _ctx, uint32_t _mtu);

static __inline int IFDI_MTU_SET(if_ctx_t _ctx, uint32_t _mtu)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_mtu_set);
	rc = ((ifdi_mtu_set_t *) _m)(_ctx, _mtu);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_MEDIA_SET() method */
extern struct kobjop_desc ifdi_media_set_desc;
/** @brief A function implementing the IFDI_MEDIA_SET() method */
typedef void ifdi_media_set_t(if_ctx_t _ctx);

static __inline void IFDI_MEDIA_SET(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_media_set);
	((ifdi_media_set_t *) _m)(_ctx);
}

/** @brief Unique descriptor for the IFDI_PROMISC_SET() method */
extern struct kobjop_desc ifdi_promisc_set_desc;
/** @brief A function implementing the IFDI_PROMISC_SET() method */
typedef int ifdi_promisc_set_t(if_ctx_t _ctx, int _flags);

static __inline int IFDI_PROMISC_SET(if_ctx_t _ctx, int _flags)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_promisc_set);
	rc = ((ifdi_promisc_set_t *) _m)(_ctx, _flags);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_CRCSTRIP_SET() method */
extern struct kobjop_desc ifdi_crcstrip_set_desc;
/** @brief A function implementing the IFDI_CRCSTRIP_SET() method */
typedef void ifdi_crcstrip_set_t(if_ctx_t _ctx, int _onoff, int _strip);

static __inline void IFDI_CRCSTRIP_SET(if_ctx_t _ctx, int _onoff, int _strip)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_crcstrip_set);
	((ifdi_crcstrip_set_t *) _m)(_ctx, _onoff, _strip);
}

/** @brief Unique descriptor for the IFDI_VFLR_HANDLE() method */
extern struct kobjop_desc ifdi_vflr_handle_desc;
/** @brief A function implementing the IFDI_VFLR_HANDLE() method */
typedef void ifdi_vflr_handle_t(if_ctx_t _ctx);

static __inline void IFDI_VFLR_HANDLE(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_vflr_handle);
	((ifdi_vflr_handle_t *) _m)(_ctx);
}

/** @brief Unique descriptor for the IFDI_IOV_INIT() method */
extern struct kobjop_desc ifdi_iov_init_desc;
/** @brief A function implementing the IFDI_IOV_INIT() method */
typedef int ifdi_iov_init_t(if_ctx_t _ctx, uint16_t num_vfs,
                            const nvlist_t * params);

static __inline int IFDI_IOV_INIT(if_ctx_t _ctx, uint16_t num_vfs,
                                  const nvlist_t * params)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_iov_init);
	rc = ((ifdi_iov_init_t *) _m)(_ctx, num_vfs, params);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_IOV_UNINIT() method */
extern struct kobjop_desc ifdi_iov_uninit_desc;
/** @brief A function implementing the IFDI_IOV_UNINIT() method */
typedef void ifdi_iov_uninit_t(if_ctx_t _ctx);

static __inline void IFDI_IOV_UNINIT(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_iov_uninit);
	((ifdi_iov_uninit_t *) _m)(_ctx);
}

/** @brief Unique descriptor for the IFDI_IOV_VF_ADD() method */
extern struct kobjop_desc ifdi_iov_vf_add_desc;
/** @brief A function implementing the IFDI_IOV_VF_ADD() method */
typedef int ifdi_iov_vf_add_t(if_ctx_t _ctx, uint16_t num_vfs,
                              const nvlist_t * params);

static __inline int IFDI_IOV_VF_ADD(if_ctx_t _ctx, uint16_t num_vfs,
                                    const nvlist_t * params)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_iov_vf_add);
	rc = ((ifdi_iov_vf_add_t *) _m)(_ctx, num_vfs, params);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_UPDATE_ADMIN_STATUS() method */
extern struct kobjop_desc ifdi_update_admin_status_desc;
/** @brief A function implementing the IFDI_UPDATE_ADMIN_STATUS() method */
typedef void ifdi_update_admin_status_t(if_ctx_t _ctx);

static __inline void IFDI_UPDATE_ADMIN_STATUS(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_update_admin_status);
	((ifdi_update_admin_status_t *) _m)(_ctx);
}

/** @brief Unique descriptor for the IFDI_MEDIA_STATUS() method */
extern struct kobjop_desc ifdi_media_status_desc;
/** @brief A function implementing the IFDI_MEDIA_STATUS() method */
typedef void ifdi_media_status_t(if_ctx_t _ctx, struct ifmediareq *_ifm);

static __inline void IFDI_MEDIA_STATUS(if_ctx_t _ctx, struct ifmediareq *_ifm)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_media_status);
	((ifdi_media_status_t *) _m)(_ctx, _ifm);
}

/** @brief Unique descriptor for the IFDI_MEDIA_CHANGE() method */
extern struct kobjop_desc ifdi_media_change_desc;
/** @brief A function implementing the IFDI_MEDIA_CHANGE() method */
typedef int ifdi_media_change_t(if_ctx_t _ctx);

static __inline int IFDI_MEDIA_CHANGE(if_ctx_t _ctx)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_media_change);
	rc = ((ifdi_media_change_t *) _m)(_ctx);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_GET_COUNTER() method */
extern struct kobjop_desc ifdi_get_counter_desc;
/** @brief A function implementing the IFDI_GET_COUNTER() method */
typedef uint64_t ifdi_get_counter_t(if_ctx_t _ctx, ift_counter cnt);

static __inline uint64_t IFDI_GET_COUNTER(if_ctx_t _ctx, ift_counter cnt)
{
	kobjop_t _m;
	uint64_t rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_get_counter);
	rc = ((ifdi_get_counter_t *) _m)(_ctx, cnt);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_PRIV_IOCTL() method */
extern struct kobjop_desc ifdi_priv_ioctl_desc;
/** @brief A function implementing the IFDI_PRIV_IOCTL() method */
typedef int ifdi_priv_ioctl_t(if_ctx_t _ctx, u_long _cmd, caddr_t _data);

static __inline int IFDI_PRIV_IOCTL(if_ctx_t _ctx, u_long _cmd, caddr_t _data)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_priv_ioctl);
	rc = ((ifdi_priv_ioctl_t *) _m)(_ctx, _cmd, _data);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_I2C_REQ() method */
extern struct kobjop_desc ifdi_i2c_req_desc;
/** @brief A function implementing the IFDI_I2C_REQ() method */
typedef int ifdi_i2c_req_t(if_ctx_t _ctx, struct ifi2creq *_req);

static __inline int IFDI_I2C_REQ(if_ctx_t _ctx, struct ifi2creq *_req)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_i2c_req);
	rc = ((ifdi_i2c_req_t *) _m)(_ctx, _req);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_TXQ_SETUP() method */
extern struct kobjop_desc ifdi_txq_setup_desc;
/** @brief A function implementing the IFDI_TXQ_SETUP() method */
typedef int ifdi_txq_setup_t(if_ctx_t _ctx, uint32_t _txqid);

static __inline int IFDI_TXQ_SETUP(if_ctx_t _ctx, uint32_t _txqid)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_txq_setup);
	rc = ((ifdi_txq_setup_t *) _m)(_ctx, _txqid);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_RXQ_SETUP() method */
extern struct kobjop_desc ifdi_rxq_setup_desc;
/** @brief A function implementing the IFDI_RXQ_SETUP() method */
typedef int ifdi_rxq_setup_t(if_ctx_t _ctx, uint32_t _txqid);

static __inline int IFDI_RXQ_SETUP(if_ctx_t _ctx, uint32_t _txqid)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_rxq_setup);
	rc = ((ifdi_rxq_setup_t *) _m)(_ctx, _txqid);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_TIMER() method */
extern struct kobjop_desc ifdi_timer_desc;
/** @brief A function implementing the IFDI_TIMER() method */
typedef void ifdi_timer_t(if_ctx_t _ctx, uint16_t _txqid);

static __inline void IFDI_TIMER(if_ctx_t _ctx, uint16_t _txqid)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_timer);
	((ifdi_timer_t *) _m)(_ctx, _txqid);
}

/** @brief Unique descriptor for the IFDI_WATCHDOG_RESET() method */
extern struct kobjop_desc ifdi_watchdog_reset_desc;
/** @brief A function implementing the IFDI_WATCHDOG_RESET() method */
typedef void ifdi_watchdog_reset_t(if_ctx_t _ctx);

static __inline void IFDI_WATCHDOG_RESET(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_watchdog_reset);
	((ifdi_watchdog_reset_t *) _m)(_ctx);
}

/** @brief Unique descriptor for the IFDI_LED_FUNC() method */
extern struct kobjop_desc ifdi_led_func_desc;
/** @brief A function implementing the IFDI_LED_FUNC() method */
typedef void ifdi_led_func_t(if_ctx_t _ctx, int _onoff);

static __inline void IFDI_LED_FUNC(if_ctx_t _ctx, int _onoff)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_led_func);
	((ifdi_led_func_t *) _m)(_ctx, _onoff);
}

/** @brief Unique descriptor for the IFDI_VLAN_REGISTER() method */
extern struct kobjop_desc ifdi_vlan_register_desc;
/** @brief A function implementing the IFDI_VLAN_REGISTER() method */
typedef void ifdi_vlan_register_t(if_ctx_t _ctx, uint16_t _vtag);

static __inline void IFDI_VLAN_REGISTER(if_ctx_t _ctx, uint16_t _vtag)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_vlan_register);
	((ifdi_vlan_register_t *) _m)(_ctx, _vtag);
}

/** @brief Unique descriptor for the IFDI_VLAN_UNREGISTER() method */
extern struct kobjop_desc ifdi_vlan_unregister_desc;
/** @brief A function implementing the IFDI_VLAN_UNREGISTER() method */
typedef void ifdi_vlan_unregister_t(if_ctx_t _ctx, uint16_t _vtag);

static __inline void IFDI_VLAN_UNREGISTER(if_ctx_t _ctx, uint16_t _vtag)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_vlan_unregister);
	((ifdi_vlan_unregister_t *) _m)(_ctx, _vtag);
}

/** @brief Unique descriptor for the IFDI_SYSCTL_INT_DELAY() method */
extern struct kobjop_desc ifdi_sysctl_int_delay_desc;
/** @brief A function implementing the IFDI_SYSCTL_INT_DELAY() method */
typedef int ifdi_sysctl_int_delay_t(if_ctx_t _sctx, if_int_delay_info_t _iidi);

static __inline int IFDI_SYSCTL_INT_DELAY(if_ctx_t _sctx,
                                          if_int_delay_info_t _iidi)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)_sctx)->ops,ifdi_sysctl_int_delay);
	rc = ((ifdi_sysctl_int_delay_t *) _m)(_sctx, _iidi);
	return (rc);
}

/** @brief Unique descriptor for the IFDI_DEBUG() method */
extern struct kobjop_desc ifdi_debug_desc;
/** @brief A function implementing the IFDI_DEBUG() method */
typedef void ifdi_debug_t(if_ctx_t _ctx);

static __inline void IFDI_DEBUG(if_ctx_t _ctx)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_debug);
	((ifdi_debug_t *) _m)(_ctx);
}

#endif /* _ifdi_if_h_ */