Pekka Enberg | cc18071 | 2008-10-30 16:14:35 +0200 | [diff] [blame] | 1 | #ifndef __WINBOND_CORE_H |
| 2 | #define __WINBOND_CORE_H |
| 3 | |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 4 | #include <linux/wireless.h> |
| 5 | |
Pekka Enberg | d2443c5 | 2009-03-02 12:19:56 +0200 | [diff] [blame] | 6 | #include "mlme_s.h" |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 7 | #include "wbhal_s.h" |
Pekka Enberg | 64328c8 | 2009-01-07 17:33:45 +0200 | [diff] [blame] | 8 | #include "mto.h" |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 9 | |
| 10 | #define WBLINUX_PACKET_ARRAY_SIZE (ETHERNET_TX_DESCRIPTORS*4) |
| 11 | |
| 12 | #define WB_MAX_LINK_NAME_LEN 40 |
Pekka Enberg | cc18071 | 2008-10-30 16:14:35 +0200 | [diff] [blame] | 13 | |
| 14 | struct wbsoft_priv { |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 15 | u32 adapterIndex; // 20060703.4 Add for using padapterContext global adapter point |
| 16 | |
| 17 | WB_LOCALDESCRIPT sLocalPara; // Myself connected parameters |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 18 | |
| 19 | MLME_FRAME sMlmeFrame; // connect to peerSTA parameters |
| 20 | |
| 21 | MTO_PARAMETERS sMtoPara; // MTO_struct ... |
Pekka Enberg | 8e41b4b | 2009-01-12 18:02:47 +0200 | [diff] [blame] | 22 | struct hw_data sHwData; //For HAL |
Pekka Enberg | b7caf94 | 2009-08-12 11:03:33 +0300 | [diff] [blame^] | 23 | struct wb35_mds Mds; |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 24 | |
| 25 | spinlock_t SpinLock; |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 26 | |
| 27 | atomic_t ThreadCount; |
| 28 | |
| 29 | u32 RxByteCount; |
| 30 | u32 TxByteCount; |
| 31 | |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 32 | struct sk_buff *packet_return; |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 33 | s32 netif_state_stop; // 1: stop 0: normal |
| 34 | struct iw_statistics iw_stats; |
| 35 | |
| 36 | u8 LinkName[WB_MAX_LINK_NAME_LEN]; |
Pekka Enberg | c930e0c0 | 2008-10-30 18:12:04 +0200 | [diff] [blame] | 37 | |
| 38 | bool enabled; |
Pekka Enberg | cc18071 | 2008-10-30 16:14:35 +0200 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | #endif /* __WINBOND_CORE_H */ |