Commit | Line | Data |
---|---|---|
cc180710 PE |
1 | #ifndef __WINBOND_CORE_H |
2 | #define __WINBOND_CORE_H | |
3 | ||
1e8a2b60 | 4 | #include <linux/wireless.h> |
3c093865 | 5 | #include <linux/types.h> |
1e8a2b60 | 6 | |
b5ef0761 | 7 | #include "wbhal.h" |
64328c87 | 8 | #include "mto.h" |
1e8a2b60 | 9 | |
3c093865 PE |
10 | #include "mac_structures.h" |
11 | #include "mds_s.h" | |
12 | ||
13 | #define MAX_NUM_TX_MMPDU 2 | |
14 | #define MAX_MMPDU_SIZE 1512 | |
15 | #define MAX_NUM_RX_MMPDU 6 | |
16 | ||
17 | struct mlme_frame { | |
18 | s8 *pMMPDU; | |
19 | u16 len; | |
20 | u8 DataType; | |
21 | u8 IsInUsed; | |
22 | ||
3c093865 PE |
23 | u8 TxMMPDU[MAX_NUM_TX_MMPDU][MAX_MMPDU_SIZE]; |
24 | u8 TxMMPDUInUse[(MAX_NUM_TX_MMPDU + 3) & ~0x03]; | |
25 | ||
26 | u16 wNumTxMMPDU; | |
27 | u16 wNumTxMMPDUDiscarded; | |
28 | ||
29 | u8 RxMMPDU[MAX_NUM_RX_MMPDU][MAX_MMPDU_SIZE]; | |
30 | u8 SaveRxBufSlotInUse[(MAX_NUM_RX_MMPDU + 3) & ~0x03]; | |
31 | ||
32 | u16 wNumRxMMPDU; | |
33 | u16 wNumRxMMPDUDiscarded; | |
34 | ||
35 | u16 wNumRxMMPDUInMLME; /* Number of the Rx MMPDU */ | |
36 | u16 reserved_1; /* in MLME. */ | |
37 | /* excluding the discarded */ | |
38 | }; | |
39 | ||
1e8a2b60 PE |
40 | #define WBLINUX_PACKET_ARRAY_SIZE (ETHERNET_TX_DESCRIPTORS*4) |
41 | ||
42 | #define WB_MAX_LINK_NAME_LEN 40 | |
cc180710 PE |
43 | |
44 | struct wbsoft_priv { | |
5dcf8f66 RP |
45 | struct wb_local_para sLocalPara; /* Myself connected |
46 | parameters */ | |
1e8a2b60 | 47 | |
c4d562a9 | 48 | struct mlme_frame sMlmeFrame; /* connect to peerSTA parameters */ |
1e8a2b60 | 49 | |
5dcf8f66 RP |
50 | struct wb35_mto_params sMtoPara; /* MTO_struct ... */ |
51 | struct hw_data sHwData; /*For HAL */ | |
b7caf94f | 52 | struct wb35_mds Mds; |
1e8a2b60 | 53 | |
1e8a2b60 PE |
54 | atomic_t ThreadCount; |
55 | ||
56 | u32 RxByteCount; | |
57 | u32 TxByteCount; | |
58 | ||
1e8a2b60 | 59 | u8 LinkName[WB_MAX_LINK_NAME_LEN]; |
c930e0c0 PE |
60 | |
61 | bool enabled; | |
cc180710 PE |
62 | }; |
63 | ||
64 | #endif /* __WINBOND_CORE_H */ |