Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
wb35reg_s.h File Reference
#include <linux/spinlock.h>
#include <linux/types.h>
#include <linux/atomic.h>

Go to the source code of this file.

Data Structures

struct  wb35_reg_queue
 
struct  wb35_reg
 

Macros

#define GetBit(dwData, i)   (dwData & (0x00000001 << i))
 
#define SetBit(dwData, i)   (dwData | (0x00000001 << i))
 
#define ClearBit(dwData, i)   (dwData & ~(0x00000001 << i))
 
#define IGNORE_INCREMENT   0
 
#define AUTO_INCREMENT   0
 
#define NO_INCREMENT   1
 
#define REG_DIRECTION(_x, _y)   ((_y)->DIRECT == 0 ? usb_rcvctrlpipe(_x, 0) : usb_sndctrlpipe(_x, 0))
 
#define REG_BUF_SIZE(_x)   ((_x)->bRequest == 0x04 ? cpu_to_le16((_x)->wLength) : 4)
 
#define BB48_DEFAULT_AL2230_11B   0x0033447c
 
#define BB4C_DEFAULT_AL2230_11B   0x0A00FEFF
 
#define BB48_DEFAULT_AL2230_11G   0x00332C1B
 
#define BB4C_DEFAULT_AL2230_11G   0x0A00FEFF
 
#define BB48_DEFAULT_WB242_11B   0x00292315 /* backoff 2dB */
 
#define BB4C_DEFAULT_WB242_11B   0x0800FEFF /* backoff 2dB */
 
#define BB48_DEFAULT_WB242_11G   0x00453B24
 
#define BB4C_DEFAULT_WB242_11G   0x0E00FEFF
 
#define DEFAULT_CWMIN   31 /* (M2C) CWmin. Its value is in the range 0-31. */
 
#define DEFAULT_CWMAX   1023 /* (M2C) CWmax. Its value is in the range 0-1023. */
 
#define DEFAULT_AID   1 /* (M34) AID. Its value is in the range 1-2007. */
 
#define DEFAULT_RATE_RETRY_LIMIT   2 /* (M38) as named */
 
#define DEFAULT_LONG_RETRY_LIMIT   7 /* (M38) LongRetryLimit. Its value is in the range 0-15. */
 
#define DEFAULT_SHORT_RETRY_LIMIT   7 /* (M38) ShortRetryLimit. Its value is in the range 0-15. */
 
#define DEFAULT_PIFST   25 /* (M3C) PIFS Time. Its value is in the range 0-65535. */
 
#define DEFAULT_EIFST   354 /* (M3C) EIFS Time. Its value is in the range 0-1048575. */
 
#define DEFAULT_DIFST   45 /* (M3C) DIFS Time. Its value is in the range 0-65535. */
 
#define DEFAULT_SIFST   5 /* (M3C) SIFS Time. Its value is in the range 0-65535. */
 
#define DEFAULT_OSIFST   10 /* (M3C) Original SIFS Time. Its value is in the range 0-15. */
 
#define DEFAULT_ATIMWD   0 /* (M40) ATIM Window. Its value is in the range 0-65535. */
 
#define DEFAULT_SLOT_TIME   20 /* (M40) ($) SlotTime. Its value is in the range 0-255. */
 
#define DEFAULT_MAX_TX_MSDU_LIFE_TIME   512 /* (M44) MaxTxMSDULifeTime. Its value is in the range 0-4294967295. */
 
#define DEFAULT_BEACON_INTERVAL   500 /* (M48) Beacon Interval. Its value is in the range 0-65535. */
 
#define DEFAULT_PROBE_DELAY_TIME   200 /* (M48) Probe Delay Time. Its value is in the range 0-65535. */
 
#define DEFAULT_PROTOCOL_VERSION   0 /* (M4C) */
 
#define DEFAULT_MAC_POWER_STATE   2 /* (M4C) 2: MAC at power active */
 
#define DEFAULT_DTIM_ALERT_TIME   0
 
#define MAX_SQ3_FILTER_SIZE   5
 
#define hal_set_atim_window(_A, _ATM)
 
#define hal_get_cwmin(_A)   ((_A)->cwmin)
 
#define hal_get_cwmax(_A)   ((_A)->cwmax)
 
#define hal_get_region_from_EEPROM(_A)   ((_A)->reg.EEPROMRegion)
 
#define hal_get_tx_buffer(_A, _B)   Wb35Tx_get_tx_buffer(_A, _B)
 
#define hal_software_set(_A)   (_A->SoftwareSet)
 
#define hal_driver_init_OK(_A)   (_A->IsInitOK)
 
#define hal_rssi_boundary_high(_A)   (_A->RSSI_high)
 
#define hal_rssi_boundary_low(_A)   (_A->RSSI_low)
 
#define hal_scan_interval(_A)   (_A->Scan_Interval)
 
#define PHY_DEBUG(msg, args...)
 
#define hal_get_time_count(_P)   (_P->time_count / 10)
 
#define hal_ibss_disconnect(_A)   (hal_stop_sync_bss(_A))
 

Functions

void hal_remove_mapping_key (struct hw_data *hw_data, u8 *mac_addr)
 
void hal_remove_default_key (struct hw_data *hw_data, u32 index)
 
unsigned char hal_set_mapping_key (struct hw_data *adapter, u8 *mac_addr, u8 null_key, u8 wep_on, u8 *tx_tsc, u8 *rx_tsc, u8 key_type, u8 key_len, u8 *key_data)
 
unsigned char hal_set_default_key (struct hw_data *adapter, u8 index, u8 null_key, u8 wep_on, u8 *tx_tsc, u8 *rx_tsc, u8 key_type, u8 key_len, u8 *key_data)
 
void hal_clear_all_default_key (struct hw_data *hw_data)
 
void hal_clear_all_group_key (struct hw_data *hw_data)
 
void hal_clear_all_mapping_key (struct hw_data *hw_data)
 
void hal_clear_all_key (struct hw_data *hw_data)
 
void hal_set_power_save_mode (struct hw_data *hw_data, unsigned char power_save, unsigned char wakeup, unsigned char dtim)
 
void hal_get_power_save_mode (struct hw_data *hw_data, u8 *in_pwr_save)
 
void hal_set_slot_time (struct hw_data *hw_data, u8 type)
 
void hal_start_bss (struct hw_data *hw_data, u8 mac_op_mode)
 
void hal_join_request (struct hw_data *hw_data, u8 bss_type)
 
void hal_stop_sync_bss (struct hw_data *hw_data)
 
void hal_resume_sync_bss (struct hw_data *hw_data)
 
void hal_set_aid (struct hw_data *hw_data, u16 aid)
 
void hal_set_bssid (struct hw_data *hw_data, u8 *bssid)
 
void hal_get_bssid (struct hw_data *hw_data, u8 *bssid)
 
void hal_set_listen_interval (struct hw_data *hw_data, u16 listen_interval)
 
void hal_set_cap_info (struct hw_data *hw_data, u16 capability_info)
 
void hal_set_ssid (struct hw_data *hw_data, u8 *ssid, u8 ssid_len)
 
void hal_start_tx0 (struct hw_data *hw_data)
 
void hal_set_cwmax (struct hw_data *hw_data, u16 cwin_max)
 
void hal_set_rsn_wpa (struct hw_data *hw_data, u32 *rsn_ie_bitmap, u32 *rsn_oui_type, unsigned char desired_auth_mode)
 
void hal_set_connect_info (struct hw_data *hw_data, unsigned char bo_connect)
 
u8 hal_get_est_sq3 (struct hw_data *hw_data, u8 count)
 
void hal_descriptor_indicate (struct hw_data *hw_data, struct wb35_descriptor *des)
 
u8 hal_get_antenna_number (struct hw_data *hw_data)
 
u32 hal_get_bss_pk_cnt (struct hw_data *hw_data)
 

Macro Definition Documentation

#define AUTO_INCREMENT   0

Definition at line 29 of file wb35reg_s.h.

#define BB48_DEFAULT_AL2230_11B   0x0033447c

Definition at line 34 of file wb35reg_s.h.

#define BB48_DEFAULT_AL2230_11G   0x00332C1B

Definition at line 36 of file wb35reg_s.h.

#define BB48_DEFAULT_WB242_11B   0x00292315 /* backoff 2dB */

Definition at line 40 of file wb35reg_s.h.

#define BB48_DEFAULT_WB242_11G   0x00453B24

Definition at line 42 of file wb35reg_s.h.

#define BB4C_DEFAULT_AL2230_11B   0x0A00FEFF

Definition at line 35 of file wb35reg_s.h.

#define BB4C_DEFAULT_AL2230_11G   0x0A00FEFF

Definition at line 37 of file wb35reg_s.h.

#define BB4C_DEFAULT_WB242_11B   0x0800FEFF /* backoff 2dB */

Definition at line 41 of file wb35reg_s.h.

#define BB4C_DEFAULT_WB242_11G   0x0E00FEFF

Definition at line 43 of file wb35reg_s.h.

#define ClearBit (   dwData,
  i 
)    (dwData & ~(0x00000001 << i))

Definition at line 26 of file wb35reg_s.h.

#define DEFAULT_AID   1 /* (M34) AID. Its value is in the range 1-2007. */

Definition at line 52 of file wb35reg_s.h.

#define DEFAULT_ATIMWD   0 /* (M40) ATIM Window. Its value is in the range 0-65535. */

Definition at line 63 of file wb35reg_s.h.

#define DEFAULT_BEACON_INTERVAL   500 /* (M48) Beacon Interval. Its value is in the range 0-65535. */

Definition at line 66 of file wb35reg_s.h.

#define DEFAULT_CWMAX   1023 /* (M2C) CWmax. Its value is in the range 0-1023. */

Definition at line 51 of file wb35reg_s.h.

#define DEFAULT_CWMIN   31 /* (M2C) CWmin. Its value is in the range 0-31. */

Definition at line 50 of file wb35reg_s.h.

#define DEFAULT_DIFST   45 /* (M3C) DIFS Time. Its value is in the range 0-65535. */

Definition at line 60 of file wb35reg_s.h.

#define DEFAULT_DTIM_ALERT_TIME   0

Definition at line 70 of file wb35reg_s.h.

#define DEFAULT_EIFST   354 /* (M3C) EIFS Time. Its value is in the range 0-1048575. */

Definition at line 59 of file wb35reg_s.h.

#define DEFAULT_LONG_RETRY_LIMIT   7 /* (M38) LongRetryLimit. Its value is in the range 0-15. */

Definition at line 56 of file wb35reg_s.h.

#define DEFAULT_MAC_POWER_STATE   2 /* (M4C) 2: MAC at power active */

Definition at line 69 of file wb35reg_s.h.

#define DEFAULT_MAX_TX_MSDU_LIFE_TIME   512 /* (M44) MaxTxMSDULifeTime. Its value is in the range 0-4294967295. */

Definition at line 65 of file wb35reg_s.h.

#define DEFAULT_OSIFST   10 /* (M3C) Original SIFS Time. Its value is in the range 0-15. */

Definition at line 62 of file wb35reg_s.h.

#define DEFAULT_PIFST   25 /* (M3C) PIFS Time. Its value is in the range 0-65535. */

Definition at line 58 of file wb35reg_s.h.

#define DEFAULT_PROBE_DELAY_TIME   200 /* (M48) Probe Delay Time. Its value is in the range 0-65535. */

Definition at line 67 of file wb35reg_s.h.

#define DEFAULT_PROTOCOL_VERSION   0 /* (M4C) */

Definition at line 68 of file wb35reg_s.h.

#define DEFAULT_RATE_RETRY_LIMIT   2 /* (M38) as named */

Definition at line 54 of file wb35reg_s.h.

#define DEFAULT_SHORT_RETRY_LIMIT   7 /* (M38) ShortRetryLimit. Its value is in the range 0-15. */

Definition at line 57 of file wb35reg_s.h.

#define DEFAULT_SIFST   5 /* (M3C) SIFS Time. Its value is in the range 0-65535. */

Definition at line 61 of file wb35reg_s.h.

#define DEFAULT_SLOT_TIME   20 /* (M40) ($) SlotTime. Its value is in the range 0-255. */

Definition at line 64 of file wb35reg_s.h.

#define GetBit (   dwData,
  i 
)    (dwData & (0x00000001 << i))

Definition at line 24 of file wb35reg_s.h.

#define hal_driver_init_OK (   _A)    (_A->IsInitOK)

Definition at line 228 of file wb35reg_s.h.

#define hal_get_cwmax (   _A)    ((_A)->cwmax)

Definition at line 214 of file wb35reg_s.h.

#define hal_get_cwmin (   _A)    ((_A)->cwmin)

Definition at line 210 of file wb35reg_s.h.

#define hal_get_region_from_EEPROM (   _A)    ((_A)->reg.EEPROMRegion)

Definition at line 225 of file wb35reg_s.h.

#define hal_get_time_count (   _P)    (_P->time_count / 10)

Definition at line 236 of file wb35reg_s.h.

#define hal_get_tx_buffer (   _A,
  _B 
)    Wb35Tx_get_tx_buffer(_A, _B)

Definition at line 226 of file wb35reg_s.h.

#define hal_ibss_disconnect (   _A)    (hal_stop_sync_bss(_A))

Definition at line 238 of file wb35reg_s.h.

#define hal_rssi_boundary_high (   _A)    (_A->RSSI_high)

Definition at line 229 of file wb35reg_s.h.

#define hal_rssi_boundary_low (   _A)    (_A->RSSI_low)

Definition at line 230 of file wb35reg_s.h.

#define hal_scan_interval (   _A)    (_A->Scan_Interval)

Definition at line 231 of file wb35reg_s.h.

#define hal_set_atim_window (   _A,
  _ATM 
)

Definition at line 193 of file wb35reg_s.h.

#define hal_software_set (   _A)    (_A->SoftwareSet)

Definition at line 227 of file wb35reg_s.h.

#define IGNORE_INCREMENT   0

Definition at line 28 of file wb35reg_s.h.

#define MAX_SQ3_FILTER_SIZE   5

Definition at line 92 of file wb35reg_s.h.

#define NO_INCREMENT   1

Definition at line 30 of file wb35reg_s.h.

#define PHY_DEBUG (   msg,
  args... 
)

Definition at line 233 of file wb35reg_s.h.

#define REG_BUF_SIZE (   _x)    ((_x)->bRequest == 0x04 ? cpu_to_le16((_x)->wLength) : 4)

Definition at line 32 of file wb35reg_s.h.

#define REG_DIRECTION (   _x,
  _y 
)    ((_y)->DIRECT == 0 ? usb_rcvctrlpipe(_x, 0) : usb_sndctrlpipe(_x, 0))

Definition at line 31 of file wb35reg_s.h.

#define SetBit (   dwData,
  i 
)    (dwData | (0x00000001 << i))

Definition at line 25 of file wb35reg_s.h.

Function Documentation

void hal_clear_all_default_key ( struct hw_data hw_data)
void hal_clear_all_group_key ( struct hw_data hw_data)
void hal_clear_all_key ( struct hw_data hw_data)
void hal_clear_all_mapping_key ( struct hw_data hw_data)
void hal_descriptor_indicate ( struct hw_data hw_data,
struct wb35_descriptor des 
)
u8 hal_get_antenna_number ( struct hw_data hw_data)

Definition at line 349 of file wbusb.c.

u32 hal_get_bss_pk_cnt ( struct hw_data hw_data)
void hal_get_bssid ( struct hw_data hw_data,
u8 bssid 
)
u8 hal_get_est_sq3 ( struct hw_data hw_data,
u8  count 
)
void hal_get_power_save_mode ( struct hw_data hw_data,
u8 in_pwr_save 
)
void hal_join_request ( struct hw_data hw_data,
u8  bss_type 
)
void hal_remove_default_key ( struct hw_data hw_data,
u32  index 
)
void hal_remove_mapping_key ( struct hw_data hw_data,
u8 mac_addr 
)
void hal_resume_sync_bss ( struct hw_data hw_data)
void hal_set_aid ( struct hw_data hw_data,
u16  aid 
)
void hal_set_bssid ( struct hw_data hw_data,
u8 bssid 
)
void hal_set_cap_info ( struct hw_data hw_data,
u16  capability_info 
)
void hal_set_connect_info ( struct hw_data hw_data,
unsigned char  bo_connect 
)
void hal_set_cwmax ( struct hw_data hw_data,
u16  cwin_max 
)
unsigned char hal_set_default_key ( struct hw_data adapter,
u8  index,
u8  null_key,
u8  wep_on,
u8 tx_tsc,
u8 rx_tsc,
u8  key_type,
u8  key_len,
u8 key_data 
)
void hal_set_listen_interval ( struct hw_data hw_data,
u16  listen_interval 
)
unsigned char hal_set_mapping_key ( struct hw_data adapter,
u8 mac_addr,
u8  null_key,
u8  wep_on,
u8 tx_tsc,
u8 rx_tsc,
u8  key_type,
u8  key_len,
u8 key_data 
)
void hal_set_power_save_mode ( struct hw_data hw_data,
unsigned char  power_save,
unsigned char  wakeup,
unsigned char  dtim 
)
void hal_set_rsn_wpa ( struct hw_data hw_data,
u32 rsn_ie_bitmap,
u32 rsn_oui_type,
unsigned char  desired_auth_mode 
)
void hal_set_slot_time ( struct hw_data hw_data,
u8  type 
)
void hal_set_ssid ( struct hw_data hw_data,
u8 ssid,
u8  ssid_len 
)
void hal_start_bss ( struct hw_data hw_data,
u8  mac_op_mode 
)
void hal_start_tx0 ( struct hw_data hw_data)
void hal_stop_sync_bss ( struct hw_data hw_data)