staging: w35und: Inline mlme_s.h to core.h
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / staging / winbond / core.h
blob294d371e60d284e582014d83c7bdbf65a5109308
1 #ifndef __WINBOND_CORE_H
2 #define __WINBOND_CORE_H
4 #include <linux/spinlock.h>
5 #include <linux/wireless.h>
6 #include <linux/types.h>
8 #include "wbhal_s.h"
9 #include "mto.h"
11 #include "mac_structures.h"
12 #include "mds_s.h"
14 #define MAX_NUM_TX_MMPDU 2
15 #define MAX_MMPDU_SIZE 1512
16 #define MAX_NUM_RX_MMPDU 6
18 struct mlme_frame {
19 s8 *pMMPDU;
20 u16 len;
21 u8 DataType;
22 u8 IsInUsed;
24 spinlock_t MLMESpinLock;
26 u8 TxMMPDU[MAX_NUM_TX_MMPDU][MAX_MMPDU_SIZE];
27 u8 TxMMPDUInUse[(MAX_NUM_TX_MMPDU + 3) & ~0x03];
29 u16 wNumTxMMPDU;
30 u16 wNumTxMMPDUDiscarded;
32 u8 RxMMPDU[MAX_NUM_RX_MMPDU][MAX_MMPDU_SIZE];
33 u8 SaveRxBufSlotInUse[(MAX_NUM_RX_MMPDU + 3) & ~0x03];
35 u16 wNumRxMMPDU;
36 u16 wNumRxMMPDUDiscarded;
38 u16 wNumRxMMPDUInMLME; /* Number of the Rx MMPDU */
39 u16 reserved_1; /* in MLME. */
40 /* excluding the discarded */
43 #define WBLINUX_PACKET_ARRAY_SIZE (ETHERNET_TX_DESCRIPTORS*4)
45 #define WB_MAX_LINK_NAME_LEN 40
47 struct wbsoft_priv {
48 u32 adapterIndex; /* 20060703.4 Add for using padapterContext
49 global adapter point */
51 struct wb_local_para sLocalPara; /* Myself connected
52 parameters */
54 struct mlme_frame sMlmeFrame; /* connect to peerSTA parameters */
56 struct wb35_mto_params sMtoPara; /* MTO_struct ... */
57 struct hw_data sHwData; /*For HAL */
58 struct wb35_mds Mds;
60 spinlock_t SpinLock;
62 atomic_t ThreadCount;
64 u32 RxByteCount;
65 u32 TxByteCount;
67 struct sk_buff *packet_return;
68 s32 netif_state_stop; /* 1: stop 0: normal */
69 struct iw_statistics iw_stats;
71 u8 LinkName[WB_MAX_LINK_NAME_LEN];
73 bool enabled;
76 #endif /* __WINBOND_CORE_H */