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

Go to the source code of this file.

Data Structures

struct  eepFlags
 
struct  ar9300_base_eep_hdr
 
struct  ar9300_modal_eep_header
 
struct  ar9300_cal_data_per_freq_op_loop
 
struct  cal_tgt_pow_legacy
 
struct  cal_tgt_pow_ht
 
struct  cal_ctl_data_2g
 
struct  cal_ctl_data_5g
 
struct  ar9300_BaseExtension_1
 
struct  ar9300_BaseExtension_2
 
struct  ar9300_eeprom
 

Macros

#define AR9300_EEP_VER   0xD000
 
#define AR9300_EEP_VER_MINOR_MASK   0xFFF
 
#define AR9300_EEP_MINOR_VER_1   0x1
 
#define AR9300_EEP_MINOR_VER   AR9300_EEP_MINOR_VER_1
 
#define AR9300_EEP_START_LOC   256
 
#define AR9300_NUM_5G_CAL_PIERS   8
 
#define AR9300_NUM_2G_CAL_PIERS   3
 
#define AR9300_NUM_5G_20_TARGET_POWERS   8
 
#define AR9300_NUM_5G_40_TARGET_POWERS   8
 
#define AR9300_NUM_2G_CCK_TARGET_POWERS   2
 
#define AR9300_NUM_2G_20_TARGET_POWERS   3
 
#define AR9300_NUM_2G_40_TARGET_POWERS   3
 
#define AR9300_NUM_CTLS_5G   9
 
#define AR9300_NUM_CTLS_2G   12
 
#define AR9300_NUM_BAND_EDGES_5G   8
 
#define AR9300_NUM_BAND_EDGES_2G   4
 
#define AR9300_EEPMISC_BIG_ENDIAN   0x01
 
#define AR9300_EEPMISC_WOW   0x02
 
#define AR9300_CUSTOMER_DATA_SIZE   20
 
#define AR9300_MAX_CHAINS   3
 
#define AR9300_ANT_16S   25
 
#define AR9300_FUTURE_MODAL_SZ   6
 
#define AR9300_PAPRD_RATE_MASK   0x01ffffff
 
#define AR9300_PAPRD_SCALE_1   0x0e000000
 
#define AR9300_PAPRD_SCALE_1_S   25
 
#define AR9300_PAPRD_SCALE_2   0x70000000
 
#define AR9300_PAPRD_SCALE_2_S   28
 
#define AR9300_PWR_TABLE_OFFSET   0
 
#define AR9300_EEPROM_SIZE   (16*1024)
 
#define AR9300_BASE_ADDR_4K   0xfff
 
#define AR9300_BASE_ADDR   0x3ff
 
#define AR9300_BASE_ADDR_512   0x1ff
 
#define AR9300_OTP_BASE   0x14000
 
#define AR9300_OTP_STATUS   0x15f18
 
#define AR9300_OTP_STATUS_TYPE   0x7
 
#define AR9300_OTP_STATUS_VALID   0x4
 
#define AR9300_OTP_STATUS_ACCESS_BUSY   0x2
 
#define AR9300_OTP_STATUS_SM_BUSY   0x1
 
#define AR9300_OTP_READ_DATA   0x15f1c
 

Enumerations

enum  targetPowerHTRates {
  HT_TARGET_RATE_0_8_16, HT_TARGET_RATE_1_3_9_11_17_19, HT_TARGET_RATE_4, HT_TARGET_RATE_5,
  HT_TARGET_RATE_6, HT_TARGET_RATE_7, HT_TARGET_RATE_12, HT_TARGET_RATE_13,
  HT_TARGET_RATE_14, HT_TARGET_RATE_15, HT_TARGET_RATE_20, HT_TARGET_RATE_21,
  HT_TARGET_RATE_22, HT_TARGET_RATE_23
}
 
enum  targetPowerLegacyRates { LEGACY_TARGET_RATE_6_24, LEGACY_TARGET_RATE_36, LEGACY_TARGET_RATE_48, LEGACY_TARGET_RATE_54 }
 
enum  targetPowerCckRates { LEGACY_TARGET_RATE_1L_5L, LEGACY_TARGET_RATE_5S, LEGACY_TARGET_RATE_11L, LEGACY_TARGET_RATE_11S }
 
enum  ar9300_Rates {
  ALL_TARGET_LEGACY_6_24, ALL_TARGET_LEGACY_36, ALL_TARGET_LEGACY_48, ALL_TARGET_LEGACY_54,
  ALL_TARGET_LEGACY_1L_5L, ALL_TARGET_LEGACY_5S, ALL_TARGET_LEGACY_11L, ALL_TARGET_LEGACY_11S,
  ALL_TARGET_HT20_0_8_16, ALL_TARGET_HT20_1_3_9_11_17_19, ALL_TARGET_HT20_4, ALL_TARGET_HT20_5,
  ALL_TARGET_HT20_6, ALL_TARGET_HT20_7, ALL_TARGET_HT20_12, ALL_TARGET_HT20_13,
  ALL_TARGET_HT20_14, ALL_TARGET_HT20_15, ALL_TARGET_HT20_20, ALL_TARGET_HT20_21,
  ALL_TARGET_HT20_22, ALL_TARGET_HT20_23, ALL_TARGET_HT40_0_8_16, ALL_TARGET_HT40_1_3_9_11_17_19,
  ALL_TARGET_HT40_4, ALL_TARGET_HT40_5, ALL_TARGET_HT40_6, ALL_TARGET_HT40_7,
  ALL_TARGET_HT40_12, ALL_TARGET_HT40_13, ALL_TARGET_HT40_14, ALL_TARGET_HT40_15,
  ALL_TARGET_HT40_20, ALL_TARGET_HT40_21, ALL_TARGET_HT40_22, ALL_TARGET_HT40_23,
  ar9300RateSize
}
 
enum  CompressAlgorithm {
  _CompressNone = 0, _CompressLzma, _CompressPairs, _CompressBlock,
  _Compress4, _Compress5, _Compress6, _Compress7
}
 

Functions

s32 ar9003_hw_get_tx_gain_idx (struct ath_hw *ah)
 
s32 ar9003_hw_get_rx_gain_idx (struct ath_hw *ah)
 
u8ar9003_get_spur_chan_ptr (struct ath_hw *ah, bool is_2ghz)
 
unsigned int ar9003_get_paprd_scale_factor (struct ath_hw *ah, struct ath9k_channel *chan)
 
void ar9003_hw_internal_regulator_apply (struct ath_hw *ah)
 

Variables

struct eepFlags __packed
 

Macro Definition Documentation

#define AR9300_ANT_16S   25

Definition at line 46 of file ar9003_eeprom.h.

#define AR9300_BASE_ADDR   0x3ff

Definition at line 68 of file ar9003_eeprom.h.

#define AR9300_BASE_ADDR_4K   0xfff

Definition at line 67 of file ar9003_eeprom.h.

#define AR9300_BASE_ADDR_512   0x1ff

Definition at line 69 of file ar9003_eeprom.h.

#define AR9300_CUSTOMER_DATA_SIZE   20

Definition at line 43 of file ar9003_eeprom.h.

#define AR9300_EEP_MINOR_VER   AR9300_EEP_MINOR_VER_1

Definition at line 25 of file ar9003_eeprom.h.

#define AR9300_EEP_MINOR_VER_1   0x1

Definition at line 24 of file ar9003_eeprom.h.

#define AR9300_EEP_START_LOC   256

Definition at line 28 of file ar9003_eeprom.h.

#define AR9300_EEP_VER   0xD000

Definition at line 22 of file ar9003_eeprom.h.

#define AR9300_EEP_VER_MINOR_MASK   0xFFF

Definition at line 23 of file ar9003_eeprom.h.

#define AR9300_EEPMISC_BIG_ENDIAN   0x01

Definition at line 41 of file ar9003_eeprom.h.

#define AR9300_EEPMISC_WOW   0x02

Definition at line 42 of file ar9003_eeprom.h.

#define AR9300_EEPROM_SIZE   (16*1024)

Definition at line 65 of file ar9003_eeprom.h.

#define AR9300_FUTURE_MODAL_SZ   6

Definition at line 47 of file ar9003_eeprom.h.

#define AR9300_MAX_CHAINS   3

Definition at line 45 of file ar9003_eeprom.h.

#define AR9300_NUM_2G_20_TARGET_POWERS   3

Definition at line 34 of file ar9003_eeprom.h.

#define AR9300_NUM_2G_40_TARGET_POWERS   3

Definition at line 35 of file ar9003_eeprom.h.

#define AR9300_NUM_2G_CAL_PIERS   3

Definition at line 30 of file ar9003_eeprom.h.

#define AR9300_NUM_2G_CCK_TARGET_POWERS   2

Definition at line 33 of file ar9003_eeprom.h.

#define AR9300_NUM_5G_20_TARGET_POWERS   8

Definition at line 31 of file ar9003_eeprom.h.

#define AR9300_NUM_5G_40_TARGET_POWERS   8

Definition at line 32 of file ar9003_eeprom.h.

#define AR9300_NUM_5G_CAL_PIERS   8

Definition at line 29 of file ar9003_eeprom.h.

#define AR9300_NUM_BAND_EDGES_2G   4

Definition at line 40 of file ar9003_eeprom.h.

#define AR9300_NUM_BAND_EDGES_5G   8

Definition at line 39 of file ar9003_eeprom.h.

#define AR9300_NUM_CTLS_2G   12

Definition at line 38 of file ar9003_eeprom.h.

#define AR9300_NUM_CTLS_5G   9

Definition at line 37 of file ar9003_eeprom.h.

#define AR9300_OTP_BASE   0x14000

Definition at line 71 of file ar9003_eeprom.h.

#define AR9300_OTP_READ_DATA   0x15f1c

Definition at line 77 of file ar9003_eeprom.h.

#define AR9300_OTP_STATUS   0x15f18

Definition at line 72 of file ar9003_eeprom.h.

#define AR9300_OTP_STATUS_ACCESS_BUSY   0x2

Definition at line 75 of file ar9003_eeprom.h.

#define AR9300_OTP_STATUS_SM_BUSY   0x1

Definition at line 76 of file ar9003_eeprom.h.

#define AR9300_OTP_STATUS_TYPE   0x7

Definition at line 73 of file ar9003_eeprom.h.

#define AR9300_OTP_STATUS_VALID   0x4

Definition at line 74 of file ar9003_eeprom.h.

#define AR9300_PAPRD_RATE_MASK   0x01ffffff

Definition at line 49 of file ar9003_eeprom.h.

#define AR9300_PAPRD_SCALE_1   0x0e000000

Definition at line 50 of file ar9003_eeprom.h.

#define AR9300_PAPRD_SCALE_1_S   25

Definition at line 51 of file ar9003_eeprom.h.

#define AR9300_PAPRD_SCALE_2   0x70000000

Definition at line 52 of file ar9003_eeprom.h.

#define AR9300_PAPRD_SCALE_2_S   28

Definition at line 53 of file ar9003_eeprom.h.

#define AR9300_PWR_TABLE_OFFSET   0

Definition at line 62 of file ar9003_eeprom.h.

Enumeration Type Documentation

Enumerator:
ALL_TARGET_LEGACY_6_24 
ALL_TARGET_LEGACY_36 
ALL_TARGET_LEGACY_48 
ALL_TARGET_LEGACY_54 
ALL_TARGET_LEGACY_1L_5L 
ALL_TARGET_LEGACY_5S 
ALL_TARGET_LEGACY_11L 
ALL_TARGET_LEGACY_11S 
ALL_TARGET_HT20_0_8_16 
ALL_TARGET_HT20_1_3_9_11_17_19 
ALL_TARGET_HT20_4 
ALL_TARGET_HT20_5 
ALL_TARGET_HT20_6 
ALL_TARGET_HT20_7 
ALL_TARGET_HT20_12 
ALL_TARGET_HT20_13 
ALL_TARGET_HT20_14 
ALL_TARGET_HT20_15 
ALL_TARGET_HT20_20 
ALL_TARGET_HT20_21 
ALL_TARGET_HT20_22 
ALL_TARGET_HT20_23 
ALL_TARGET_HT40_0_8_16 
ALL_TARGET_HT40_1_3_9_11_17_19 
ALL_TARGET_HT40_4 
ALL_TARGET_HT40_5 
ALL_TARGET_HT40_6 
ALL_TARGET_HT40_7 
ALL_TARGET_HT40_12 
ALL_TARGET_HT40_13 
ALL_TARGET_HT40_14 
ALL_TARGET_HT40_15 
ALL_TARGET_HT40_20 
ALL_TARGET_HT40_21 
ALL_TARGET_HT40_22 
ALL_TARGET_HT40_23 
ar9300RateSize 

Definition at line 110 of file ar9003_eeprom.h.

Enumerator:
_CompressNone 
_CompressLzma 
_CompressPairs 
_CompressBlock 
_Compress4 
_Compress5 
_Compress6 
_Compress7 

Definition at line 156 of file ar9003_eeprom.h.

Enumerator:
LEGACY_TARGET_RATE_1L_5L 
LEGACY_TARGET_RATE_5S 
LEGACY_TARGET_RATE_11L 
LEGACY_TARGET_RATE_11S 

Definition at line 103 of file ar9003_eeprom.h.

Enumerator:
HT_TARGET_RATE_0_8_16 
HT_TARGET_RATE_1_3_9_11_17_19 
HT_TARGET_RATE_4 
HT_TARGET_RATE_5 
HT_TARGET_RATE_6 
HT_TARGET_RATE_7 
HT_TARGET_RATE_12 
HT_TARGET_RATE_13 
HT_TARGET_RATE_14 
HT_TARGET_RATE_15 
HT_TARGET_RATE_20 
HT_TARGET_RATE_21 
HT_TARGET_RATE_22 
HT_TARGET_RATE_23 

Definition at line 79 of file ar9003_eeprom.h.

Enumerator:
LEGACY_TARGET_RATE_6_24 
LEGACY_TARGET_RATE_36 
LEGACY_TARGET_RATE_48 
LEGACY_TARGET_RATE_54 

Definition at line 96 of file ar9003_eeprom.h.

Function Documentation

unsigned int ar9003_get_paprd_scale_factor ( struct ath_hw ah,
struct ath9k_channel chan 
)

Definition at line 5201 of file ar9003_eeprom.c.

u8* ar9003_get_spur_chan_ptr ( struct ath_hw ah,
bool  is_2ghz 
)

Definition at line 5196 of file ar9003_eeprom.c.

s32 ar9003_hw_get_rx_gain_idx ( struct ath_hw ah)

Definition at line 5189 of file ar9003_eeprom.c.

s32 ar9003_hw_get_tx_gain_idx ( struct ath_hw ah)

Definition at line 5182 of file ar9003_eeprom.c.

void ar9003_hw_internal_regulator_apply ( struct ath_hw ah)

Definition at line 3809 of file ar9003_eeprom.c.

Variable Documentation