1 #ifndef __ADF_NET_PVT_H
2 #define __ADF_NET_PVT_H
6 #define ADF_NET_MAX_NAME 64
7 #define ADF_DEF_TX_TIMEOUT 5 /*Seconds I suppose*/
9 #define __ADF_NET_NULL NULL
10 #define __ADF_PCI_BAR0 0x10
14 __adf_net_register_drv(adf_drv_info_t *drv);
17 __adf_net_unregister_drv(a_uint8_t *name);
19 typedef struct __adf_net_mod {
25 typedef struct __adf_softc {
29 static inline a_bool_t
30 __adf_net_carrier_ok(adf_net_handle_t hdl)
36 __adf_net_carrier_off(adf_net_handle_t hdl)
42 __adf_net_carrier_on(adf_net_handle_t hdl)
48 __adf_net_start_queue(adf_net_handle_t hdl)
54 __adf_net_stop_queue(adf_net_handle_t hdl)
60 __adf_net_wake_queue(adf_net_handle_t hdl)
64 static inline a_bool_t
65 __adf_net_queue_stopped(adf_net_handle_t hdl)
70 static inline a_bool_t
71 __adf_net_is_running(adf_net_handle_t hdl)
75 static inline a_bool_t
76 __adf_net_is_up(adf_net_handle_t hdl)
81 static inline adf_net_handle_t __adf_net_dev_create(adf_drv_handle_t hdl, adf_dev_sw_t *op,
82 adf_net_dev_info_t *info)
87 static inline adf_net_handle_t __adf_net_vdev_create(adf_net_handle_t dev_hdl,
88 adf_drv_handle_t hdl, adf_vdev_sw_t *op,
89 adf_net_dev_info_t *info)
94 static inline const a_uint8_t * __adf_net_ifname(adf_net_handle_t hdl)
99 static inline adf_os_handle_t
100 __adf_net_dev_to_os(__adf_os_device_t osdev)
105 static inline adf_os_handle_t
106 __adf_net_hdl_to_os(adf_net_handle_t hdl)