iPXE
|
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 |
Functions | |
FILE_LICENCE (BSD2) | |
struct eepFlags | __attribute__ ((packed)) |
s32 | ar9003_hw_get_tx_gain_idx (struct ath_hw *ah) |
s32 | ar9003_hw_get_rx_gain_idx (struct ath_hw *ah) |
u8 * | ar9003_get_spur_chan_ptr (struct ath_hw *ah, int is_2ghz) |
unsigned int | ar9003_get_paprd_scale_factor (struct ath_hw *ah, struct ath9k_channel *chan) |
#define AR9300_EEP_VER 0xD000 |
Definition at line 25 of file ar9003_eeprom.h.
#define AR9300_EEP_VER_MINOR_MASK 0xFFF |
Definition at line 26 of file ar9003_eeprom.h.
#define AR9300_EEP_MINOR_VER_1 0x1 |
Definition at line 27 of file ar9003_eeprom.h.
#define AR9300_EEP_MINOR_VER AR9300_EEP_MINOR_VER_1 |
Definition at line 28 of file ar9003_eeprom.h.
#define AR9300_EEP_START_LOC 256 |
Definition at line 31 of file ar9003_eeprom.h.
#define AR9300_NUM_5G_CAL_PIERS 8 |
Definition at line 32 of file ar9003_eeprom.h.
#define AR9300_NUM_2G_CAL_PIERS 3 |
Definition at line 33 of file ar9003_eeprom.h.
#define AR9300_NUM_5G_20_TARGET_POWERS 8 |
Definition at line 34 of file ar9003_eeprom.h.
#define AR9300_NUM_5G_40_TARGET_POWERS 8 |
Definition at line 35 of file ar9003_eeprom.h.
#define AR9300_NUM_2G_CCK_TARGET_POWERS 2 |
Definition at line 36 of file ar9003_eeprom.h.
#define AR9300_NUM_2G_20_TARGET_POWERS 3 |
Definition at line 37 of file ar9003_eeprom.h.
#define AR9300_NUM_2G_40_TARGET_POWERS 3 |
Definition at line 38 of file ar9003_eeprom.h.
#define AR9300_NUM_CTLS_5G 9 |
Definition at line 40 of file ar9003_eeprom.h.
#define AR9300_NUM_CTLS_2G 12 |
Definition at line 41 of file ar9003_eeprom.h.
#define AR9300_NUM_BAND_EDGES_5G 8 |
Definition at line 42 of file ar9003_eeprom.h.
#define AR9300_NUM_BAND_EDGES_2G 4 |
Definition at line 43 of file ar9003_eeprom.h.
#define AR9300_EEPMISC_BIG_ENDIAN 0x01 |
Definition at line 44 of file ar9003_eeprom.h.
#define AR9300_EEPMISC_WOW 0x02 |
Definition at line 45 of file ar9003_eeprom.h.
#define AR9300_CUSTOMER_DATA_SIZE 20 |
Definition at line 46 of file ar9003_eeprom.h.
#define FBIN2FREQ | ( | x, | |
y | |||
) | ((y) ? (2300 + x) : (4800 + 5 * x)) |
Definition at line 48 of file ar9003_eeprom.h.
#define AR9300_MAX_CHAINS 3 |
Definition at line 49 of file ar9003_eeprom.h.
#define AR9300_ANT_16S 25 |
Definition at line 50 of file ar9003_eeprom.h.
#define AR9300_FUTURE_MODAL_SZ 6 |
Definition at line 51 of file ar9003_eeprom.h.
#define AR9300_PAPRD_RATE_MASK 0x01ffffff |
Definition at line 53 of file ar9003_eeprom.h.
#define AR9300_PAPRD_SCALE_1 0x0e000000 |
Definition at line 54 of file ar9003_eeprom.h.
#define AR9300_PAPRD_SCALE_1_S 25 |
Definition at line 55 of file ar9003_eeprom.h.
#define AR9300_PAPRD_SCALE_2 0x70000000 |
Definition at line 56 of file ar9003_eeprom.h.
#define AR9300_PAPRD_SCALE_2_S 28 |
Definition at line 57 of file ar9003_eeprom.h.
#define AR9300_PWR_TABLE_OFFSET 0 |
Definition at line 66 of file ar9003_eeprom.h.
#define AR9300_EEPROM_SIZE (16*1024) |
Definition at line 69 of file ar9003_eeprom.h.
#define AR9300_BASE_ADDR_4K 0xfff |
Definition at line 71 of file ar9003_eeprom.h.
#define AR9300_BASE_ADDR 0x3ff |
Definition at line 72 of file ar9003_eeprom.h.
#define AR9300_BASE_ADDR_512 0x1ff |
Definition at line 73 of file ar9003_eeprom.h.
#define AR9300_OTP_BASE 0x14000 |
Definition at line 75 of file ar9003_eeprom.h.
#define AR9300_OTP_STATUS 0x15f18 |
Definition at line 76 of file ar9003_eeprom.h.
#define AR9300_OTP_STATUS_TYPE 0x7 |
Definition at line 77 of file ar9003_eeprom.h.
#define AR9300_OTP_STATUS_VALID 0x4 |
Definition at line 78 of file ar9003_eeprom.h.
#define AR9300_OTP_STATUS_ACCESS_BUSY 0x2 |
Definition at line 79 of file ar9003_eeprom.h.
#define AR9300_OTP_STATUS_SM_BUSY 0x1 |
Definition at line 80 of file ar9003_eeprom.h.
#define AR9300_OTP_READ_DATA 0x15f1c |
Definition at line 81 of file ar9003_eeprom.h.
enum targetPowerHTRates |
Definition at line 83 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 100 of file ar9003_eeprom.h.
enum targetPowerCckRates |
Enumerator | |
---|---|
LEGACY_TARGET_RATE_1L_5L | |
LEGACY_TARGET_RATE_5S | |
LEGACY_TARGET_RATE_11L | |
LEGACY_TARGET_RATE_11S |
Definition at line 107 of file ar9003_eeprom.h.
enum ar9300_Rates |
Definition at line 114 of file ar9003_eeprom.h.
enum CompressAlgorithm |
Enumerator | |
---|---|
_CompressNone | |
_CompressLzma | |
_CompressPairs | |
_CompressBlock | |
_Compress4 | |
_Compress5 | |
_Compress6 | |
_Compress7 |
Definition at line 160 of file ar9003_eeprom.h.
FILE_LICENCE | ( | BSD2 | ) |
struct eepFlags __attribute__ | ( | (packed) | ) |
Definition at line 4950 of file ath9k_ar9003_eeprom.c.
References ah, ar9300_eeprom::baseEepHeader, and ar9300_base_eep_hdr::txrxgain.
Referenced by ar9003_tx_gain_table_apply().
Definition at line 4957 of file ath9k_ar9003_eeprom.c.
References ah, ar9300_eeprom::baseEepHeader, and ar9300_base_eep_hdr::txrxgain.
Referenced by ar9003_rx_gain_table_apply().
Definition at line 4964 of file ath9k_ar9003_eeprom.c.
References ah, ar9300_eeprom::modalHeader2G, ar9300_eeprom::modalHeader5G, and ar9300_modal_eep_header::spurChans.
Referenced by ar9003_hw_spur_mitigate_mrc_cck().
unsigned int ar9003_get_paprd_scale_factor | ( | struct ath_hw * | ah, |
struct ath9k_channel * | chan | ||
) |
Definition at line 4974 of file ath9k_ar9003_eeprom.c.
References ah, AR9300_PAPRD_SCALE_1, AR9300_PAPRD_SCALE_2, ath9k_channel::channel, IS_CHAN_2GHZ, ar9300_eeprom::modalHeader2G, ar9300_eeprom::modalHeader5G, MS, ar9300_modal_eep_header::papdRateMaskHt20, and ar9300_modal_eep_header::papdRateMaskHt40.
Referenced by ath9k_hw_ar9300_set_txpower().
u8 opFlags |
Definition at line 24 of file ar9003_eeprom.h.
u8 eepMisc |
Definition at line 25 of file ar9003_eeprom.h.
uint16_t regDmn[2] |
Definition at line 24 of file ar9003_eeprom.h.
u8 txrxMask |
Definition at line 26 of file ar9003_eeprom.h.
struct eepFlags opCapFlags |
Definition at line 27 of file ar9003_eeprom.h.
u8 rfSilent |
Definition at line 28 of file ar9003_eeprom.h.
u8 blueToothOptions |
Definition at line 29 of file ar9003_eeprom.h.
u8 deviceCap |
Definition at line 30 of file ar9003_eeprom.h.
u8 deviceType |
Definition at line 32 of file ar9003_eeprom.h.
int8_t pwrTableOffset |
Definition at line 36 of file ar9003_eeprom.h.
u8 params_for_tuning_caps[2] |
Definition at line 37 of file ar9003_eeprom.h.
u8 featureEnable |
Definition at line 45 of file ar9003_eeprom.h.
u8 miscConfiguration |
Definition at line 47 of file ar9003_eeprom.h.
u8 eepromWriteEnableGpio |
Definition at line 48 of file ar9003_eeprom.h.
u8 wlanDisableGpio |
Definition at line 49 of file ar9003_eeprom.h.
u8 wlanLedGpio |
Definition at line 50 of file ar9003_eeprom.h.
u8 rxBandSelectGpio |
Definition at line 51 of file ar9003_eeprom.h.
u8 txrxgain |
Definition at line 52 of file ar9003_eeprom.h.
uint32_t swreg |
Definition at line 54 of file ar9003_eeprom.h.
Referenced by ar9003_hw_internal_regulator_apply().
uint32_t antCtrlCommon |
Definition at line 25 of file ar9003_eeprom.h.
uint32_t antCtrlCommon2 |
Definition at line 27 of file ar9003_eeprom.h.
uint16_t antCtrlChain[AR9300_MAX_CHAINS] |
Definition at line 29 of file ar9003_eeprom.h.
u8 xatten1DB[AR9300_MAX_CHAINS] |
Definition at line 31 of file ar9003_eeprom.h.
u8 xatten1Margin[AR9300_MAX_CHAINS] |
Definition at line 33 of file ar9003_eeprom.h.
int8_t tempSlope |
Definition at line 34 of file ar9003_eeprom.h.
Referenced by ar9003_hw_power_control_override().
int8_t voltSlope |
Definition at line 35 of file ar9003_eeprom.h.
u8 spurChans[AR_EEPROM_MODAL_SPURS] |
Definition at line 37 of file ar9003_eeprom.h.
int8_t noiseFloorThreshCh[AR9300_MAX_CHAINS] |
Definition at line 39 of file ar9003_eeprom.h.
u8 ob[AR9300_MAX_CHAINS] |
Definition at line 40 of file ar9003_eeprom.h.
Referenced by ath9k_hw_4k_set_board_values().
u8 db_stage2[AR9300_MAX_CHAINS] |
Definition at line 41 of file ar9003_eeprom.h.
u8 db_stage3[AR9300_MAX_CHAINS] |
Definition at line 42 of file ar9003_eeprom.h.
u8 db_stage4[AR9300_MAX_CHAINS] |
Definition at line 43 of file ar9003_eeprom.h.
u8 xpaBiasLvl |
Definition at line 44 of file ar9003_eeprom.h.
u8 txFrameToDataStart |
Definition at line 45 of file ar9003_eeprom.h.
u8 txFrameToPaOn |
Definition at line 46 of file ar9003_eeprom.h.
u8 txClip |
Definition at line 47 of file ar9003_eeprom.h.
int8_t antennaGain |
Definition at line 48 of file ar9003_eeprom.h.
u8 switchSettling |
Definition at line 49 of file ar9003_eeprom.h.
int8_t adcDesiredSize |
Definition at line 50 of file ar9003_eeprom.h.
u8 txEndToXpaOff |
Definition at line 51 of file ar9003_eeprom.h.
u8 txEndToRxOn |
Definition at line 52 of file ar9003_eeprom.h.
u8 txFrameToXpaOn |
Definition at line 53 of file ar9003_eeprom.h.
u8 thresh62 |
Definition at line 54 of file ar9003_eeprom.h.
uint32_t papdRateMaskHt20 |
Definition at line 55 of file ar9003_eeprom.h.
uint32_t papdRateMaskHt40 |
Definition at line 56 of file ar9003_eeprom.h.
u8 futureModal[10] |
Definition at line 57 of file ar9003_eeprom.h.
int8_t refPower |
Definition at line 24 of file ar9003_eeprom.h.
u8 voltMeas |
Definition at line 26 of file ar9003_eeprom.h.
u8 tempMeas |
Definition at line 28 of file ar9003_eeprom.h.
int8_t rxNoisefloorCal |
Definition at line 30 of file ar9003_eeprom.h.
int8_t rxNoisefloorPower |
Definition at line 32 of file ar9003_eeprom.h.
u8 rxTempMeas |
Definition at line 34 of file ar9003_eeprom.h.
u8 tPow2x |
Definition at line 24 of file ar9003_eeprom.h.
Referenced by ath9k_hw_get_legacy_target_powers(), and ath9k_hw_get_target_powers().
u8 ctlEdges |
Definition at line 24 of file ar9003_eeprom.h.
Referenced by ar9003_hw_get_direct_edge_power(), and ar9003_hw_get_indirect_edge_power().
u8 ant_div_control |
Definition at line 24 of file ar9003_eeprom.h.
u8 future[13] |
Definition at line 25 of file ar9003_eeprom.h.
int8_t tempSlopeLow |
Definition at line 24 of file ar9003_eeprom.h.
int8_t tempSlopeHigh |
Definition at line 25 of file ar9003_eeprom.h.
u8 xatten1DBLow[AR9300_MAX_CHAINS] |
Definition at line 26 of file ar9003_eeprom.h.
u8 xatten1MarginLow[AR9300_MAX_CHAINS] |
Definition at line 27 of file ar9003_eeprom.h.
u8 xatten1DBHigh[AR9300_MAX_CHAINS] |
Definition at line 28 of file ar9003_eeprom.h.
u8 xatten1MarginHigh[AR9300_MAX_CHAINS] |
Definition at line 29 of file ar9003_eeprom.h.
u8 eepromVersion |
Definition at line 24 of file ar9003_eeprom.h.
u8 templateVersion |
Definition at line 25 of file ar9003_eeprom.h.
Referenced by ar9003_eeprom_struct_find_by_id().
u8 macAddr[6] |
Definition at line 26 of file ar9003_eeprom.h.
u8 custData[AR9300_CUSTOMER_DATA_SIZE] |
Definition at line 27 of file ar9003_eeprom.h.
struct ar9300_base_eep_hdr baseEepHeader |
Definition at line 29 of file ar9003_eeprom.h.
struct ar9300_modal_eep_header modalHeader2G |
Definition at line 31 of file ar9003_eeprom.h.
struct ar9300_BaseExtension_1 base_ext1 |
Definition at line 32 of file ar9003_eeprom.h.
u8 calFreqPier2G[AR9300_NUM_2G_CAL_PIERS] |
Definition at line 33 of file ar9003_eeprom.h.
struct ar9300_cal_data_per_freq_op_loop calPierData2G[AR9300_MAX_CHAINS][AR9300_NUM_2G_CAL_PIERS] |
Definition at line 34 of file ar9003_eeprom.h.
u8 calTarget_freqbin_Cck[AR9300_NUM_2G_CCK_TARGET_POWERS] |
Definition at line 36 of file ar9003_eeprom.h.
u8 calTarget_freqbin_2G[AR9300_NUM_2G_20_TARGET_POWERS] |
Definition at line 37 of file ar9003_eeprom.h.
u8 calTarget_freqbin_2GHT20[AR9300_NUM_2G_20_TARGET_POWERS] |
Definition at line 38 of file ar9003_eeprom.h.
u8 calTarget_freqbin_2GHT40[AR9300_NUM_2G_40_TARGET_POWERS] |
Definition at line 39 of file ar9003_eeprom.h.
struct cal_tgt_pow_legacy calTargetPowerCck[AR9300_NUM_2G_CCK_TARGET_POWERS] |
Definition at line 40 of file ar9003_eeprom.h.
struct cal_tgt_pow_legacy calTargetPower2G[AR9300_NUM_2G_20_TARGET_POWERS] |
Definition at line 42 of file ar9003_eeprom.h.
struct cal_tgt_pow_ht calTargetPower2GHT20[AR9300_NUM_2G_20_TARGET_POWERS] |
Definition at line 44 of file ar9003_eeprom.h.
struct cal_tgt_pow_ht calTargetPower2GHT40[AR9300_NUM_2G_40_TARGET_POWERS] |
Definition at line 46 of file ar9003_eeprom.h.
u8 ctlIndex_2G[AR9300_NUM_CTLS_2G] |
Definition at line 48 of file ar9003_eeprom.h.
u8 ctl_freqbin_2G[AR9300_NUM_CTLS_2G][AR9300_NUM_BAND_EDGES_2G] |
Definition at line 49 of file ar9003_eeprom.h.
struct cal_ctl_data_2g ctlPowerData_2G[AR9300_NUM_CTLS_2G] |
Definition at line 50 of file ar9003_eeprom.h.
struct ar9300_modal_eep_header modalHeader5G |
Definition at line 51 of file ar9003_eeprom.h.
struct ar9300_BaseExtension_2 base_ext2 |
Definition at line 52 of file ar9003_eeprom.h.
u8 calFreqPier5G[AR9300_NUM_5G_CAL_PIERS] |
Definition at line 53 of file ar9003_eeprom.h.
struct ar9300_cal_data_per_freq_op_loop calPierData5G[AR9300_MAX_CHAINS][AR9300_NUM_5G_CAL_PIERS] |
Definition at line 54 of file ar9003_eeprom.h.
u8 calTarget_freqbin_5G[AR9300_NUM_5G_20_TARGET_POWERS] |
Definition at line 56 of file ar9003_eeprom.h.
u8 calTarget_freqbin_5GHT20[AR9300_NUM_5G_20_TARGET_POWERS] |
Definition at line 57 of file ar9003_eeprom.h.
u8 calTarget_freqbin_5GHT40[AR9300_NUM_5G_40_TARGET_POWERS] |
Definition at line 58 of file ar9003_eeprom.h.
struct cal_tgt_pow_legacy calTargetPower5G[AR9300_NUM_5G_20_TARGET_POWERS] |
Definition at line 59 of file ar9003_eeprom.h.
struct cal_tgt_pow_ht calTargetPower5GHT20[AR9300_NUM_5G_20_TARGET_POWERS] |
Definition at line 61 of file ar9003_eeprom.h.
struct cal_tgt_pow_ht calTargetPower5GHT40[AR9300_NUM_5G_40_TARGET_POWERS] |
Definition at line 63 of file ar9003_eeprom.h.
u8 ctlIndex_5G[AR9300_NUM_CTLS_5G] |
Definition at line 65 of file ar9003_eeprom.h.
u8 ctl_freqbin_5G[AR9300_NUM_CTLS_5G][AR9300_NUM_BAND_EDGES_5G] |
Definition at line 66 of file ar9003_eeprom.h.
struct cal_ctl_data_5g ctlPowerData_5G[AR9300_NUM_CTLS_5G] |
Definition at line 67 of file ar9003_eeprom.h.