8fd66ca601944273e6fc9632241c69aebf78767e
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / target / adf / adf_net_pvt.h
1 #ifndef __ADF_NET_PVT_H
2 #define __ADF_NET_PVT_H
3
4
5
6 #define ADF_NET_MAX_NAME    64
7 #define ADF_DEF_TX_TIMEOUT  5 /*Seconds I suppose*/
8
9 #define __ADF_NET_NULL      NULL
10 #define __ADF_PCI_BAR0      0x10
11
12
13 a_status_t 
14 __adf_net_register_drv(adf_drv_info_t *drv);
15
16 void
17 __adf_net_unregister_drv(a_uint8_t *name);
18
19 typedef struct __adf_net_mod {
20 int dummy;
21 }__adf_net_mod_t;
22
23
24
25 typedef struct __adf_softc {
26 int dummy;
27 }__adf_softc_t;
28
29 static inline a_bool_t
30 __adf_net_carrier_ok(adf_net_handle_t hdl)
31 {
32     return 1;
33 }
34
35 static inline void
36 __adf_net_carrier_off(adf_net_handle_t hdl)
37 {
38
39 }
40
41 static inline void
42 __adf_net_carrier_on(adf_net_handle_t hdl)
43 {
44
45 }
46
47 static inline void
48 __adf_net_start_queue(adf_net_handle_t hdl)
49 {   
50
51 }
52
53 static inline void
54 __adf_net_stop_queue(adf_net_handle_t hdl)
55 {
56
57 }
58
59 static inline void
60 __adf_net_wake_queue(adf_net_handle_t hdl)
61 {
62 }
63
64 static inline a_bool_t
65 __adf_net_queue_stopped(adf_net_handle_t hdl)
66 {
67     return 1;
68 }
69
70 static inline a_bool_t
71 __adf_net_is_running(adf_net_handle_t hdl)
72 {
73     return 1;
74 }
75 static inline a_bool_t
76 __adf_net_is_up(adf_net_handle_t hdl)
77 {
78     return 1;
79 }
80
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)
83 {
84     return NULL;
85 }
86
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)
90 {
91     return NULL;
92 }
93
94 static inline const a_uint8_t * __adf_net_ifname(adf_net_handle_t  hdl)
95 {
96         return NULL;
97 }
98
99 static inline adf_os_handle_t
100 __adf_net_dev_to_os(__adf_os_device_t osdev)
101 {
102     return NULL;
103 }
104
105 static inline adf_os_handle_t
106 __adf_net_hdl_to_os(adf_net_handle_t hdl)
107 {
108     return NULL;
109 }    
110
111 #endif