Merge commit 'v2.6.32-rc8' into HEAD
[safe/jmp/linux-2.6] / drivers / staging / winbond / core.h
1 #ifndef __WINBOND_CORE_H
2 #define __WINBOND_CORE_H
3
4 #include <linux/wireless.h>
5
6 #include "mlme_s.h"
7 #include "wbhal_s.h"
8 #include "mto.h"
9
10 #define WBLINUX_PACKET_ARRAY_SIZE (ETHERNET_TX_DESCRIPTORS*4)
11
12 #define WB_MAX_LINK_NAME_LEN 40
13
14 struct wbsoft_priv {
15         u32 adapterIndex;       // 20060703.4 Add for using padapterContext global adapter point
16
17         WB_LOCALDESCRIPT sLocalPara;    // Myself connected parameters
18
19         MLME_FRAME sMlmeFrame;  // connect to peerSTA parameters
20
21         struct wb35_mto_params sMtoPara;        // MTO_struct ...
22         struct hw_data sHwData; //For HAL
23         struct wb35_mds Mds;
24
25         spinlock_t SpinLock;
26
27         atomic_t ThreadCount;
28
29         u32 RxByteCount;
30         u32 TxByteCount;
31
32         struct sk_buff *packet_return;
33         s32 netif_state_stop;   // 1: stop  0: normal
34         struct iw_statistics iw_stats;
35
36         u8 LinkName[WB_MAX_LINK_NAME_LEN];
37
38         bool enabled;
39 };
40
41 #endif /* __WINBOND_CORE_H */