Merge branch 'perf/nmi' into perf/core
[pandora-kernel.git] / 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
16                                                         global adapter point */
17
18         struct wb_local_para sLocalPara;        /* Myself connected
19                                                         parameters */
20
21         MLME_FRAME sMlmeFrame;  /* connect to peerSTA parameters */
22
23         struct wb35_mto_params sMtoPara;        /* MTO_struct ... */
24         struct hw_data sHwData; /*For HAL */
25         struct wb35_mds Mds;
26
27         spinlock_t SpinLock;
28
29         atomic_t ThreadCount;
30
31         u32 RxByteCount;
32         u32 TxByteCount;
33
34         struct sk_buff *packet_return;
35         s32 netif_state_stop;   /* 1: stop  0: normal */
36         struct iw_statistics iw_stats;
37
38         u8 LinkName[WB_MAX_LINK_NAME_LEN];
39
40         bool enabled;
41 };
42
43 #endif /* __WINBOND_CORE_H */