iPXE
|
Go to the source code of this file.
Functions | |
static u16 | ath9k_hw_fbin2freq (u8 fbin, int is2GHz) |
void | ath9k_hw_analog_shift_regwrite (struct ath_hw *ah, u32 reg, u32 val) |
void | ath9k_hw_analog_shift_rmw (struct ath_hw *ah, u32 reg, u32 mask, u32 shift, u32 val) |
int16_t | ath9k_hw_interpolate (u16 target, u16 srcLeft, u16 srcRight, int16_t targetLeft, int16_t targetRight) |
int | ath9k_hw_get_lower_upper_index (u8 target, u8 *pList, u16 listSize, u16 *indexL, u16 *indexR) |
void | ath9k_hw_usb_gen_fill_eeprom (struct ath_hw *ah, u16 *eep_data, int eep_start_loc, int size) |
int | ath9k_hw_nvram_read (struct ath_common *common, u32 off, u16 *data) |
void | ath9k_hw_fill_vpd_table (u8 pwrMin, u8 pwrMax, u8 *pPwrList, u8 *pVpdList, u16 numIntercepts, u8 *pRetVpdList) |
void | ath9k_hw_get_legacy_target_powers (struct ath_hw *ah, struct ath9k_channel *chan, struct cal_target_power_leg *powInfo, u16 numChannels, struct cal_target_power_leg *pNewPower, u16 numRates, int isExtTarget) |
void | ath9k_hw_get_target_powers (struct ath_hw *ah, struct ath9k_channel *chan, struct cal_target_power_ht *powInfo, u16 numChannels, struct cal_target_power_ht *pNewPower, u16 numRates, int isHt40Target) |
u16 | ath9k_hw_get_max_edge_power (u16 freq, struct cal_ctl_edges *pRdEdgesPower, int is2GHz, int num_band_edges) |
void | ath9k_hw_update_regulatory_maxpower (struct ath_hw *ah) |
void | ath9k_hw_get_gain_boundaries_pdadcs (struct ath_hw *ah, struct ath9k_channel *chan, void *pRawDataSet, u8 *bChans, u16 availPiers, u16 tPdGainOverlap, u16 *pPdGainBoundaries, u8 *pPDADCValues, u16 numXpdGains) |
int | ath9k_hw_eeprom_init (struct ath_hw *ah) |
Definition at line 24 of file ath9k_eeprom.c.
References AR5416_BCHAN_UNUSED.
Referenced by ath9k_hw_get_legacy_target_powers(), ath9k_hw_get_max_edge_power(), and ath9k_hw_get_target_powers().
Definition at line 32 of file ath9k_eeprom.c.
References ah, reg, REG_WRITE, udelay(), and val.
Referenced by ath9k_hw_ar9287_set_board_values().
Definition at line 40 of file ath9k_eeprom.c.
References ah, reg, REG_READ, REG_WRITE, udelay(), and val.
Referenced by ar9002_olc_init(), ath9k_hw_4k_set_board_values(), ath9k_hw_ar9287_set_board_values(), and ath9k_hw_def_set_board_values().
int16_t ath9k_hw_interpolate | ( | u16 | target, |
u16 | srcLeft, | ||
u16 | srcRight, | ||
int16_t | targetLeft, | ||
int16_t | targetRight | ||
) |
Definition at line 54 of file ath9k_eeprom.c.
Referenced by ath9k_hw_get_gain_boundaries_pdadcs(), ath9k_hw_get_legacy_target_powers(), and ath9k_hw_get_target_powers().
int ath9k_hw_get_lower_upper_index | ( | u8 | target, |
u8 * | pList, | ||
u16 | listSize, | ||
u16 * | indexL, | ||
u16 * | indexR | ||
) |
Definition at line 69 of file ath9k_eeprom.c.
References u16.
Referenced by ar9287_eeprom_get_tx_gain_index(), ath9k_get_txgain_index(), ath9k_hw_fill_vpd_table(), and ath9k_hw_get_gain_boundaries_pdadcs().
void ath9k_hw_usb_gen_fill_eeprom | ( | struct ath_hw * | ah, |
u16 * | eep_data, | ||
int | eep_start_loc, | ||
int | size | ||
) |
Definition at line 97 of file ath9k_eeprom.c.
References addr, ah, AR5416_EEPROM_OFFSET, AR5416_EEPROM_S, data, REG_READ_MULTI, and size.
Referenced by __ath9k_hw_usb_4k_fill_eeprom(), __ath9k_hw_usb_ar9287_fill_eeprom(), and __ath9k_hw_usb_def_fill_eeprom().
int ath9k_hw_nvram_read | ( | struct ath_common * | common, |
u32 | off, | ||
u16 * | data | ||
) |
Definition at line 129 of file ath9k_eeprom.c.
Referenced by __ath9k_hw_4k_fill_eeprom(), __ath9k_hw_ar9287_fill_eeprom(), __ath9k_hw_def_fill_eeprom(), ar9300_eeprom_read_byte(), ar9300_eeprom_read_word(), ar9300_eeprom_restore_flash(), ath9k_hw_4k_check_eeprom(), ath9k_hw_ar9287_check_eeprom(), and ath9k_hw_def_check_eeprom().
void ath9k_hw_fill_vpd_table | ( | u8 | pwrMin, |
u8 | pwrMax, | ||
u8 * | pPwrList, | ||
u8 * | pVpdList, | ||
u16 | numIntercepts, | ||
u8 * | pRetVpdList | ||
) |
Definition at line 134 of file ath9k_eeprom.c.
References ath9k_hw_get_lower_upper_index(), k, u16, and u8.
Referenced by ath9k_hw_get_gain_boundaries_pdadcs().
void ath9k_hw_get_legacy_target_powers | ( | struct ath_hw * | ah, |
struct ath9k_channel * | chan, | ||
struct cal_target_power_leg * | powInfo, | ||
u16 | numChannels, | ||
struct cal_target_power_leg * | pNewPower, | ||
u16 | numRates, | ||
int | isExtTarget | ||
) |
Definition at line 161 of file ath9k_eeprom.c.
References ah, AR5416_BCHAN_UNUSED, ath9k_hw_fbin2freq(), ath9k_hw_get_channel_centers(), ath9k_hw_interpolate(), chan_centers::ctl_center, chan_centers::ext_center, if(), IS_CHAN_2GHZ, tPow2x, cal_target_power_leg::tPow2x, and u8.
Referenced by ath9k_hw_set_4k_power_per_rate_table(), ath9k_hw_set_ar9287_power_per_rate_table(), and ath9k_hw_set_def_power_per_rate_table().
void ath9k_hw_get_target_powers | ( | struct ath_hw * | ah, |
struct ath9k_channel * | chan, | ||
struct cal_target_power_ht * | powInfo, | ||
u16 | numChannels, | ||
struct cal_target_power_ht * | pNewPower, | ||
u16 | numRates, | ||
int | isHt40Target | ||
) |
Definition at line 216 of file ath9k_eeprom.c.
References ah, AR5416_BCHAN_UNUSED, ath9k_hw_fbin2freq(), ath9k_hw_get_channel_centers(), ath9k_hw_interpolate(), chan_centers::ctl_center, IS_CHAN_2GHZ, chan_centers::synth_center, tPow2x, cal_target_power_ht::tPow2x, and u8.
Referenced by ath9k_hw_set_4k_power_per_rate_table(), ath9k_hw_set_ar9287_power_per_rate_table(), and ath9k_hw_set_def_power_per_rate_table().
u16 ath9k_hw_get_max_edge_power | ( | u16 | freq, |
struct cal_ctl_edges * | pRdEdgesPower, | ||
int | is2GHz, | ||
int | num_band_edges | ||
) |
Definition at line 271 of file ath9k_eeprom.c.
References AR5416_BCHAN_UNUSED, ath9k_hw_fbin2freq(), CTL_EDGE_FLAGS, CTL_EDGE_TPOWER, and MAX_RATE_POWER.
Referenced by ath9k_hw_set_4k_power_per_rate_table(), ath9k_hw_set_ar9287_power_per_rate_table(), and ath9k_hw_set_def_power_per_rate_table().
void ath9k_hw_update_regulatory_maxpower | ( | struct ath_hw * | ah | ) |
Definition at line 298 of file ath9k_eeprom.c.
References ah, ar5416_get_ntxchains, ath9k_hw_regulatory(), DBG2, INCREASE_MAXPOW_BY_THREE_CHAIN, INCREASE_MAXPOW_BY_TWO_CHAIN, and ath_regulatory::max_power_level.
void ath9k_hw_get_gain_boundaries_pdadcs | ( | struct ath_hw * | ah, |
struct ath9k_channel * | chan, | ||
void * | pRawDataSet, | ||
u8 * | bChans, | ||
u16 | availPiers, | ||
u16 | tPdGainOverlap, | ||
u16 * | pPdGainBoundaries, | ||
u8 * | pPDADCValues, | ||
u16 | numXpdGains | ||
) |
Definition at line 318 of file ath9k_eeprom.c.
References ah, AR5416_BCHAN_UNUSED, AR5416_MAX_PWR_RANGE_IN_HALF_DB, AR5416_NUM_PD_GAINS, AR5416_NUM_PDADC_VALUES, AR5416_PD_GAIN_ICEPTS, AR5416_PD_GAINS_IN_MASK, AR9287_PD_GAIN_ICEPTS, AR_SREV_5416_20_OR_LATER, AR_SREV_9271, AR_SREV_9280_20_OR_LATER, AR_SREV_9285, AR_SREV_9287, ath9k_hw_fill_vpd_table(), ath9k_hw_get_channel_centers(), ath9k_hw_get_lower_upper_index(), ath9k_hw_interpolate(), FREQ2FBIN, IS_CHAN_2GHZ, k, max, MAX_RATE_POWER, memset(), min, cal_data_per_freq::pwrPdg, cal_data_per_freq_4k::pwrPdg, cal_data_per_freq_ar9287::pwrPdg, ss, chan_centers::synth_center, u16, u8, cal_data_per_freq::vpdPdg, cal_data_per_freq_4k::vpdPdg, and cal_data_per_freq_ar9287::vpdPdg.
Referenced by ath9k_hw_set_4k_power_cal_table(), ath9k_hw_set_ar9287_power_cal_table(), and ath9k_hw_set_def_power_cal_table().
int ath9k_hw_eeprom_init | ( | struct ath_hw * | ah | ) |
Definition at line 530 of file ath9k_eeprom.c.
References ah, AR_SREV_9271, AR_SREV_9285, AR_SREV_9287, AR_SREV_9300_20_OR_LATER, eep_4k_ops, eep_ar9287_ops, eep_ar9300_ops, eep_def_ops, EIO, and status.
Referenced by ath9k_hw_post_init().