Go to the documentation of this file. 1 #ifndef __WINBOND_MDS_H
2 #define __WINBOND_MDS_H
5 #include <linux/types.h>
18 #define MAX_USB_TX_DESCRIPTOR 15
19 #define MAX_USB_TX_BUFFER_NUMBER 4
20 #define MAX_USB_TX_BUFFER 4096
22 #define AUTH_REQUEST_PAIRWISE_ERROR 0
23 #define AUTH_REQUEST_GROUP_ERROR 1
25 #define CURRENT_FRAGMENT_THRESHOLD (adapter->Mds.TxFragmentThreshold & ~0x1)
26 #define CURRENT_PREAMBLE_MODE (psLOCAL->boShortPreamble ? WLAN_PREAMBLE_TYPE_SHORT : WLAN_PREAMBLE_TYPE_LONG)
27 #define CURRENT_TX_RATE_FOR_MNG (adapter->sLocalPara.CurrentTxRateForMng)
28 #define CURRENT_PROTECT_MECHANISM (psLOCAL->boProtectMechanism)
29 #define CURRENT_RTS_THRESHOLD (adapter->Mds.TxRTSThreshold)
31 #define MIB_GS_XMIT_OK_INC (adapter->sLocalPara.GS_XMIT_OK++)
32 #define MIB_GS_RCV_OK_INC (adapter->sLocalPara.GS_RCV_OK++)
33 #define MIB_GS_XMIT_ERROR_INC (adapter->sLocalPara.GS_XMIT_ERROR)
36 #define ETHERNET_TX_DESCRIPTORS MAX_USB_TX_BUFFER_NUMBER
39 #define ETHERNET_RX_DESCRIPTORS 8
46 #define DEFAULT_MULTICASTLISTMAX 32
47 #define DEFAULT_TX_BURSTLENGTH 3
48 #define DEFAULT_RX_BURSTLENGTH 3
49 #define DEFAULT_TX_THRESHOLD 0
50 #define DEFAULT_RX_THRESHOLD 0
51 #define DEFAULT_MAXTXRATE 6
52 #define DEFAULT_CHANNEL 3
53 #define DEFAULT_RTSThreshold 2347
55 #define DEFAULT_SIFSTIME 10
56 #define DEFAULT_ACKTIME_1ML 304
57 #define DEFAULT_ACKTIME_2ML 248
58 #define DEFAULT_FRAGMENT_THRESHOLD 2346
59 #define DEFAULT_PREAMBLE_LENGTH 72
60 #define DEFAULT_PLCPHEADERTIME_LENGTH 24
68 #define DEFAULT_MAX_RECEIVE_TIME 16440000
70 #define RX_BUF_SIZE 2352
71 #define MAX_RX_DESCRIPTORS 18
74 #define MDS_ID_IGNORE ETHERNET_RX_DESCRIPTORS
77 #define PACKET_FREE_TO_USE 0
78 #define PACKET_COME_FROM_NDIS 0x08
79 #define PACKET_COME_FROM_MLME 0x80
80 #define PACKET_SEND_COMPLETE 0xff