iPXE
|
#include <ipxe/malloc.h>
#include <ipxe/io.h>
#include "hw.h"
#include "hw-ops.h"
#include "../regd.h"
#include "ar9002_phy.h"
Go to the source code of this file.
Macros | |
#define | REG_WRITE_RF_ARRAY(iniarray, regData, regWr) ar5008_write_rf_array(ah, iniarray, regData, &(regWr)) |
#define | ATH_ALLOC_BANK(bank, size) |
#define | ATH_FREE_BANK(bank) |
Functions | |
static void | ar5008_rf_bank_setup (u32 *bank, struct ar5416IniArray *array, int col) |
static void | ar5008_write_rf_array (struct ath_hw *ah, struct ar5416IniArray *array, u32 *data, unsigned int *writecnt) |
static void | ar5008_hw_phy_modify_rx_buffer (u32 *rfBuf, u32 reg32, u32 numBits, u32 firstBit, u32 column) |
ar5008_hw_phy_modify_rx_buffer() - perform analog swizzling of parameters @rfbuf: @reg32: @numBits: @firstBit: @column: More... | |
static void | ar5008_hw_force_bias (struct ath_hw *ah, u16 synth_freq) |
static int | ar5008_hw_set_channel (struct ath_hw *ah, struct ath9k_channel *chan) |
ar5008_hw_set_channel - tune to a channel on the external AR2133/AR5133 radios @ah: atheros hardware structure @chan: More... | |
static void | ar5008_hw_spur_mitigate (struct ath_hw *ah, struct ath9k_channel *chan) |
ar5008_hw_spur_mitigate - convert baseband spur frequency for external radios @ah: atheros hardware structure @chan: More... | |
static int | ar5008_hw_rf_alloc_ext_banks (struct ath_hw *ah) |
ar5008_hw_rf_alloc_ext_banks - allocates banks for external radio programming @ah: atheros hardware structure More... | |
static void | ar5008_hw_rf_free_ext_banks (struct ath_hw *ah) |
ar5008_hw_rf_free_ext_banks - Free memory for analog bank scratch buffers @ah: atheros hardware struture For the external AR2133/AR5133 radios banks. More... | |
static int | ar5008_hw_set_rf_regs (struct ath_hw *ah, struct ath9k_channel *chan, u16 modesIndex) |
static void | ar5008_hw_init_bb (struct ath_hw *ah, struct ath9k_channel *chan) |
static void | ar5008_hw_init_chain_masks (struct ath_hw *ah) |
static void | ar5008_hw_override_ini (struct ath_hw *ah, struct ath9k_channel *chan __unused) |
static void | ar5008_hw_set_channel_regs (struct ath_hw *ah, struct ath9k_channel *chan) |
static int | ar5008_hw_process_ini (struct ath_hw *ah, struct ath9k_channel *chan) |
static void | ar5008_hw_set_rfmode (struct ath_hw *ah, struct ath9k_channel *chan) |
static void | ar5008_hw_mark_phy_inactive (struct ath_hw *ah) |
static void | ar5008_hw_set_delta_slope (struct ath_hw *ah, struct ath9k_channel *chan) |
static int | ar5008_hw_rfbus_req (struct ath_hw *ah) |
static void | ar5008_hw_rfbus_done (struct ath_hw *ah) |
static void | ar5008_restore_chainmask (struct ath_hw *ah) |
static void | ar5008_set_diversity (struct ath_hw *ah, int value) |
static u32 | ar9100_hw_compute_pll_control (struct ath_hw *ah __unused, struct ath9k_channel *chan) |
static u32 | ar9160_hw_compute_pll_control (struct ath_hw *ah __unused, struct ath9k_channel *chan) |
static u32 | ar5008_hw_compute_pll_control (struct ath_hw *ah __unused, struct ath9k_channel *chan) |
static int | ar5008_hw_ani_control_old (struct ath_hw *ah, enum ath9k_ani_cmd cmd, int param) |
static int | ar5008_hw_ani_control_new (struct ath_hw *ah, enum ath9k_ani_cmd cmd, int param) |
static void | ar5008_hw_do_getnf (struct ath_hw *ah, int16_t nfarray[NUM_NF_READINGS]) |
static void | ar5008_hw_ani_cache_ini_regs (struct ath_hw *ah) |
static void | ar5008_hw_set_nf_limits (struct ath_hw *ah) |
static void | ar5008_hw_set_radar_params (struct ath_hw *ah, struct ath_hw_radar_conf *conf) |
static void | ar5008_hw_set_radar_conf (struct ath_hw *ah) |
void | ar5008_hw_attach_phy_ops (struct ath_hw *ah) |
Variables | |
static const int | firstep_table [] |
static const int | cycpwrThr1_table [] |
static const int | m1ThreshLow_off = 127 |
static const int | m2ThreshLow_off = 127 |
static const int | m1Thresh_off = 127 |
static const int | m2Thresh_off = 127 |
static const int | m2CountThr_off = 31 |
static const int | m2CountThrLow_off = 63 |
static const int | m1ThreshLowExt_off = 127 |
static const int | m2ThreshLowExt_off = 127 |
static const int | m1ThreshExt_off = 127 |
static const int | m2ThreshExt_off = 127 |
#define REG_WRITE_RF_ARRAY | ( | iniarray, | |
regData, | |||
regWr | |||
) | ar5008_write_rf_array(ah, iniarray, regData, &(regWr)) |
Definition at line 63 of file ath9k_ar5008_phy.c.
#define ATH_ALLOC_BANK | ( | bank, | |
size | |||
) |
#define ATH_FREE_BANK | ( | bank | ) |
|
static |
|
static |
Definition at line 66 of file ath9k_ar5008_phy.c.
References ah, array, data, DO_DELAY, ENABLE_REGWRITE_BUFFER, INI_RA, r, REG_WRITE, and REGWRITE_BUFFER_FLUSH.
|
static |
ar5008_hw_phy_modify_rx_buffer() - perform analog swizzling of parameters @rfbuf: @reg32: @numBits: @firstBit: @column:
Performs analog "swizzling" of parameters into their location. Used on external AR2133/AR5133 radios.
Definition at line 92 of file ath9k_ar5008_phy.c.
References ath9k_hw_reverse_bits().
Referenced by ar5008_hw_force_bias(), and ar5008_hw_set_rf_regs().
Definition at line 145 of file ath9k_ar5008_phy.c.
References ah, ar5008_hw_phy_modify_rx_buffer(), AR_SREV_5416, ath9k_hw_reverse_bits(), DBG, and REG_WRITE_RF_ARRAY.
Referenced by ar5008_hw_set_channel().
|
static |
ar5008_hw_set_channel - tune to a channel on the external AR2133/AR5133 radios @ah: atheros hardware structure @chan:
For the external AR2133/AR5133 radios, takes the MHz channel value and set the channel value. Assumes writes enabled to analog bus and bank6 register cache in ah->analogBank6Data.
Definition at line 183 of file ath9k_ar5008_phy.c.
References ah, ar5008_hw_force_bias(), AR_PHY, AR_PHY_CCK_TX_CTRL, AR_PHY_CCK_TX_CTRL_JAPAN, AR_SREV_9100, AR_SREV_9160_10_OR_LATER, ath9k_hw_get_channel_centers(), ath9k_hw_reverse_bits(), DBG, EINVAL, REG_READ, REG_WRITE, and chan_centers::synth_center.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
ar5008_hw_spur_mitigate - convert baseband spur frequency for external radios @ah: atheros hardware structure @chan:
For non single-chip solutions. Converts to baseband spur frequency given the input channel frequency and compute register settings below.
Definition at line 263 of file ath9k_ar5008_phy.c.
References abs, ah, AR_EEPROM_MODAL_SPURS, AR_NO_SPUR, AR_PHY_BIN_MASK2_1, AR_PHY_BIN_MASK2_2, AR_PHY_BIN_MASK2_3, AR_PHY_BIN_MASK2_4, AR_PHY_BIN_MASK_1, AR_PHY_BIN_MASK_2, AR_PHY_BIN_MASK_3, AR_PHY_CHANNEL_MASK_01_30, AR_PHY_CHANNEL_MASK_31_60, AR_PHY_MASK2_M_00_15, AR_PHY_MASK2_M_16_30, AR_PHY_MASK2_M_31_45, AR_PHY_MASK2_P_15_01, AR_PHY_MASK2_P_30_16, AR_PHY_MASK2_P_45_31, AR_PHY_MASK2_P_61_45, AR_PHY_MASK_CTL, AR_PHY_PILOT_MASK_01_30, AR_PHY_PILOT_MASK_31_60, AR_PHY_SPUR_REG, AR_PHY_SPUR_REG_ENABLE_MASK_PPM, AR_PHY_SPUR_REG_ENABLE_VIT_SPUR_RSSI, AR_PHY_SPUR_REG_MASK_RATE_CNTL, AR_PHY_SPUR_REG_MASK_RATE_SELECT, AR_PHY_SPUR_REG_SPUR_RSSI_THRESH, AR_PHY_TIMING10, AR_PHY_TIMING11, AR_PHY_TIMING11_SPUR_DELTA_PHASE, AR_PHY_TIMING11_SPUR_FREQ_SD, AR_PHY_TIMING11_USE_SPUR_IN_AGC, AR_PHY_TIMING7, AR_PHY_TIMING8, AR_PHY_TIMING9, AR_PHY_TIMING_CTRL4, AR_PHY_TIMING_CTRL4_ENABLE_CHAN_MASK, AR_PHY_TIMING_CTRL4_ENABLE_PILOT_MASK, AR_PHY_TIMING_CTRL4_ENABLE_SPUR_FILTER, AR_PHY_TIMING_CTRL4_ENABLE_SPUR_RSSI, AR_PHY_VIT_MASK2_M_46_61, bp, ath9k_channel::channel, IS_CHAN_2GHZ, memset(), REG_READ, REG_WRITE, SM, SPUR_RSSI_THRESH, and tmp.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
ar5008_hw_rf_alloc_ext_banks - allocates banks for external radio programming @ah: atheros hardware structure
Only required for older devices with external AR2133/AR5133 radios.
Definition at line 473 of file ath9k_ar5008_phy.c.
References ah, and ATH_ALLOC_BANK.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
ar5008_hw_rf_free_ext_banks - Free memory for analog bank scratch buffers @ah: atheros hardware struture For the external AR2133/AR5133 radios banks.
Definition at line 504 of file ath9k_ar5008_phy.c.
References ah, and ATH_FREE_BANK.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 536 of file ath9k_ar5008_phy.c.
References ah, ar5008_hw_phy_modify_rx_buffer(), ar5008_rf_bank_setup(), AR_SREV_9280_20_OR_LATER, EEP_DB_2, EEP_DB_5, EEP_MINOR_REV, EEP_OB_2, EEP_OB_5, INI_RA, IS_CHAN_2GHZ, and REG_WRITE_RF_ARRAY.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 615 of file ath9k_ar5008_phy.c.
References ah, AR_PHY_ACTIVE, AR_PHY_ACTIVE_EN, AR_PHY_RX_DELAY, AR_PHY_RX_DELAY_DELAY, BASE_ACTIVATE_DELAY, IS_CHAN_B, REG_READ, REG_WRITE, and udelay().
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 631 of file ath9k_ar5008_phy.c.
References ah, AR_PHY_ANALOG_SWAP, AR_PHY_CAL_CHAINMASK, AR_PHY_RX_CHAINMASK, AR_PHY_SWAP_ALT_CHAIN, AR_SELFGEN_MASK, AR_SREV_9100, AR_SREV_REVISION_5416_10, ENABLE_REGWRITE_BUFFER, REG_READ, REG_SET_BIT, REG_WRITE, and REGWRITE_BUFFER_FLUSH.
Referenced by ar5008_hw_process_ini().
|
static |
Definition at line 676 of file ath9k_ar5008_phy.c.
References ah, AR_DIAG_RX_ABORT, AR_DIAG_RX_DIS, AR_DIAG_SW, AR_PCU_MISC_MODE2, AR_PCU_MISC_MODE2_HWWAR1, AR_PCU_MISC_MODE2_HWWAR2, AR_PHY_HEAVY_CLIP_FACTOR_RIFS, AR_PHY_RIFS_INIT_DELAY, AR_SREV_5416_20_OR_LATER, AR_SREV_9100, AR_SREV_9160, AR_SREV_9271, AR_SREV_9280_20_OR_LATER, AR_SREV_9287_11_OR_LATER, REG_READ, REG_SET_BIT, REG_WRITE, and val.
Referenced by ar5008_hw_process_ini().
|
static |
Definition at line 720 of file ath9k_ar5008_phy.c.
References ah, AR_CST, AR_CST_TIMEOUT_LIMIT_S, AR_GTXTO, AR_GTXTO_TIMEOUT_LIMIT_S, AR_PHY_FC_DYN2040_EN, AR_PHY_FC_DYN2040_PRI_CH, AR_PHY_FC_ENABLE_DAC_FIFO, AR_PHY_FC_HT_EN, AR_PHY_FC_SHORT_GI_40, AR_PHY_FC_SINGLE_HT_LTF1, AR_PHY_FC_WALSH, AR_PHY_TURBO, AR_SREV_9285_12_OR_LATER, ath9k_hw_set11nmac2040(), ath9k_channel::chanmode, CHANNEL_A_HT40PLUS, CHANNEL_G_HT40PLUS, ENABLE_REGWRITE_BUFFER, IS_CHAN_HT40, REG_READ, REG_WRITE, and REGWRITE_BUFFER_FLUSH.
Referenced by ar5008_hw_attach_phy_ops(), and ar5008_hw_process_ini().
|
static |
Definition at line 754 of file ath9k_ar5008_phy.c.
References ah, ar5008_hw_init_chain_masks(), ar5008_hw_override_ini(), ar5008_hw_set_channel_regs(), AR_AN_TOP2, AR_AN_TOP2_PWDCLKIND, AR_PHY, AR_PHY_ADC_SERIAL_CTL, AR_PHY_SEL_EXTERNAL_RADIO, AR_PHY_SEL_INTERNAL_ADDAC, AR_SREV_5416_22_OR_LATER, AR_SREV_9271, AR_SREV_9271_10, AR_SREV_9280, AR_SREV_9285_12_OR_LATER, AR_SREV_9287_11_OR_LATER, ath9k_hw_common(), ath9k_hw_regulatory(), ath9k_hw_set_rf_regs(), ath9k_olc_init(), ath9k_regd_get_ctl(), ATH_USB, ath9k_channel::chan, ath9k_channel::chanmode, channel, CHANNEL_A, CHANNEL_A_HT20, CHANNEL_A_HT40MINUS, CHANNEL_A_HT40PLUS, CHANNEL_B, CHANNEL_G, CHANNEL_G_HT20, CHANNEL_G_HT40MINUS, CHANNEL_G_HT40PLUS, common, DBG, DO_DELAY, EEP_TXGAIN_TYPE, EINVAL, EIO, ENABLE_REGWRITE_BUFFER, ar5416IniArray::ia_array, ar5416IniArray::ia_columns, ar5416IniArray::ia_rows, INI_RA, IS_CHAN_A_FAST_CLOCK, MAX_RATE_POWER, memcpy(), min, ath_regulatory::power_limit, reg, REG_WRITE, REG_WRITE_ARRAY, REGWRITE_BUFFER_FLUSH, u32, udelay(), and val.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 914 of file ath9k_ar5008_phy.c.
References ah, AR_PHY_MODE, AR_PHY_MODE_DYN_CCK_DISABLE, AR_PHY_MODE_DYNAMIC, AR_PHY_MODE_OFDM, AR_PHY_MODE_RF2GHZ, AR_PHY_MODE_RF5GHZ, AR_SREV_9280_20_OR_LATER, IS_CHAN_5GHZ, IS_CHAN_A_FAST_CLOCK, IS_CHAN_B, IS_CHAN_G, NULL, and REG_WRITE.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 934 of file ath9k_ar5008_phy.c.
References ah, AR_PHY_ACTIVE, AR_PHY_ACTIVE_DIS, and REG_WRITE.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 939 of file ath9k_ar5008_phy.c.
References ah, AR_PHY_HALFGI, AR_PHY_HALFGI_DSC_EXP, AR_PHY_HALFGI_DSC_MAN, AR_PHY_TIMING3, AR_PHY_TIMING3_DSC_EXP, AR_PHY_TIMING3_DSC_MAN, ath9k_hw_get_channel_centers(), ath9k_hw_get_delta_slope_vals(), IS_CHAN_HALF_RATE, IS_CHAN_QUARTER_RATE, REG_RMW_FIELD, and chan_centers::synth_center.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 973 of file ath9k_ar5008_phy.c.
References ah, AH_WAIT_TIMEOUT, AR_PHY_RFBUS_GRANT, AR_PHY_RFBUS_GRANT_EN, AR_PHY_RFBUS_REQ, AR_PHY_RFBUS_REQ_EN, ath9k_hw_wait(), and REG_WRITE.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 980 of file ath9k_ar5008_phy.c.
References ah, AR_PHY_RFBUS_REQ, AR_PHY_RX_DELAY, AR_PHY_RX_DELAY_DELAY, BASE_ACTIVATE_DELAY, IS_CHAN_B, REG_READ, REG_WRITE, and udelay().
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 993 of file ath9k_ar5008_phy.c.
References ah, AR_PHY_CAL_CHAINMASK, AR_PHY_RX_CHAINMASK, and REG_WRITE.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 1003 of file ath9k_ar5008_phy.c.
References ah, AR_PHY_CCK_DETECT, AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV, REG_READ, REG_WRITE, and value.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 1013 of file ath9k_ar5008_phy.c.
References IS_CHAN_5GHZ.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 1021 of file ath9k_ar5008_phy.c.
References AR_RTC_9160_PLL_CLKSEL, AR_RTC_9160_PLL_DIV, AR_RTC_9160_PLL_REFDIV, IS_CHAN_5GHZ, IS_CHAN_HALF_RATE, IS_CHAN_QUARTER_RATE, and SM.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 1041 of file ath9k_ar5008_phy.c.
References AR_RTC_PLL_CLKSEL, AR_RTC_PLL_DIV, AR_RTC_PLL_DIV2, AR_RTC_PLL_REFDIV_5, IS_CHAN_5GHZ, IS_CHAN_HALF_RATE, IS_CHAN_QUARTER_RATE, and SM.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 1061 of file ath9k_ar5008_phy.c.
References ah, AR_PHY_AGC_CTL1, AR_PHY_AGC_CTL1_COARSE_HIGH, AR_PHY_AGC_CTL1_COARSE_LOW, AR_PHY_CCK_DETECT, AR_PHY_CCK_DETECT_WEAK_SIG_THR_CCK, AR_PHY_DESIRED_SZ, AR_PHY_DESIRED_SZ_TOT_DES, AR_PHY_FIND_SIG, AR_PHY_FIND_SIG_FIRPWR, AR_PHY_FIND_SIG_FIRSTEP, AR_PHY_SFCORR, AR_PHY_SFCORR_EXT, AR_PHY_SFCORR_EXT_M1_THRESH, AR_PHY_SFCORR_EXT_M1_THRESH_LOW, AR_PHY_SFCORR_EXT_M2_THRESH, AR_PHY_SFCORR_EXT_M2_THRESH_LOW, AR_PHY_SFCORR_LOW, AR_PHY_SFCORR_LOW_M1_THRESH_LOW, AR_PHY_SFCORR_LOW_M2_THRESH_LOW, AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW, AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW, AR_PHY_SFCORR_M1_THRESH, AR_PHY_SFCORR_M2_THRESH, AR_PHY_SFCORR_M2COUNT_THR, AR_PHY_TIMING5, AR_PHY_TIMING5_CYCPWR_THR1, ARRAY_SIZE, ATH9K_ANI_CCK_WEAK_SIGNAL_THR, ATH9K_ANI_FIRSTEP_LEVEL, ATH9K_ANI_NOISE_IMMUNITY_LEVEL, ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION, ATH9K_ANI_PRESENT, ATH9K_ANI_SPUR_IMMUNITY_LEVEL, ar5416AniState::cckPhyErrCount, ar5416AniState::cckWeakSigThreshold, cmd, DBG, DBG2, ar5416AniState::firstepLevel, high, ar5416AniState::listenTime, ar5416AniState::noiseImmunityLevel, ar5416AniState::ofdmPhyErrCount, ar5416AniState::ofdmWeakSigDetect, param, REG_CLR_BIT, REG_RMW_FIELD, REG_SET_BIT, and ar5416AniState::spurImmunityLevel.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 1237 of file ath9k_ar5008_phy.c.
References ah, ath9k_channel::ani, AR_PHY_EXT_CCA, AR_PHY_EXT_TIMING5_CYCPWR_THR1, AR_PHY_FIND_SIG, AR_PHY_FIND_SIG_FIRSTEP, AR_PHY_FIND_SIG_FIRSTEP_LOW, AR_PHY_FIND_SIG_LOW, AR_PHY_SFCORR, AR_PHY_SFCORR_EXT, AR_PHY_SFCORR_EXT_M1_THRESH, AR_PHY_SFCORR_EXT_M1_THRESH_LOW, AR_PHY_SFCORR_EXT_M2_THRESH, AR_PHY_SFCORR_EXT_M2_THRESH_LOW, AR_PHY_SFCORR_LOW, AR_PHY_SFCORR_LOW_M1_THRESH_LOW, AR_PHY_SFCORR_LOW_M2_THRESH_LOW, AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW, AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW, AR_PHY_SFCORR_M1_THRESH, AR_PHY_SFCORR_M2_THRESH, AR_PHY_SFCORR_M2COUNT_THR, AR_PHY_TIMING5, AR_PHY_TIMING5_CYCPWR_THR1, ARRAY_SIZE, ATH9K_ANI_FIRSTEP_LEVEL, ATH9K_ANI_FIRSTEP_LVL_NEW, ATH9K_ANI_MRC_CCK, ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION, ATH9K_ANI_PRESENT, ATH9K_ANI_SPUR_IMMUNE_LVL_NEW, ATH9K_ANI_SPUR_IMMUNITY_LEVEL, ATH9K_SIG_FIRSTEP_SETTING_MAX, ATH9K_SIG_FIRSTEP_SETTING_MIN, ATH9K_SIG_SPUR_IMM_SETTING_MAX, ATH9K_SIG_SPUR_IMM_SETTING_MIN, ar5416AniState::cckPhyErrCount, ath9k_channel::chan, ath9k_channel::channel, cmd, ath9k_ani_default::cycpwrThr1, cycpwrThr1_table, ath9k_ani_default::cycpwrThr1Ext, DBG, DBG2, ath9k_ani_default::firstep, firstep_table, ar5416AniState::firstepLevel, ath9k_ani_default::firstepLow, ar5416AniState::iniDef, ar5416AniState::listenTime, ath9k_ani_default::m1Thresh, m1Thresh_off, ath9k_ani_default::m1ThreshExt, m1ThreshExt_off, ath9k_ani_default::m1ThreshLow, m1ThreshLow_off, ath9k_ani_default::m1ThreshLowExt, m1ThreshLowExt_off, ath9k_ani_default::m2CountThr, m2CountThr_off, ath9k_ani_default::m2CountThrLow, m2CountThrLow_off, ath9k_ani_default::m2Thresh, m2Thresh_off, ath9k_ani_default::m2ThreshExt, m2ThreshExt_off, ath9k_ani_default::m2ThreshLow, m2ThreshLow_off, ath9k_ani_default::m2ThreshLowExt, m2ThreshLowExt_off, ar5416AniState::mrcCCKOff, ar5416AniState::ofdmPhyErrCount, ar5416AniState::ofdmWeakSigDetect, param, REG_CLR_BIT, REG_RMW_FIELD, REG_SET_BIT, ar5416AniState::spurImmunityLevel, and value.
Referenced by ar5008_hw_attach_phy_ops().
Definition at line 1481 of file ath9k_ar5008_phy.c.
References ah, AR_PHY_CCA, AR_PHY_CH1_CCA, AR_PHY_CH1_EXT_CCA, AR_PHY_CH1_EXT_MINCCA_PWR, AR_PHY_CH1_MINCCA_PWR, AR_PHY_CH2_CCA, AR_PHY_CH2_EXT_CCA, AR_PHY_CH2_EXT_MINCCA_PWR, AR_PHY_CH2_MINCCA_PWR, AR_PHY_EXT_CCA, AR_PHY_EXT_MINCCA_PWR, AR_PHY_MINCCA_PWR, IS_CHAN_HT40, MS, REG_READ, and sign_extend32().
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 1513 of file ath9k_ar5008_phy.c.
References ah, ath9k_channel::ani, AR_PHY_EXT_CCA, AR_PHY_EXT_TIMING5_CYCPWR_THR1, AR_PHY_FIND_SIG, AR_PHY_FIND_SIG_FIRSTEP, AR_PHY_FIND_SIG_FIRSTEP_LOW, AR_PHY_FIND_SIG_LOW, AR_PHY_SFCORR, AR_PHY_SFCORR_EXT, AR_PHY_SFCORR_EXT_M1_THRESH, AR_PHY_SFCORR_EXT_M1_THRESH_LOW, AR_PHY_SFCORR_EXT_M2_THRESH, AR_PHY_SFCORR_EXT_M2_THRESH_LOW, AR_PHY_SFCORR_LOW, AR_PHY_SFCORR_LOW_M1_THRESH_LOW, AR_PHY_SFCORR_LOW_M2_THRESH_LOW, AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW, AR_PHY_SFCORR_M1_THRESH, AR_PHY_SFCORR_M2_THRESH, AR_PHY_SFCORR_M2COUNT_THR, AR_PHY_TIMING5, AR_PHY_TIMING5_CYCPWR_THR1, ATH9K_ANI_FIRSTEP_LVL_NEW, ATH9K_ANI_SPUR_IMMUNE_LVL_NEW, ATH9K_ANI_USE_OFDM_WEAK_SIG, ath9k_channel::chan, ath9k_channel::channel, ath9k_channel::channelFlags, ath9k_ani_default::cycpwrThr1, ath9k_ani_default::cycpwrThr1Ext, DBG2, ath9k_ani_default::firstep, ar5416AniState::firstepLevel, ath9k_ani_default::firstepLow, ar5416AniState::iniDef, ath9k_ani_default::m1Thresh, ath9k_ani_default::m1ThreshExt, ath9k_ani_default::m1ThreshLow, ath9k_ani_default::m1ThreshLowExt, ath9k_ani_default::m2CountThr, ath9k_ani_default::m2CountThrLow, ath9k_ani_default::m2Thresh, ath9k_ani_default::m2ThreshExt, ath9k_ani_default::m2ThreshLow, ath9k_ani_default::m2ThreshLowExt, ar5416AniState::mrcCCKOff, MS, ar5416AniState::ofdmWeakSigDetect, REG_READ, REG_READ_FIELD, ar5416AniState::spurImmunityLevel, and val.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 1563 of file ath9k_ar5008_phy.c.
References ah, AR_PHY_CCA_MAX_GOOD_VAL_5416_2GHZ, AR_PHY_CCA_MAX_GOOD_VAL_5416_5GHZ, AR_PHY_CCA_MIN_GOOD_VAL_5416_2GHZ, AR_PHY_CCA_MIN_GOOD_VAL_5416_5GHZ, AR_PHY_CCA_NOM_VAL_5416_2GHZ, and AR_PHY_CCA_NOM_VAL_5416_5GHZ.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 1573 of file ath9k_ar5008_phy.c.
References ah, AR_PHY_RADAR_0, AR_PHY_RADAR_0_ENA, AR_PHY_RADAR_0_FFT_ENA, AR_PHY_RADAR_0_FIRPWR, AR_PHY_RADAR_0_HEIGHT, AR_PHY_RADAR_0_INBAND, AR_PHY_RADAR_0_PRSSI, AR_PHY_RADAR_0_RRSSI, AR_PHY_RADAR_1, AR_PHY_RADAR_1_BLOCK_CHECK, AR_PHY_RADAR_1_MAX_RRSSI, AR_PHY_RADAR_1_MAXLEN, AR_PHY_RADAR_1_RELPWR_THRESH, AR_PHY_RADAR_1_RELSTEP_THRESH, AR_PHY_RADAR_EXT, AR_PHY_RADAR_EXT_ENA, ath_hw_radar_conf::ext_channel, ath_hw_radar_conf::fir_power, ath_hw_radar_conf::pulse_height, ath_hw_radar_conf::pulse_inband, ath_hw_radar_conf::pulse_inband_step, ath_hw_radar_conf::pulse_maxlen, ath_hw_radar_conf::pulse_rssi, ath_hw_radar_conf::radar_inband, ath_hw_radar_conf::radar_rssi, REG_CLR_BIT, REG_SET_BIT, REG_WRITE, and SM.
Referenced by ar5008_hw_attach_phy_ops().
|
static |
Definition at line 1604 of file ath9k_ar5008_phy.c.
References ah, ath_hw_radar_conf::fir_power, ath_hw_radar_conf::pulse_height, ath_hw_radar_conf::pulse_inband, ath_hw_radar_conf::pulse_inband_step, ath_hw_radar_conf::pulse_maxlen, ath_hw_radar_conf::pulse_rssi, ath_hw_radar_conf::radar_inband, and ath_hw_radar_conf::radar_rssi.
Referenced by ar5008_hw_attach_phy_ops().
void ar5008_hw_attach_phy_ops | ( | struct ath_hw * | ah | ) |
Definition at line 1618 of file ath9k_ar5008_phy.c.
References ah, ath_hw_private_ops::ani_cache_ini_regs, ath_hw_private_ops::ani_control, ar5008_hw_ani_cache_ini_regs(), ar5008_hw_ani_control_new(), ar5008_hw_ani_control_old(), ar5008_hw_compute_pll_control(), ar5008_hw_do_getnf(), ar5008_hw_init_bb(), ar5008_hw_mark_phy_inactive(), ar5008_hw_process_ini(), ar5008_hw_rf_alloc_ext_banks(), ar5008_hw_rf_free_ext_banks(), ar5008_hw_rfbus_done(), ar5008_hw_rfbus_req(), ar5008_hw_set_channel(), ar5008_hw_set_channel_regs(), ar5008_hw_set_delta_slope(), ar5008_hw_set_nf_limits(), ar5008_hw_set_radar_conf(), ar5008_hw_set_radar_params(), ar5008_hw_set_rf_regs(), ar5008_hw_set_rfmode(), ar5008_hw_spur_mitigate(), ar5008_restore_chainmask(), ar5008_set_diversity(), ar9100_hw_compute_pll_control(), ar9160_hw_compute_pll_control(), AR_PHY_CCA, AR_PHY_CH1_CCA, AR_PHY_CH1_EXT_CCA, AR_PHY_CH2_CCA, AR_PHY_CH2_EXT_CCA, AR_PHY_EXT_CCA, AR_SREV_9100, AR_SREV_9160_10_OR_LATER, ath9k_hw_private_ops(), ath_hw_private_ops::compute_pll_control, ath_hw_private_ops::do_getnf, ath_hw_private_ops::init_bb, ath_hw_private_ops::mark_phy_inactive, memcpy(), modparam_force_new_ani, ath_hw_private_ops::process_ini, ath_hw_private_ops::restore_chainmask, ath_hw_private_ops::rf_alloc_ext_banks, ath_hw_private_ops::rf_free_ext_banks, ath_hw_private_ops::rf_set_freq, ath_hw_private_ops::rfbus_done, ath_hw_private_ops::rfbus_req, ath_hw_private_ops::set_channel_regs, ath_hw_private_ops::set_delta_slope, ath_hw_private_ops::set_diversity, ath_hw_private_ops::set_radar_params, ath_hw_private_ops::set_rf_regs, ath_hw_private_ops::set_rfmode, and ath_hw_private_ops::spur_mitigate_freq.
Referenced by ar9002_hw_attach_ops().
|
static |
Definition at line 30 of file ath9k_ar5008_phy.c.
Referenced by ar5008_hw_ani_control_new().
|
static |
Definition at line 34 of file ath9k_ar5008_phy.c.
Referenced by ar5008_hw_ani_control_new().
|
static |
Definition at line 41 of file ath9k_ar5008_phy.c.
Referenced by ar5008_hw_ani_control_new().
|
static |
Definition at line 42 of file ath9k_ar5008_phy.c.
Referenced by ar5008_hw_ani_control_new().
|
static |
Definition at line 43 of file ath9k_ar5008_phy.c.
Referenced by ar5008_hw_ani_control_new().
|
static |
Definition at line 44 of file ath9k_ar5008_phy.c.
Referenced by ar5008_hw_ani_control_new().
|
static |
Definition at line 45 of file ath9k_ar5008_phy.c.
Referenced by ar5008_hw_ani_control_new().
|
static |
Definition at line 46 of file ath9k_ar5008_phy.c.
Referenced by ar5008_hw_ani_control_new().
|
static |
Definition at line 47 of file ath9k_ar5008_phy.c.
Referenced by ar5008_hw_ani_control_new().
|
static |
Definition at line 48 of file ath9k_ar5008_phy.c.
Referenced by ar5008_hw_ani_control_new().
|
static |
Definition at line 49 of file ath9k_ar5008_phy.c.
Referenced by ar5008_hw_ani_control_new().
|
static |
Definition at line 50 of file ath9k_ar5008_phy.c.
Referenced by ar5008_hw_ani_control_new().