iPXE
|
Go to the source code of this file.
Macros | |
#define | SIZE_EEPROM_4K (sizeof(struct ar5416_eeprom_4k) / sizeof(u16)) |
#define | EEPROM_4K_SIZE (sizeof(struct ar5416_eeprom_4k) / sizeof(u16)) |
#define | CMP_TEST_GRP |
#define | EEP_MAP4K_SPURCHAN (ah->eeprom.map4k.modalHeader.spurChans[i].spurChan) |
Functions | |
static int | ath9k_hw_4k_get_eeprom_ver (struct ath_hw *ah) |
static int | ath9k_hw_4k_get_eeprom_rev (struct ath_hw *ah) |
static int | __ath9k_hw_4k_fill_eeprom (struct ath_hw *ah) |
static int | __ath9k_hw_usb_4k_fill_eeprom (struct ath_hw *ah) |
static int | ath9k_hw_4k_fill_eeprom (struct ath_hw *ah) |
static int | ath9k_hw_4k_check_eeprom (struct ath_hw *ah) |
static u32 | ath9k_hw_4k_get_eeprom (struct ath_hw *ah, enum eeprom_param param) |
static void | ath9k_hw_set_4k_power_cal_table (struct ath_hw *ah, struct ath9k_channel *chan, int16_t *pTxPowerIndexOffset) |
static void | ath9k_hw_set_4k_power_per_rate_table (struct ath_hw *ah, struct ath9k_channel *chan, int16_t *ratesArray, u16 cfgCtl, u16 AntennaReduction, u16 twiceMaxRegulatoryPower, u16 powerLimit) |
static void | ath9k_hw_4k_set_txpower (struct ath_hw *ah, struct ath9k_channel *chan, u16 cfgCtl, u8 twiceAntennaReduction, u8 twiceMaxRegulatoryPower, u8 powerLimit, int test) |
static void | ath9k_hw_4k_set_addac (struct ath_hw *ah, struct ath9k_channel *chan __unused) |
static void | ath9k_hw_4k_set_gain (struct ath_hw *ah, struct modal_eep_4k_header *pModal, struct ar5416_eeprom_4k *eep, u8 txRxAttenLocal) |
static void | ath9k_hw_4k_set_board_values (struct ath_hw *ah, struct ath9k_channel *chan) |
static u16 | ath9k_hw_4k_get_spur_channel (struct ath_hw *ah, u16 i, int is2GHz) |
Variables | |
const struct eeprom_ops | eep_4k_ops |
#define SIZE_EEPROM_4K (sizeof(struct ar5416_eeprom_4k) / sizeof(u16)) |
Definition at line 35 of file ath9k_eeprom_4k.c.
#define EEPROM_4K_SIZE (sizeof(struct ar5416_eeprom_4k) / sizeof(u16)) |
#define CMP_TEST_GRP |
#define EEP_MAP4K_SPURCHAN (ah->eeprom.map4k.modalHeader.spurChans[i].spurChan) |
|
static |
|
static |
|
static |
Definition at line 37 of file ath9k_eeprom_4k.c.
References addr, ah, ath9k_hw_common(), ath9k_hw_nvram_read(), common, DBG, and SIZE_EEPROM_4K.
Referenced by ath9k_hw_4k_fill_eeprom().
|
static |
Definition at line 56 of file ath9k_eeprom_4k.c.
References ah, ath9k_hw_usb_gen_fill_eeprom(), and SIZE_EEPROM_4K.
Referenced by ath9k_hw_4k_fill_eeprom().
|
static |
Definition at line 65 of file ath9k_eeprom_4k.c.
References __ath9k_hw_4k_fill_eeprom(), __ath9k_hw_usb_4k_fill_eeprom(), ah, ath9k_hw_common(), ath9k_hw_use_flash, ATH_USB, common, and DBG2.
|
static |
Definition at line 82 of file ath9k_eeprom_4k.c.
References addr, ah, modal_eep_4k_header::antCtrlChain, modal_eep_4k_header::antCtrlCommon, AR5416_EEP4K_MAX_CHAINS, AR5416_EEP_NO_BACK_VER, AR5416_EEP_VER, AR5416_EEPROM_MAGIC, AR5416_EEPROM_MAGIC_OFFSET, AR_EEPROM_MODAL_SPURS, ath9k_hw_common(), ath9k_hw_nvram_read(), ath9k_hw_use_flash, ar5416_eeprom_4k::baseEepHeader, base_eep_header_4k::blueToothOptions, base_eep_header_4k::checksum, common, DBG, DBG2, base_eep_header_4k::deviceCap, EEPROM_4K_SIZE, EINVAL, if(), base_eep_header_4k::length, magic, ar5416_eeprom_4k::modalHeader, base_eep_header_4k::regDmn, base_eep_header_4k::rfSilent, spur_chan::spurChan, modal_eep_4k_header::spurChans, swab16, swab32, u16, and base_eep_header_4k::version.
|
static |
Definition at line 198 of file ath9k_eeprom_4k.c.
References ah, modal_eep_4k_header::antdiv_ctl1, AR5416_EEP_MINOR_VER_19, AR5416_EEP_TXGAIN_ORIGINAL, AR5416_EEP_VER_MINOR_MASK, AR5416_PWR_TABLE_OFFSET_DB, ar5416_eeprom_4k::baseEepHeader, modal_eep_4k_header::db1_1, base_eep_header_4k::deviceCap, EEP_ANT_DIV_CTL1, EEP_DB_2, EEP_FRAC_N_5G, EEP_MAC_LSW, EEP_MAC_MID, EEP_MAC_MSW, EEP_MINOR_REV, EEP_MODAL_VER, EEP_NFTHRESH_2, EEP_OB_2, EEP_OP_CAP, EEP_OP_MODE, EEP_PWR_TABLE_OFFSET, EEP_REG_0, EEP_REG_1, EEP_RF_SILENT, EEP_RX_MASK, EEP_TX_MASK, EEP_TXGAIN_TYPE, base_eep_header_4k::macAddr, ar5416_eeprom_4k::modalHeader, modal_eep_4k_header::noiseFloorThreshCh, modal_eep_4k_header::ob_0, base_eep_header_4k::opCapFlags, param, base_eep_header_4k::regDmn, base_eep_header_4k::rfSilent, base_eep_header_4k::rxMask, base_eep_header_4k::txGainType, base_eep_header_4k::txMask, base_eep_header_4k::version, and modal_eep_4k_header::version.
|
static |
Definition at line 255 of file ath9k_eeprom_4k.c.
References ah, AR5416_EEP4K_MAX_CHAINS, AR5416_EEP4K_NUM_2G_CAL_PIERS, AR5416_EEP4K_NUM_PD_GAINS, AR5416_EEP_MINOR_VER_2, AR5416_EEP_VER_MINOR_MASK, AR5416_NUM_PDADC_VALUES, AR5416_PD_GAINS_IN_MASK, AR_PHY_BASE, AR_PHY_TPCRG1, AR_PHY_TPCRG1_NUM_PD_GAIN, AR_PHY_TPCRG1_PD_GAIN_1, AR_PHY_TPCRG1_PD_GAIN_2, AR_PHY_TPCRG1_PD_GAIN_3, AR_PHY_TPCRG5, AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_1, AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_2, AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_3, AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_4, AR_PHY_TPCRG5_PD_GAIN_OVERLAP, AR_SREV_5416_20_OR_LATER, ath9k_hw_get_gain_boundaries_pdadcs(), ar5416_eeprom_4k::baseEepHeader, ar5416_eeprom_4k::calFreqPier2G, ar5416_eeprom_4k::calPierData2G, DBG2, ENABLE_REGWRITE_BUFFER, ar5416_eeprom_4k::modalHeader, MS, NULL, modal_eep_4k_header::pdGainOverlap, REG_READ, REG_RMW_FIELD, REG_WRITE, REGWRITE_BUFFER_FLUSH, SM, base_eep_header_4k::txMask, u16, base_eep_header_4k::version, and modal_eep_4k_header::xpdGain.
Referenced by ath9k_hw_4k_set_txpower().
|
static |
Definition at line 370 of file ath9k_eeprom_4k.c.
References ah, modal_eep_4k_header::antennaGainCh, AR5416_EEP4K_NUM_BAND_EDGES, AR5416_EEP4K_NUM_CTLS, ar5416_get_ntxchains, AR5416_NUM_2G_20_TARGET_POWERS, AR5416_NUM_2G_40_TARGET_POWERS, AR5416_NUM_2G_CCK_TARGET_POWERS, ARRAY_SIZE, ath9k_hw_get_channel_centers(), ath9k_hw_get_legacy_target_powers(), ath9k_hw_get_max_edge_power(), ath9k_hw_get_target_powers(), ath9k_hw_regulatory(), ATH9K_TP_SCALE_MAX, ar5416_eeprom_4k::calTargetPower2G, ar5416_eeprom_4k::calTargetPower2GHT20, ar5416_eeprom_4k::calTargetPower2GHT40, ar5416_eeprom_4k::calTargetPowerCck, CMP_TEST_GRP, CTL_11B, CTL_11B_EXT, CTL_11G, CTL_11G_EXT, CTL_2GHT20, CTL_2GHT40, CTL_5GHT40, chan_centers::ctl_center, CTL_MODE_M, ar5416_eeprom_4k::ctlData, cal_ctl_data_4k::ctlEdges, ar5416_eeprom_4k::ctlIndex, EXT_ADDITIVE, chan_centers::ext_center, if(), IS_CHAN_2GHZ, IS_CHAN_HT40, max, MAX_RATE_POWER, min, ar5416_eeprom_4k::modalHeader, rate11l, rate11s, rate12mb, rate18mb, rate1l, rate24mb, rate2l, rate2s, rate36mb, rate48mb, rate54mb, rate5_5l, rate5_5s, rate6mb, rate9mb, rateDupCck, rateDupOfdm, rateExtCck, rateExtOfdm, rateHt20_0, rateHt40_0, rateXr, SD_NO_CTL, SUB_NUM_CTL_MODES_AT_2G_40, chan_centers::synth_center, ath_regulatory::tp_scale, cal_target_power_leg::tPow2x, cal_target_power_ht::tPow2x, and u8.
Referenced by ath9k_hw_4k_set_txpower().
|
static |
Definition at line 579 of file ath9k_eeprom_4k.c.
References ah, AR5416_EEP_MINOR_VER_2, AR5416_EEP_VER_MINOR_MASK, AR5416_PWR_TABLE_OFFSET_DB, Ar5416RateSize, AR_PHY_POWER_TX_RATE1, AR_PHY_POWER_TX_RATE2, AR_PHY_POWER_TX_RATE3, AR_PHY_POWER_TX_RATE4, AR_PHY_POWER_TX_RATE5, AR_PHY_POWER_TX_RATE6, AR_PHY_POWER_TX_RATE7, AR_PHY_POWER_TX_RATE8, AR_PHY_POWER_TX_RATE9, AR_SREV_9280_20_OR_LATER, ARRAY_SIZE, ath9k_hw_regulatory(), ath9k_hw_set_4k_power_cal_table(), ath9k_hw_set_4k_power_per_rate_table(), ATH9K_POW_SM, ar5416_eeprom_4k::baseEepHeader, ENABLE_REGWRITE_BUFFER, modal_eep_4k_header::ht40PowerIncForPdadc, IS_CHAN_HT20, IS_CHAN_HT40, ath_regulatory::max_power_level, MAX_RATE_POWER, memset(), ar5416_eeprom_4k::modalHeader, rate11l, rate11s, rate12mb, rate18mb, rate1l, rate24mb, rate2l, rate2s, rate36mb, rate48mb, rate54mb, rate5_5l, rate5_5s, rate6mb, rate9mb, rateDupCck, rateDupOfdm, rateExtCck, rateExtOfdm, rateHt20_0, rateHt20_1, rateHt20_2, rateHt20_3, rateHt20_4, rateHt20_5, rateHt20_6, rateHt20_7, rateHt40_0, rateHt40_1, rateHt40_2, rateHt40_3, rateHt40_4, rateHt40_5, rateHt40_6, rateHt40_7, rateXr, REG_WRITE, REGWRITE_BUFFER_FLUSH, test, and base_eep_header_4k::version.
|
static |
Definition at line 704 of file ath9k_eeprom_4k.c.
References ah, AR5416_EEP_MINOR_VER_7, AR_SREV_VERSION_9160, INI_RA, ar5416_eeprom_4k::modalHeader, and modal_eep_4k_header::xpaBiasLvl.
|
static |
Definition at line 726 of file ath9k_eeprom_4k.c.
References ah, modal_eep_4k_header::antCtrlChain, AR5416_EEP_MINOR_VER_3, AR5416_EEP_VER_MINOR_MASK, AR9280_PHY_RXGAIN_TXRX_ATTEN, AR9280_PHY_RXGAIN_TXRX_MARGIN, AR_PHY_GAIN_2GHZ, AR_PHY_GAIN_2GHZ_XATTEN1_DB, AR_PHY_GAIN_2GHZ_XATTEN1_MARGIN, AR_PHY_GAIN_2GHZ_XATTEN2_DB, AR_PHY_GAIN_2GHZ_XATTEN2_MARGIN, AR_PHY_RXGAIN, AR_PHY_SWITCH_CHAIN_0, AR_PHY_TIMING_CTRL4, AR_PHY_TIMING_CTRL4_IQCORR_Q_I_COFF, AR_PHY_TIMING_CTRL4_IQCORR_Q_Q_COFF, ar5416_eeprom_4k::baseEepHeader, modal_eep_4k_header::bswAtten, modal_eep_4k_header::bswMargin, modal_eep_4k_header::iqCalICh, modal_eep_4k_header::iqCalQCh, REG_READ, REG_RMW_FIELD, REG_WRITE, modal_eep_4k_header::rxTxMarginCh, SM, modal_eep_4k_header::txRxAttenCh, base_eep_header_4k::version, modal_eep_4k_header::xatten2Db, and modal_eep_4k_header::xatten2Margin.
Referenced by ath9k_hw_4k_set_board_values().
|
static |
Definition at line 784 of file ath9k_eeprom_4k.c.
References modal_eep_4k_header::adcDesiredSize, ah, modal_eep_4k_header::antCtrlCommon, modal_eep_4k_header::antdiv_ctl1, modal_eep_4k_header::antdiv_ctl2, AR5416_EEP_MINOR_VER_2, AR5416_EEP_MINOR_VER_3, AR5416_EEP_VER_MINOR_MASK, AR9271_AN_RF2G3_DB_1, AR9271_AN_RF2G3_DB_1_S, AR9271_AN_RF2G3_OB_cck, AR9271_AN_RF2G3_OB_cck_S, AR9271_AN_RF2G3_OB_psk, AR9271_AN_RF2G3_OB_psk_S, AR9271_AN_RF2G3_OB_qam, AR9271_AN_RF2G3_OB_qam_S, AR9271_AN_RF2G4_DB_2, AR9271_AN_RF2G4_DB_2_S, AR9280_PHY_CCA_THRESH62, AR9285_AN_RF2G3, AR9285_AN_RF2G3_DB1_0, AR9285_AN_RF2G3_DB1_0_S, AR9285_AN_RF2G3_DB1_1, AR9285_AN_RF2G3_DB1_1_S, AR9285_AN_RF2G3_DB1_2, AR9285_AN_RF2G3_DB1_2_S, AR9285_AN_RF2G3_OB_0, AR9285_AN_RF2G3_OB_0_S, AR9285_AN_RF2G3_OB_1, AR9285_AN_RF2G3_OB_1_S, AR9285_AN_RF2G3_OB_2, AR9285_AN_RF2G3_OB_2_S, AR9285_AN_RF2G3_OB_3, AR9285_AN_RF2G3_OB_3_S, AR9285_AN_RF2G3_OB_4, AR9285_AN_RF2G3_OB_4_S, AR9285_AN_RF2G4, AR9285_AN_RF2G4_DB1_3, AR9285_AN_RF2G4_DB1_3_S, AR9285_AN_RF2G4_DB1_4, AR9285_AN_RF2G4_DB1_4_S, AR9285_AN_RF2G4_DB2_0, AR9285_AN_RF2G4_DB2_0_S, AR9285_AN_RF2G4_DB2_1, AR9285_AN_RF2G4_DB2_1_S, AR9285_AN_RF2G4_DB2_2, AR9285_AN_RF2G4_DB2_2_S, AR9285_AN_RF2G4_DB2_3, AR9285_AN_RF2G4_DB2_3_S, AR9285_AN_RF2G4_DB2_4, AR9285_AN_RF2G4_DB2_4_S, AR_PHY_9285_ANT_DIV_ALT_GAINTB, AR_PHY_9285_ANT_DIV_ALT_LNACONF, AR_PHY_9285_ANT_DIV_CTL, AR_PHY_9285_ANT_DIV_CTL_ALL, AR_PHY_9285_ANT_DIV_MAIN_GAINTB, AR_PHY_9285_ANT_DIV_MAIN_LNACONF, AR_PHY_CCA, AR_PHY_CCK_DETECT, AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV, AR_PHY_CH0_TX_PWRCTRL11, AR_PHY_CH0_TX_PWRCTRL12, AR_PHY_CH0_TX_PWRCTRL13, AR_PHY_DESIRED_SZ, AR_PHY_DESIRED_SZ_ADC, AR_PHY_EXT_CCA0, AR_PHY_EXT_CCA0_THRESH62, AR_PHY_MULTICHAIN_GAIN_CTL, AR_PHY_RF_CTL2, AR_PHY_RF_CTL3, AR_PHY_RF_CTL4, AR_PHY_RF_CTL4_FRAME_XPAA_ON, AR_PHY_RF_CTL4_FRAME_XPAB_ON, AR_PHY_RF_CTL4_TX_END_XPAA_OFF, AR_PHY_RF_CTL4_TX_END_XPAB_OFF, AR_PHY_SETTLING, AR_PHY_SETTLING_SWITCH, AR_PHY_SWITCH_COM, AR_PHY_TX_END_DATA_START, AR_PHY_TX_END_PA_ON, AR_PHY_TX_END_TO_A2_RX_ON, AR_PHY_TX_PWRCTRL10, AR_PHY_TX_PWRCTRL8, AR_PHY_TX_PWRCTRL9, AR_SREV_9271, AR_SREV_9271_10, AR_SREV_9285, ath9k_hw_4k_set_gain(), ath9k_hw_analog_shift_rmw(), ar5416_eeprom_4k::baseEepHeader, modal_eep_4k_header::bb_scale_smrt_antenna, BIT, modal_eep_4k_header::db1_0, modal_eep_4k_header::db1_1, modal_eep_4k_header::db1_2, modal_eep_4k_header::db1_3, modal_eep_4k_header::db1_4, modal_eep_4k_header::db2_0, modal_eep_4k_header::db2_1, modal_eep_4k_header::db2_2, modal_eep_4k_header::db2_3, modal_eep_4k_header::db2_4, EEP_4K_BB_DESIRED_SCALE_MASK, IS_CHAN_HT40, ar5416_eeprom_4k::modalHeader, ob, modal_eep_4k_header::ob_0, modal_eep_4k_header::ob_1, modal_eep_4k_header::ob_2, modal_eep_4k_header::ob_3, modal_eep_4k_header::ob_4, REG_READ, REG_RMW, REG_RMW_FIELD, REG_WRITE, SM, modal_eep_4k_header::switchSettling, modal_eep_4k_header::swSettleHt40, modal_eep_4k_header::thresh62, modal_eep_4k_header::txEndToRxOn, modal_eep_4k_header::txEndToXpaOff, modal_eep_4k_header::txFrameToDataStart, modal_eep_4k_header::txFrameToPaOn, modal_eep_4k_header::txFrameToXpaOn, base_eep_header_4k::txGainType, base_eep_header_4k::version, and modal_eep_4k_header::version.
Definition at line 1039 of file ath9k_eeprom_4k.c.
References ah, AR_NO_SPUR, DBG2, EEP_MAP4K_SPURCHAN, SPUR_DISABLE, SPUR_ENABLE_EEPROM, and SPUR_ENABLE_IOCTL.
const struct eeprom_ops eep_4k_ops |
Definition at line 1068 of file ath9k_eeprom_4k.c.
Referenced by ath9k_hw_eeprom_init().