Go to the documentation of this file. 1 #ifndef __WINBOND_WB35REG_S_H
2 #define __WINBOND_WB35REG_S_H
5 #include <linux/types.h>
24 #define GetBit(dwData, i) (dwData & (0x00000001 << i))
25 #define SetBit(dwData, i) (dwData | (0x00000001 << i))
26 #define ClearBit(dwData, i) (dwData & ~(0x00000001 << i))
28 #define IGNORE_INCREMENT 0
29 #define AUTO_INCREMENT 0
30 #define NO_INCREMENT 1
31 #define REG_DIRECTION(_x, _y) ((_y)->DIRECT == 0 ? usb_rcvctrlpipe(_x, 0) : usb_sndctrlpipe(_x, 0))
32 #define REG_BUF_SIZE(_x) ((_x)->bRequest == 0x04 ? cpu_to_le16((_x)->wLength) : 4)
34 #define BB48_DEFAULT_AL2230_11B 0x0033447c
35 #define BB4C_DEFAULT_AL2230_11B 0x0A00FEFF
36 #define BB48_DEFAULT_AL2230_11G 0x00332C1B
37 #define BB4C_DEFAULT_AL2230_11G 0x0A00FEFF
40 #define BB48_DEFAULT_WB242_11B 0x00292315
41 #define BB4C_DEFAULT_WB242_11B 0x0800FEFF
42 #define BB48_DEFAULT_WB242_11G 0x00453B24
43 #define BB4C_DEFAULT_WB242_11G 0x0E00FEFF
50 #define DEFAULT_CWMIN 31
51 #define DEFAULT_CWMAX 1023
54 #define DEFAULT_RATE_RETRY_LIMIT 2
56 #define DEFAULT_LONG_RETRY_LIMIT 7
57 #define DEFAULT_SHORT_RETRY_LIMIT 7
58 #define DEFAULT_PIFST 25
59 #define DEFAULT_EIFST 354
60 #define DEFAULT_DIFST 45
61 #define DEFAULT_SIFST 5
62 #define DEFAULT_OSIFST 10
63 #define DEFAULT_ATIMWD 0
64 #define DEFAULT_SLOT_TIME 20
65 #define DEFAULT_MAX_TX_MSDU_LIFE_TIME 512
66 #define DEFAULT_BEACON_INTERVAL 500
67 #define DEFAULT_PROBE_DELAY_TIME 200
68 #define DEFAULT_PROTOCOL_VERSION 0
69 #define DEFAULT_MAC_POWER_STATE 2
70 #define DEFAULT_DTIM_ALERT_TIME 0
92 #define MAX_SQ3_FILTER_SIZE 5
177 u8 null_key,
u8 wep_on,
u8 *tx_tsc,
181 u8 null_key,
u8 wep_on,
u8 *tx_tsc,
189 unsigned char wakeup,
unsigned char dtim);
193 #define hal_set_atim_window(_A, _ATM)
210 #define hal_get_cwmin(_A) ((_A)->cwmin)
214 #define hal_get_cwmax(_A) ((_A)->cwmax)
217 u32 *rsn_oui_type ,
unsigned char desired_auth_mode);
225 #define hal_get_region_from_EEPROM(_A) ((_A)->reg.EEPROMRegion)
226 #define hal_get_tx_buffer(_A, _B) Wb35Tx_get_tx_buffer(_A, _B)
227 #define hal_software_set(_A) (_A->SoftwareSet)
228 #define hal_driver_init_OK(_A) (_A->IsInitOK)
229 #define hal_rssi_boundary_high(_A) (_A->RSSI_high)
230 #define hal_rssi_boundary_low(_A) (_A->RSSI_low)
231 #define hal_scan_interval(_A) (_A->Scan_Interval)
233 #define PHY_DEBUG(msg, args...)
236 #define hal_get_time_count(_P) (_P->time_count / 10)
238 #define hal_ibss_disconnect(_A) (hal_stop_sync_bss(_A))