Go to the documentation of this file. 1 #ifndef __WINBOND_WBHAL_S_H
2 #define __WINBOND_WBHAL_S_H
4 #include <linux/types.h>
5 #include <linux/if_ether.h>
7 #define HAL_LED_SET_MASK 0x001c
8 #define HAL_LED_SET_SHIFT 2
11 #define RF_MAXIM_2825 0
12 #define RF_MAXIM_2827 1
13 #define RF_MAXIM_2828 2
14 #define RF_MAXIM_2829 3
15 #define RF_MAXIM_V1 15
16 #define RF_AIROHA_2230 16
17 #define RF_AIROHA_7230 17
18 #define RF_AIROHA_2230S 18
20 #define RF_WB_242_1 34
21 #define RF_DECIDE_BY_INF 255
36 #define HAL_USB_MODE_BURST(_H) (_H->SoftwareSet & 0x20)
39 #define SCAN_MAX_CHNL_TIME (50)
42 #define FRAME_TYPE_802_3_DATA 0
43 #define FRAME_TYPE_802_11_MANAGEMENT 1
44 #define FRAME_TYPE_802_11_MANAGEMENT_CHALLENGE 2
45 #define FRAME_TYPE_802_11_CONTROL 3
46 #define FRAME_TYPE_802_11_DATA 4
47 #define FRAME_TYPE_PROMISCUOUS 5
50 #define DOT_11_SEQUENCE_OFFSET 22
51 #define DOT_3_TYPE_OFFSET 12
52 #define DOT_11_MAC_HEADER_SIZE 24
53 #define DOT_11_SNAP_SIZE 6
54 #define DOT_11_TYPE_OFFSET 30
55 #define DEFAULT_SIFSTIME 10
56 #define DEFAULT_FRAGMENT_THRESHOLD 2346
57 #define DEFAULT_MSDU_LIFE_TIME 0xffff
59 #define LONG_PREAMBLE_PLUS_PLCPHEADER_TIME (144 + 48)
60 #define SHORT_PREAMBLE_PLUS_PLCPHEADER_TIME (72 + 24)
61 #define PREAMBLE_PLUS_SIGNAL_PLUS_SIGNALEXTENSION (16 + 4 + 6)
65 #define MAC_TYPE_MANAGEMENT 0x00
66 #define MAC_TYPE_CONTROL 0x04
67 #define MAC_TYPE_DATA 0x08
68 #define MASK_FRAGMENT_NUMBER 0x000F
69 #define SEQUENCE_NUMBER_SHIFT 4
71 #define HAL_WOL_TYPE_WAKEUP_FRAME 0x01
72 #define HAL_WOL_TYPE_MAGIC_PACKET 0x02
74 #define HAL_KEYTYPE_WEP40 0
75 #define HAL_KEYTYPE_WEP104 1
76 #define HAL_KEYTYPE_TKIP 2
77 #define HAL_KEYTYPE_AES_CCMP 3
93 #define MAX_KEY_TABLE 24
94 #define GROUP_KEY_START_INDEX 4
95 #define MAPPING_KEY_START_INDEX 8
102 #define MAX_DESCRIPTOR_BUFFER_INDEX 8
103 #define FLAG_ERROR_TX_MASK 0x000000bf
104 #define FLAG_ERROR_RX_MASK 0x0000083f
106 #define FLAG_BAND_RX_MASK 0x10000000
345 #define MAX_TXVGA_EEPROM 9
346 #define MAX_RF_PARAMETER 32