diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-04-04 09:36:57 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-04-04 14:46:23 +0200 |
commit | de8a76da2f374792594ce03a203b3f30e4889f6f (patch) | |
tree | 12b5e1e59358005c3c522955c08aee4795e4829c /rtemsbsd/include/rtems/bsd/local/ifdi_if.h | |
parent | Enable bridging by default (diff) | |
download | rtems-libbsd-de8a76da2f374792594ce03a203b3f30e4889f6f.tar.bz2 |
Update to FreeBSD head 2017-04-04
Git mirror commit 642b174daddbd0efd9bb5f242c43f4ab4db6869f.
Diffstat (limited to 'rtemsbsd/include/rtems/bsd/local/ifdi_if.h')
-rw-r--r-- | rtemsbsd/include/rtems/bsd/local/ifdi_if.h | 520 |
1 files changed, 520 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/local/ifdi_if.h b/rtemsbsd/include/rtems/bsd/local/ifdi_if.h new file mode 100644 index 00000000..b1a5da05 --- /dev/null +++ b/rtemsbsd/include/rtems/bsd/local/ifdi_if.h @@ -0,0 +1,520 @@ +/* + * 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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_attach_pre); + return ((ifdi_attach_pre_t *) _m)(_ctx); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_attach_post); + return ((ifdi_attach_post_t *) _m)(_ctx); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_detach); + return ((ifdi_detach_t *) _m)(_ctx); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_suspend); + return ((ifdi_suspend_t *) _m)(_ctx); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_shutdown); + return ((ifdi_shutdown_t *) _m)(_ctx); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_resume); + return ((ifdi_resume_t *) _m)(_ctx); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_tx_queues_alloc); + return ((ifdi_tx_queues_alloc_t *) _m)(_ctx, _vaddrs, _paddrs, ntxqs, ntxqsets); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_rx_queues_alloc); + return ((ifdi_rx_queues_alloc_t *) _m)(_ctx, _vaddrs, _paddrs, nrxqs, nrxqsets); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_sctx)->ops,ifdi_msix_intr_assign); + return ((ifdi_msix_intr_assign_t *) _m)(_sctx, msix); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_rx_queue_intr_enable); + return ((ifdi_rx_queue_intr_enable_t *) _m)(_ctx, _qid); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_tx_queue_intr_enable); + return ((ifdi_tx_queue_intr_enable_t *) _m)(_ctx, _qid); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_mtu_set); + return ((ifdi_mtu_set_t *) _m)(_ctx, _mtu); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_promisc_set); + return ((ifdi_promisc_set_t *) _m)(_ctx, _flags); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_iov_init); + return ((ifdi_iov_init_t *) _m)(_ctx, num_vfs, params); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_iov_vf_add); + return ((ifdi_iov_vf_add_t *) _m)(_ctx, num_vfs, params); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_media_change); + return ((ifdi_media_change_t *) _m)(_ctx); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_get_counter); + return ((ifdi_get_counter_t *) _m)(_ctx, cnt); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_priv_ioctl); + return ((ifdi_priv_ioctl_t *) _m)(_ctx, _cmd, _data); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_i2c_req); + return ((ifdi_i2c_req_t *) _m)(_ctx, _req); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_txq_setup); + return ((ifdi_txq_setup_t *) _m)(_ctx, _txqid); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_ctx)->ops,ifdi_rxq_setup); + return ((ifdi_rxq_setup_t *) _m)(_ctx, _txqid); +} + +/** @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; + KOBJOPLOOKUP(((kobj_t)_sctx)->ops,ifdi_sysctl_int_delay); + return ((ifdi_sysctl_int_delay_t *) _m)(_sctx, _iidi); +} + +/** @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_ */ |