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 | |
| 6 | #include "bssdscpt.h" |
| 7 | #include "mto.h" |
| 8 | #include "wbhal_s.h" |
| 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 |
| 18 | PWB_BSSDESCRIPTION asBSSDescriptElement; |
| 19 | |
| 20 | MLME_FRAME sMlmeFrame; // connect to peerSTA parameters |
| 21 | |
| 22 | MTO_PARAMETERS sMtoPara; // MTO_struct ... |
| 23 | hw_data_t sHwData; //For HAL |
| 24 | MDS Mds; |
| 25 | |
| 26 | spinlock_t SpinLock; |
| 27 | u32 shutdown; |
| 28 | |
| 29 | atomic_t ThreadCount; |
| 30 | |
| 31 | u32 RxByteCount; |
| 32 | u32 TxByteCount; |
| 33 | |
| 34 | struct sk_buff *skb_array[WBLINUX_PACKET_ARRAY_SIZE]; |
| 35 | struct sk_buff *packet_return; |
| 36 | s32 skb_SetIndex; |
| 37 | s32 skb_GetIndex; |
| 38 | s32 netif_state_stop; // 1: stop 0: normal |
| 39 | struct iw_statistics iw_stats; |
| 40 | |
| 41 | u8 LinkName[WB_MAX_LINK_NAME_LEN]; |
Pekka Enberg | c930e0c0 | 2008-10-30 18:12:04 +0200 | [diff] [blame^] | 42 | |
| 43 | bool enabled; |
Pekka Enberg | cc18071 | 2008-10-30 16:14:35 +0200 | [diff] [blame] | 44 | }; |
| 45 | |
| 46 | #endif /* __WINBOND_CORE_H */ |