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

Go to the source code of this file.

Data Structures

struct  R00_descriptor
 
struct  T00_descriptor
 
struct  R01_descriptor
 
struct  T01_descriptor
 
struct  T02_descriptor
 
struct  wb35_descriptor
 
struct  txvga_for_50
 
struct  hw_data
 

Macros

#define HAL_LED_SET_MASK   0x001c
 
#define HAL_LED_SET_SHIFT   2
 
#define RF_MAXIM_2825   0
 
#define RF_MAXIM_2827   1
 
#define RF_MAXIM_2828   2
 
#define RF_MAXIM_2829   3
 
#define RF_MAXIM_V1   15
 
#define RF_AIROHA_2230   16
 
#define RF_AIROHA_7230   17
 
#define RF_AIROHA_2230S   18
 
#define RF_WB_242   33
 
#define RF_WB_242_1   34
 
#define RF_DECIDE_BY_INF   255
 
#define HAL_USB_MODE_BURST(_H)   (_H->SoftwareSet & 0x20)
 
#define SCAN_MAX_CHNL_TIME   (50)
 
#define FRAME_TYPE_802_3_DATA   0
 
#define FRAME_TYPE_802_11_MANAGEMENT   1
 
#define FRAME_TYPE_802_11_MANAGEMENT_CHALLENGE   2
 
#define FRAME_TYPE_802_11_CONTROL   3
 
#define FRAME_TYPE_802_11_DATA   4
 
#define FRAME_TYPE_PROMISCUOUS   5
 
#define DOT_11_SEQUENCE_OFFSET   22 /* Sequence control offset */
 
#define DOT_3_TYPE_OFFSET   12
 
#define DOT_11_MAC_HEADER_SIZE   24
 
#define DOT_11_SNAP_SIZE   6
 
#define DOT_11_TYPE_OFFSET   30 /* The start offset of 802.11 Frame. Type encapsulation. */
 
#define DEFAULT_SIFSTIME   10
 
#define DEFAULT_FRAGMENT_THRESHOLD   2346 /* No fragment */
 
#define DEFAULT_MSDU_LIFE_TIME   0xffff
 
#define LONG_PREAMBLE_PLUS_PLCPHEADER_TIME   (144 + 48)
 
#define SHORT_PREAMBLE_PLUS_PLCPHEADER_TIME   (72 + 24)
 
#define PREAMBLE_PLUS_SIGNAL_PLUS_SIGNALEXTENSION   (16 + 4 + 6)
 
#define Tsym   4
 
#define MAC_TYPE_MANAGEMENT   0x00
 
#define MAC_TYPE_CONTROL   0x04
 
#define MAC_TYPE_DATA   0x08
 
#define MASK_FRAGMENT_NUMBER   0x000F
 
#define SEQUENCE_NUMBER_SHIFT   4
 
#define HAL_WOL_TYPE_WAKEUP_FRAME   0x01
 
#define HAL_WOL_TYPE_MAGIC_PACKET   0x02
 
#define HAL_KEYTYPE_WEP40   0
 
#define HAL_KEYTYPE_WEP104   1
 
#define HAL_KEYTYPE_TKIP   2 /* 128 bit key */
 
#define HAL_KEYTYPE_AES_CCMP   3 /* 128 bit key */
 
#define MAX_KEY_TABLE   24 /* 24 entry for storing key data */
 
#define GROUP_KEY_START_INDEX   4
 
#define MAPPING_KEY_START_INDEX   8
 
#define MAX_DESCRIPTOR_BUFFER_INDEX   8 /* Have to multiple of 2 */
 
#define FLAG_ERROR_TX_MASK   0x000000bf
 
#define FLAG_ERROR_RX_MASK   0x0000083f
 
#define FLAG_BAND_RX_MASK   0x10000000 /* Bit 28 */
 
#define MAX_TXVGA_EEPROM   9 /* How many word(u16) of EEPROM will be used for TxVGA */
 
#define MAX_RF_PARAMETER   32
 

Enumerations

enum  { VM_STOP = 0, VM_RUNNING, VM_COMPLETED }
 

Macro Definition Documentation

#define DEFAULT_FRAGMENT_THRESHOLD   2346 /* No fragment */

Definition at line 56 of file wbhal.h.

#define DEFAULT_MSDU_LIFE_TIME   0xffff

Definition at line 57 of file wbhal.h.

#define DEFAULT_SIFSTIME   10

Definition at line 55 of file wbhal.h.

#define DOT_11_MAC_HEADER_SIZE   24

Definition at line 52 of file wbhal.h.

#define DOT_11_SEQUENCE_OFFSET   22 /* Sequence control offset */

Definition at line 50 of file wbhal.h.

#define DOT_11_SNAP_SIZE   6

Definition at line 53 of file wbhal.h.

#define DOT_11_TYPE_OFFSET   30 /* The start offset of 802.11 Frame. Type encapsulation. */

Definition at line 54 of file wbhal.h.

#define DOT_3_TYPE_OFFSET   12

Definition at line 51 of file wbhal.h.

#define FLAG_BAND_RX_MASK   0x10000000 /* Bit 28 */

Definition at line 106 of file wbhal.h.

#define FLAG_ERROR_RX_MASK   0x0000083f

Definition at line 104 of file wbhal.h.

#define FLAG_ERROR_TX_MASK   0x000000bf

Definition at line 103 of file wbhal.h.

#define FRAME_TYPE_802_11_CONTROL   3

Definition at line 45 of file wbhal.h.

#define FRAME_TYPE_802_11_DATA   4

Definition at line 46 of file wbhal.h.

#define FRAME_TYPE_802_11_MANAGEMENT   1

Definition at line 43 of file wbhal.h.

#define FRAME_TYPE_802_11_MANAGEMENT_CHALLENGE   2

Definition at line 44 of file wbhal.h.

#define FRAME_TYPE_802_3_DATA   0

Definition at line 42 of file wbhal.h.

#define FRAME_TYPE_PROMISCUOUS   5

Definition at line 47 of file wbhal.h.

#define GROUP_KEY_START_INDEX   4

Definition at line 94 of file wbhal.h.

#define HAL_KEYTYPE_AES_CCMP   3 /* 128 bit key */

Definition at line 77 of file wbhal.h.

#define HAL_KEYTYPE_TKIP   2 /* 128 bit key */

Definition at line 76 of file wbhal.h.

#define HAL_KEYTYPE_WEP104   1

Definition at line 75 of file wbhal.h.

#define HAL_KEYTYPE_WEP40   0

Definition at line 74 of file wbhal.h.

#define HAL_LED_SET_MASK   0x001c

Definition at line 7 of file wbhal.h.

#define HAL_LED_SET_SHIFT   2

Definition at line 8 of file wbhal.h.

#define HAL_USB_MODE_BURST (   _H)    (_H->SoftwareSet & 0x20)

Definition at line 36 of file wbhal.h.

#define HAL_WOL_TYPE_MAGIC_PACKET   0x02

Definition at line 72 of file wbhal.h.

#define HAL_WOL_TYPE_WAKEUP_FRAME   0x01

Definition at line 71 of file wbhal.h.

#define LONG_PREAMBLE_PLUS_PLCPHEADER_TIME   (144 + 48)

Definition at line 59 of file wbhal.h.

#define MAC_TYPE_CONTROL   0x04

Definition at line 66 of file wbhal.h.

#define MAC_TYPE_DATA   0x08

Definition at line 67 of file wbhal.h.

#define MAC_TYPE_MANAGEMENT   0x00

Definition at line 65 of file wbhal.h.

#define MAPPING_KEY_START_INDEX   8

Definition at line 95 of file wbhal.h.

#define MASK_FRAGMENT_NUMBER   0x000F

Definition at line 68 of file wbhal.h.

#define MAX_DESCRIPTOR_BUFFER_INDEX   8 /* Have to multiple of 2 */

Definition at line 102 of file wbhal.h.

#define MAX_KEY_TABLE   24 /* 24 entry for storing key data */

Definition at line 93 of file wbhal.h.

#define MAX_RF_PARAMETER   32

Definition at line 346 of file wbhal.h.

#define MAX_TXVGA_EEPROM   9 /* How many word(u16) of EEPROM will be used for TxVGA */

Definition at line 345 of file wbhal.h.

#define PREAMBLE_PLUS_SIGNAL_PLUS_SIGNALEXTENSION   (16 + 4 + 6)

Definition at line 61 of file wbhal.h.

#define RF_AIROHA_2230   16

Definition at line 16 of file wbhal.h.

#define RF_AIROHA_2230S   18

Definition at line 18 of file wbhal.h.

#define RF_AIROHA_7230   17

Definition at line 17 of file wbhal.h.

#define RF_DECIDE_BY_INF   255

Definition at line 21 of file wbhal.h.

#define RF_MAXIM_2825   0

Definition at line 11 of file wbhal.h.

#define RF_MAXIM_2827   1

Definition at line 12 of file wbhal.h.

#define RF_MAXIM_2828   2

Definition at line 13 of file wbhal.h.

#define RF_MAXIM_2829   3

Definition at line 14 of file wbhal.h.

#define RF_MAXIM_V1   15

Definition at line 15 of file wbhal.h.

#define RF_WB_242   33

Definition at line 19 of file wbhal.h.

#define RF_WB_242_1   34

Definition at line 20 of file wbhal.h.

#define SCAN_MAX_CHNL_TIME   (50)

Definition at line 39 of file wbhal.h.

#define SEQUENCE_NUMBER_SHIFT   4

Definition at line 69 of file wbhal.h.

#define SHORT_PREAMBLE_PLUS_PLCPHEADER_TIME   (72 + 24)

Definition at line 60 of file wbhal.h.

#define Tsym   4

Definition at line 62 of file wbhal.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
VM_STOP 
VM_RUNNING 
VM_COMPLETED 

Definition at line 80 of file wbhal.h.