iPXE
|
#include <ipxe/vsprintf.h>
#include <ipxe/io.h>
#include "hw.h"
#include "hw-ops.h"
#include "ar9003_mac.h"
Go to the source code of this file.
Macros | |
#define | MS_REG_READ(x, y) (MS(REG_READ(ah, AR_GPIO_IN_OUT), x##_GPIO_IN_VAL) & (AR_GPIO_BIT(y))) |
Variables | |
struct { | |
u32 version | |
const char * name | |
} | ath_mac_bb_names [] |
struct { | |
u16 version | |
const char * name | |
} | ath_rf_names [] |
#define MS_REG_READ | ( | x, | |
y | |||
) | (MS(REG_READ(ah, AR_GPIO_IN_OUT), x##_GPIO_IN_VAL) & (AR_GPIO_BIT(y))) |
Definition at line 1088 of file ath9k_hw.c.
References ah, AR_RTC_FORCE_WAKE, AR_RTC_FORCE_WAKE_EN, AR_RTC_FORCE_WAKE_ON_INT, AR_SREV_9300_20_OR_LATER, AR_WA, ath9k_hw_set_reset(), ath9k_hw_set_reset_power_on(), ATH9K_RESET_COLD, ATH9K_RESET_POWER_ON, ATH9K_RESET_WARM, REG_WRITE, type, and udelay().
Referenced by __ath9k_hw_init(), ath9k_hw_chip_reset(), ath9k_hw_disable(), ath9k_hw_phy_disable(), and ath9k_hw_set_power_awake().
|
static |
Definition at line 31 of file ath9k_hw.c.
References ah, ath9k_hw_private_ops(), and ath_hw_private_ops::init_cal_settings.
Referenced by __ath9k_hw_init().
|
static |
Definition at line 36 of file ath9k_hw.c.
References ah, ath9k_hw_private_ops(), and ath_hw_private_ops::init_mode_regs.
Referenced by __ath9k_hw_init().
|
static |
Definition at line 41 of file ath9k_hw.c.
References ah, ath9k_hw_private_ops(), and ath_hw_private_ops::compute_pll_control.
Referenced by ath9k_hw_init_pll().
|
static |
Definition at line 47 of file ath9k_hw.c.
References ah, ath9k_hw_private_ops(), and ath_hw_private_ops::init_mode_gain_regs.
Referenced by __ath9k_hw_init().
|
static |
Definition at line 55 of file ath9k_hw.c.
References ah, ath_hw_private_ops::ani_cache_ini_regs, and ath9k_hw_private_ops().
Referenced by ath9k_hw_reset().
|
static |
Definition at line 68 of file ath9k_hw.c.
References ah, ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM, ATH9K_CLOCK_RATE_2GHZ_OFDM, ATH9K_CLOCK_RATE_5GHZ_OFDM, ATH9K_CLOCK_RATE_CCK, ATH9K_HW_CAP_FASTCLOCK, ath9k_hw_common(), net80211_device::channel, net80211_device::channels, common, and NET80211_BAND_2GHZ.
Referenced by ath9k_hw_channel_change(), and ath9k_hw_reset().
Definition at line 86 of file ath9k_hw.c.
References ah, ath9k_hw_common(), and common.
Referenced by ath9k_hw_set_ack_timeout(), ath9k_hw_set_cts_timeout(), and ath9k_hw_setslottime().
Definition at line 93 of file ath9k_hw.c.
References ah, AH_TIME_QUANTUM, DBG, reg, REG_READ, timeout(), udelay(), and val.
Referenced by ar5008_hw_rfbus_req(), ar9002_hw_init_cal(), ar9003_hw_init_cal(), ar9003_hw_rfbus_req(), ar9003_hw_tx_iq_cal_run(), ar9285_hw_cl_cal(), ar9300_otp_read_word(), ath9k_hw_set_reset(), ath9k_hw_set_reset_power_on(), ath9k_hw_setrxabort(), and ath_pci_eeprom_read().
void ath9k_hw_write_array | ( | struct ath_hw * | ah, |
struct ar5416IniArray * | array, | ||
int | column, | ||
unsigned int * | writecnt | ||
) |
Definition at line 111 of file ath9k_hw.c.
References ah, array, DO_DELAY, ENABLE_REGWRITE_BUFFER, INI_RA, r, REG_WRITE, and REGWRITE_BUFFER_FLUSH.
Definition at line 125 of file ath9k_hw.c.
Referenced by ar5008_hw_force_bias(), ar5008_hw_phy_modify_rx_buffer(), ar5008_hw_set_channel(), and ar9002_hw_get_radiorev().
u16 ath9k_hw_computetxtime | ( | struct ath_hw * | ah, |
u8 | phy, | ||
int | kbps, | ||
u32 | frameLen, | ||
u16 | rateix, | ||
int | shortPreamble | ||
) |
Definition at line 137 of file ath9k_hw.c.
References ah, CCK_PLCP_BITS, CCK_PREAMBLE_BITS, CCK_SIFS_TIME, CHANNEL_CCK, CHANNEL_OFDM, DBG, DIV_ROUND_UP, IS_CHAN_HALF_RATE, IS_CHAN_QUARTER_RATE, OFDM_PLCP_BITS, OFDM_PREAMBLE_TIME, OFDM_PREAMBLE_TIME_HALF, OFDM_PREAMBLE_TIME_QUARTER, OFDM_SIFS_TIME, OFDM_SIFS_TIME_HALF, OFDM_SIFS_TIME_QUARTER, OFDM_SYMBOL_TIME, OFDM_SYMBOL_TIME_HALF, and OFDM_SYMBOL_TIME_QUARTER.
Referenced by ath_buf_set_rate().
void ath9k_hw_get_channel_centers | ( | struct ath_hw *ah | __unused, |
struct ath9k_channel * | chan, | ||
struct chan_centers * | centers | ||
) |
Definition at line 189 of file ath9k_hw.c.
References ath9k_channel::chanmode, ath9k_channel::channel, CHANNEL_A_HT40PLUS, CHANNEL_G_HT40PLUS, chan_centers::ctl_center, chan_centers::ext_center, HT40_CHANNEL_CENTER_SHIFT, IS_CHAN_HT40, and chan_centers::synth_center.
Referenced by ar5008_hw_set_channel(), ar5008_hw_set_delta_slope(), ar9002_hw_set_channel(), ar9002_hw_spur_mitigate(), ar9003_hw_set_channel(), ar9003_hw_set_delta_slope(), ar9003_hw_set_power_per_rate_table(), ar9287_eeprom_get_tx_gain_index(), ath9k_get_txgain_index(), ath9k_hw_def_set_addac(), ath9k_hw_get_gain_boundaries_pdadcs(), ath9k_hw_get_legacy_target_powers(), ath9k_hw_get_target_powers(), 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().
|
static |
Definition at line 223 of file ath9k_hw.c.
References ah, AR5416_AR9100_DEVID, AR9300_DEVID_AR9340, AR_SREV, AR_SREV_9100, AR_SREV_ID, AR_SREV_REVISION, AR_SREV_REVISION2, AR_SREV_TYPE2_HOST_MODE, AR_SREV_TYPE2_S, AR_SREV_VERSION, AR_SREV_VERSION2, AR_SREV_VERSION_5416_PCIE, AR_SREV_VERSION_9100, AR_SREV_VERSION_9340, MS, REG_READ, and val.
Referenced by __ath9k_hw_init().
|
static |
Definition at line 261 of file ath9k_hw.c.
References ah, AR_PCIE_SERDES, AR_PCIE_SERDES2, AR_SREV_5416, and REG_WRITE.
Referenced by __ath9k_hw_init().
|
static |
Definition at line 280 of file ath9k_hw.c.
References addr, ah, AR_PHY_BASE, AR_SREV_9300_20_OR_LATER, AR_STA_ID0, DBG, REG_READ, REG_WRITE, and udelay().
Referenced by ath9k_hw_post_init().
|
static |
Definition at line 329 of file ath9k_hw.c.
References ah, AR_EEPROM_MODAL_SPURS, and AR_NO_SPUR.
Referenced by __ath9k_hw_init().
|
static |
Definition at line 356 of file ath9k_hw.c.
References ah, AR5416_MAGIC, AR_SREV_9100, AR_STA_ID1_AR9100_BA_FIX, AR_STA_ID1_CRPT_MIC_ENABLE, AR_STA_ID1_MCAST_KSRCH, ath9k_hw_regulatory(), ATH9K_PM_UNDEFINED, ATH9K_TP_SCALE_MAX, ath_regulatory::country_code, CTRY_DEFAULT, MAX_RATE_POWER, ath_regulatory::power_limit, ath_regulatory::tp_scale, and u32.
Referenced by __ath9k_hw_init().
|
static |
Definition at line 379 of file ath9k_hw.c.
References ah, ath9k_hw_common(), common, EADDRNOTAVAIL, EEP_MAC_LSW, EEP_MAC_MID, and EEP_MAC_MSW.
Referenced by __ath9k_hw_init().
|
static |
Definition at line 400 of file ath9k_hw.c.
References ah, ar9002_hw_rf_claim(), AR_SREV_9100, AR_SREV_9300_20_OR_LATER, AR_SREV_9340, ath9k_hw_ani_init(), ath9k_hw_ani_setup(), ath9k_hw_chip_test(), ath9k_hw_common(), ath9k_hw_eeprom_init(), ath9k_hw_rf_alloc_ext_banks(), ath9k_hw_rf_free_ext_banks(), ATH_USB, common, DBG, and ENODEV.
Referenced by __ath9k_hw_init().
|
static |
Definition at line 441 of file ath9k_hw.c.
References ah, ar9002_hw_attach_ops(), ar9003_hw_attach_ops(), and AR_SREV_9300_20_OR_LATER.
Referenced by __ath9k_hw_init().
|
static |
Definition at line 450 of file ath9k_hw.c.
References ah, ar9002_hw_cck_chan14_spread(), AR_FTRIG_256B, AR_FTRIG_512B, AR_FTRIG_S, AR_PHY_CHIP_ID, AR_SREV_9100, AR_SREV_9160, AR_SREV_9271, AR_SREV_9280, AR_SREV_9280_20_OR_LATER, AR_SREV_9285, AR_SREV_9300_20_OR_LATER, AR_SREV_9340, AR_SREV_VERSION_5416_PCI, AR_SREV_VERSION_5416_PCIE, AR_SREV_VERSION_9100, AR_SREV_VERSION_9160, AR_SREV_VERSION_9271, AR_SREV_VERSION_9280, AR_SREV_VERSION_9285, AR_SREV_VERSION_9287, AR_SREV_VERSION_9300, AR_SREV_VERSION_9340, AR_SREV_VERSION_9485, AR_WA, AR_WA_ASPM_TIMER_BASED_DISABLE, AR_WA_D3_L1_DISABLE, ATH9K_ANI_ALL, ATH9K_ANI_MRC_CCK, ATH9K_ANI_NOISE_IMMUNITY_LEVEL, ath9k_hw_attach_ops(), ath9k_hw_common(), ath9k_hw_configpcipowersave(), ath9k_hw_disablepcie(), ath9k_hw_fill_cap_info(), ath9k_hw_init_cal_settings(), ath9k_hw_init_config(), ath9k_hw_init_defaults(), ath9k_hw_init_macaddr(), ath9k_hw_init_mode_gain_regs(), ath9k_hw_init_mode_regs(), ath9k_hw_post_init(), ath9k_hw_read_revisions(), ath9k_hw_set_reset_reg(), ath9k_hw_setpower(), ATH9K_PM_AWAKE, ATH9K_RESET_POWER_ON, ATH_HW_INITIALIZED, common, DBG, DBG2, EIO, EOPNOTSUPP, MAX_TX_FIFO_THRESHOLD, r, REG_READ, SER_REG_MODE_AUTO, SER_REG_MODE_OFF, and SER_REG_MODE_ON.
Referenced by ath9k_hw_init().
int ath9k_hw_init | ( | struct ath_hw * | ah | ) |
Definition at line 569 of file ath9k_hw.c.
References __ath9k_hw_init(), ah, AR2427_DEVID_PCIE, AR5416_AR9100_DEVID, AR5416_DEVID_PCI, AR5416_DEVID_PCIE, AR9160_DEVID_PCI, AR9280_DEVID_PCI, AR9280_DEVID_PCIE, AR9285_DEVID_PCIE, AR9287_DEVID_PCI, AR9287_DEVID_PCIE, AR9300_DEVID_AR9340, AR9300_DEVID_AR9485_PCIE, AR9300_DEVID_PCIE, ath9k_hw_common(), ATH_USB, common, DBG, and EOPNOTSUPP.
Referenced by ath9k_init_softc().
Definition at line 609 of file ath9k_hw.c.
References ah, PLL3, PLL3_DO_MEAS_MASK, PLL4, PLL4_MEAS_DONE, REG_CLR_BIT, REG_READ, REG_SET_BIT, SQSUM_DVC_MASK, and udelay().
Referenced by ath_hw_pll_work().
|
static |
Definition at line 621 of file ath9k_hw.c.
References ah, AR_CH0_BB_DPLL1, AR_CH0_BB_DPLL1_NFRAC, AR_CH0_BB_DPLL1_NINI, AR_CH0_BB_DPLL1_REFDIV, AR_CH0_BB_DPLL2, AR_CH0_BB_DPLL2_EN_NEGTRIG, AR_CH0_BB_DPLL2_LOCAL_PLL, AR_CH0_BB_DPLL2_OUTDIV, AR_CH0_BB_DPLL2_PLL_PWD, AR_CH0_BB_DPLL3, AR_CH0_BB_DPLL3_PHASE_SHIFT, AR_CH0_DPLL2_KD, AR_CH0_DPLL2_KI, AR_PHY_PLL_CONTROL, AR_PHY_PLL_MODE, AR_RTC_DERIVED_CLK, AR_RTC_FORCE_DERIVED_CLK, AR_RTC_PLL_CONTROL, AR_RTC_SLEEP_CLK, AR_SLP32_INC, AR_SLP32_MODE, AR_SREV_9271, AR_SREV_9340, AR_SREV_9485, ath9k_hw_compute_pll_control(), REG_READ, REG_RMW_FIELD, REG_SET_BIT, REG_WRITE, RTC_PLL_SETTLE_DELAY, and udelay().
Referenced by ath9k_hw_chip_reset(), ath9k_hw_disable(), ath9k_hw_phy_disable(), and ath9k_hw_set_power_awake().
|
static |
Definition at line 725 of file ath9k_hw.c.
References ah, AR_IMR, AR_IMR_RXERR, AR_IMR_RXINTM, AR_IMR_RXMINTR, AR_IMR_RXOK, AR_IMR_RXOK_HP, AR_IMR_RXOK_LP, AR_IMR_RXORN, AR_IMR_S2, AR_IMR_TXERR, AR_IMR_TXINTM, AR_IMR_TXMINTR, AR_IMR_TXOK, AR_IMR_TXURN, AR_INTR_PRIO_ASYNC_ENABLE, AR_INTR_PRIO_ASYNC_MASK, AR_INTR_PRIO_SYNC_ENABLE, AR_INTR_PRIO_SYNC_MASK, AR_INTR_SYNC_CAUSE, AR_INTR_SYNC_DEFAULT, AR_INTR_SYNC_ENABLE, AR_INTR_SYNC_HOST1_FATAL, AR_INTR_SYNC_MASK, AR_SREV_9100, AR_SREV_9300_20_OR_LATER, AR_SREV_9340, ENABLE_REGWRITE_BUFFER, REG_WRITE, and REGWRITE_BUFFER_FLUSH.
Referenced by ath9k_hw_reset().
Definition at line 777 of file ath9k_hw.c.
References ah, AR_D_GBL_IFS_SLOT, ath9k_hw_mac_to_clks(), min, REG_WRITE, and val.
Referenced by ath9k_hw_init_global_settings().
Definition at line 784 of file ath9k_hw.c.
References ah, AR_TIME_OUT, AR_TIME_OUT_ACK, ath9k_hw_mac_to_clks(), min, MS, REG_RMW_FIELD, and val.
Referenced by ath9k_hw_init_global_settings().
Definition at line 791 of file ath9k_hw.c.
References ah, AR_TIME_OUT, AR_TIME_OUT_CTS, ath9k_hw_mac_to_clks(), min, MS, REG_RMW_FIELD, and val.
Referenced by ath9k_hw_init_global_settings().
Definition at line 798 of file ath9k_hw.c.
References ah, AR_GTXTO, AR_GTXTO_TIMEOUT_LIMIT, DBG, REG_RMW_FIELD, and u32.
Referenced by ath9k_hw_init_global_settings().
void ath9k_hw_init_global_settings | ( | struct ath_hw * | ah | ) |
Definition at line 812 of file ath9k_hw.c.
References ah, AR_PCU_MISC, ath9k_hw_set_ack_timeout(), ath9k_hw_set_cts_timeout(), ath9k_hw_set_global_txtimeout(), ath9k_hw_setslottime(), DBG2, NET80211_BAND_2GHZ, NET80211_BAND_5GHZ, and REG_SET_BIT.
Referenced by ath9k_bss_info_changed(), and ath9k_hw_reset().
void ath9k_hw_deinit | ( | struct ath_hw * | ah | ) |
Definition at line 850 of file ath9k_hw.c.
References ah, ath9k_hw_common(), ath9k_hw_rf_free_ext_banks(), ath9k_hw_setpower(), ATH9K_PM_FULL_SLEEP, ATH_HW_INITIALIZED, and common.
Referenced by ath9k_deinit_softc(), and ath9k_init_softc().
u32 ath9k_regd_get_ctl | ( | struct ath_regulatory * | reg, |
struct ath9k_channel * | chan | ||
) |
Definition at line 867 of file ath9k_hw.c.
References ath_regd_get_band_ctl(), net80211_channel::band, ath9k_channel::chan, CTL_11A, CTL_11B, CTL_11G, IS_CHAN_B, IS_CHAN_G, and reg.
Referenced by ar5008_hw_process_ini(), ar9003_hw_process_ini(), ath9k_hw_channel_change(), and ath9k_hw_set_txpowerlimit().
|
inlinestatic |
Definition at line 885 of file ath9k_hw.c.
References ah, AR_9285_PCU_TXBUF_CTRL_USABLE_SIZE, AR_AHB_MODE, AR_AHB_PREFETCH_RD_EN, AR_FTRIG, AR_PCU_TXBUF_CTRL, AR_PCU_TXBUF_CTRL_USABLE_SIZE, AR_RXBP_THRESH, AR_RXBP_THRESH_HP, AR_RXBP_THRESH_LP, AR_RXCFG, AR_RXCFG_DMASZ_128B, AR_RXCFG_DMASZ_MASK, AR_RXFIFO_CFG, AR_SREV_9271, AR_SREV_9285, AR_SREV_9300_20_OR_LATER, AR_TXCFG, AR_TXCFG_DMASZ_128B, AR_TXCFG_DMASZ_MASK, ath9k_hw_common(), ath9k_hw_reset_txstatus_ring(), ath9k_hw_set_rx_bufsize(), common, ENABLE_REGWRITE_BUFFER, REG_RMW, REG_RMW_FIELD, REG_SET_BIT, REG_WRITE, and REGWRITE_BUFFER_FLUSH.
Referenced by ath9k_hw_reset().
|
static |
Definition at line 954 of file ath9k_hw.c.
References ah, AR_CFG, AR_CFG_AP_ADHOC_INDICATION, AR_STA_ID1, AR_STA_ID1_ADHOC, AR_STA_ID1_KSRCH_MODE, AR_STA_ID1_STA_AP, REG_CLR_BIT, REG_RMW, and set.
Referenced by ath9k_hw_reset(), and ath9k_hw_setopmode().
void ath9k_hw_get_delta_slope_vals | ( | struct ath_hw *ah | __unused, |
u32 | coef_scaled, | ||
u32 * | coef_mantissa, | ||
u32 * | coef_exponent | ||
) |
Definition at line 964 of file ath9k_hw.c.
References COEF_SCALE_S.
Referenced by ar5008_hw_set_delta_slope(), and ar9003_hw_set_delta_slope().
|
static |
Definition at line 981 of file ath9k_hw.c.
References ah, AH_WAIT_TIMEOUT, AR_INTR_SYNC_CAUSE, AR_INTR_SYNC_ENABLE, AR_INTR_SYNC_LOCAL_TIMEOUT, AR_INTR_SYNC_RADM_CPL_TIMEOUT, AR_RC, AR_RC_AHB, AR_RC_HOSTIF, AR_RTC_DERIVED_CLK, AR_RTC_DERIVED_CLK_PERIOD, AR_RTC_FORCE_WAKE, AR_RTC_FORCE_WAKE_EN, AR_RTC_FORCE_WAKE_ON_INT, AR_RTC_RC, AR_RTC_RC_COLD_RESET, AR_RTC_RC_M, AR_RTC_RC_MAC_COLD, AR_RTC_RC_MAC_WARM, AR_RTC_RC_WARM_RESET, AR_SREV_9100, AR_SREV_9300_20_OR_LATER, AR_WA, ath9k_hw_wait(), ATH9K_RESET_COLD, DBG, ENABLE_REGWRITE_BUFFER, REG_READ, REG_RMW_FIELD, REG_WRITE, REGWRITE_BUFFER_FLUSH, type, udelay(), and val.
Referenced by ath9k_hw_set_reset_power_on(), and ath9k_hw_set_reset_reg().
|
static |
Definition at line 1048 of file ath9k_hw.c.
References ah, AH_WAIT_TIMEOUT, AR_RC, AR_RC_AHB, AR_RTC_FORCE_WAKE, AR_RTC_FORCE_WAKE_EN, AR_RTC_FORCE_WAKE_ON_INT, AR_RTC_RESET, AR_RTC_STATUS, AR_RTC_STATUS_M, AR_RTC_STATUS_ON, AR_SREV_9100, AR_SREV_9300_20_OR_LATER, AR_WA, ath9k_hw_set_reset(), ath9k_hw_wait(), ATH9K_RESET_WARM, DBG, ENABLE_REGWRITE_BUFFER, REG_WRITE, REGWRITE_BUFFER_FLUSH, and udelay().
Referenced by ath9k_hw_set_reset_reg().
|
static |
Definition at line 1109 of file ath9k_hw.c.
References ah, AR_SREV_9280, ath9k_hw_init_pll(), ath9k_hw_set_reset_reg(), ath9k_hw_set_rfmode(), ath9k_hw_setpower(), ATH9K_PM_AWAKE, ATH9K_RESET_POWER_ON, ATH9K_RESET_WARM, and EEP_OL_PWRCTRL.
Referenced by ath9k_hw_reset().
|
static |
Definition at line 1128 of file ath9k_hw.c.
References ah, AR_NUM_QCU, ath9k_hw_numtxpending(), ath9k_hw_regulatory(), ath9k_hw_rf_set_freq(), ath9k_hw_rfbus_done(), ath9k_hw_rfbus_req(), ath9k_hw_set_channel_regs(), ath9k_hw_set_clockrate(), ath9k_hw_set_delta_slope(), ath9k_hw_spur_mitigate_freq(), ath9k_regd_get_ctl(), ath9k_channel::chan, channel, DBG, IS_CHAN_HT, IS_CHAN_OFDM, MAX_RATE_POWER, min, ath_regulatory::power_limit, and r.
Referenced by ath9k_hw_reset().
|
static |
Definition at line 1175 of file ath9k_hw.c.
References ah, AR_GPIO_OUTPUT_MUX_AS_OUTPUT, ath9k_hw_cfg_output(), ath9k_hw_set_gpio(), and BIT.
Referenced by ath9k_hw_reset().
int ath9k_hw_check_alive | ( | struct ath_hw * | ah | ) |
Definition at line 1189 of file ath9k_hw.c.
References ah, AR_OBS_BUS_1, AR_SREV_9285_12_OR_LATER, count, reg, and REG_READ.
Referenced by ath_hw_check(), and ath_set_channel().
int ath9k_hw_reset | ( | struct ath_hw * | ah, |
struct ath9k_channel * | chan, | ||
struct ath9k_hw_cal_data * | caldata, | ||
int | bChannelChange | ||
) |
Definition at line 1216 of file ath9k_hw.c.
References ah, ar9002_hw_enable_async_fifo(), ar9002_hw_enable_wep_aggregation(), ar9002_hw_load_ani_reg(), ar9002_hw_update_async_fifo(), ar9003_hw_disable_phy_restart(), AR9271_GATE_MAC_CTL, AR9271_RADIO_RF_RST, AR9271_RESET_POWER_DOWN_CONTROL, AR_AES_MUTE_MASK1, AR_AES_MUTE_MASK1_FC_MGMT, AR_CFG, AR_CFG_LED, AR_CFG_LED_ASSOC_CTL, AR_CFG_LED_BLINK_SLOW, AR_CFG_LED_BLINK_THRESH_SEL, AR_CFG_LED_MODE_SEL, AR_CFG_SCLK_32KHZ, AR_CFG_SWRB, AR_CFG_SWRD, AR_CFG_SWRG, AR_CFG_SWTB, AR_CFG_SWTD, AR_DEF_ANTENNA, AR_DEVID_7010, AR_DQCUMASK, AR_GPIO_INPUT_EN_VAL, AR_GPIO_JTAG_DISABLE, AR_ISR, AR_NUM_DCU, AR_OBS, AR_PCU_MISC_MODE2, AR_PCU_MISC_MODE2_MGMT_CRYPTO_ENABLE, AR_PCU_MISC_MODE2_NO_CRYPTO_FOR_NON_DATA_PKT, AR_RIMT, AR_RIMT_FIRST, AR_RIMT_LAST, AR_RSSI_THR, AR_SREV_9100, AR_SREV_9160_10_OR_LATER, AR_SREV_9271, AR_SREV_9280, AR_SREV_9280_20_OR_LATER, AR_SREV_9300_20_OR_LATER, AR_SREV_9340, AR_STA_ID0, AR_STA_ID1, AR_STA_ID1_ACKCTS_6MB, AR_STA_ID1_BASE_RATE_11B, AR_STA_ID1_PRESERVE_SEQNUM, AR_STA_ID1_RTS_USE_DEF, AR_TIMT, AR_TIMT_FIRST, AR_TIMT_LAST, ath9k_hw_ani_cache_ini_regs(), ath9k_hw_apply_gpio_override(), ATH9K_HW_CAP_RFSILENT, ath9k_hw_cfg_gpio_input(), ath9k_hw_channel_change(), ath9k_hw_chip_reset(), ath9k_hw_common(), ath9k_hw_getnf(), ath9k_hw_init_bb(), ath9k_hw_init_cal(), ath9k_hw_init_global_settings(), ath9k_hw_init_interrupt_masks(), ath9k_hw_loadnf(), ath9k_hw_mark_phy_inactive(), ath9k_hw_process_ini(), ath9k_hw_resettxqueue(), ath9k_hw_restore_chainmask(), ath9k_hw_rf_set_freq(), ath9k_hw_set_clockrate(), ath9k_hw_set_delta_slope(), ath9k_hw_set_dma(), ath9k_hw_set_operating_mode(), ath9k_hw_setpower(), ath9k_hw_spur_mitigate_freq(), ath9k_hw_start_nfcal(), ath9k_hw_write_associd(), ath9k_init_nfcal_hist_buffer(), ATH9K_NUM_TX_QUEUES, ATH9K_PM_AWAKE, ath_hw_setbssidmask(), ATH_USB, ath9k_channel::chan, ath9k_hw_cal_data::channel, CHANNEL_ALL, CHANNEL_CW_INT, ath9k_hw_cal_data::channelFlags, common, DBG, DBG2, EINVAL, EIO, ENABLE_REGWRITE_BUFFER, get_unaligned_le16(), get_unaligned_le32(), INIT_CONFIG_STATUS, INIT_RSSI_THR, IS_CHAN_HT, IS_CHAN_OFDM, memset(), NULL, r, REG_CLR_BIT, REG_READ, REG_RMW, REG_RMW_FIELD, REG_SET_BIT, REG_WRITE, REGWRITE_BUFFER_FLUSH, and udelay().
Referenced by ath9k_start(), ath_radio_disable(), ath_reset(), and ath_set_channel().
|
static |
Definition at line 1457 of file ath9k_hw.c.
References ah, AR_RC, AR_RC_AHB, AR_RC_HOSTIF, AR_RTC_FORCE_WAKE, AR_RTC_FORCE_WAKE_EN, AR_RTC_RESET, AR_RTC_RESET_EN, AR_SREV_5416, AR_SREV_9100, AR_SREV_9271, AR_SREV_9300_20_OR_LATER, AR_STA_ID1, AR_STA_ID1_PWR_SAV, AR_WA, AR_WA_D3_L1_DISABLE, REG_CLR_BIT, REG_SET_BIT, and REG_WRITE.
Referenced by ath9k_hw_setpower().
|
static |
Definition at line 1482 of file ath9k_hw.c.
References ah, AR_RTC_FORCE_WAKE, AR_RTC_FORCE_WAKE_EN, AR_RTC_RESET, AR_RTC_RESET_EN, AR_RTC_STATUS, AR_RTC_STATUS_M, AR_RTC_STATUS_ON, AR_RTC_STATUS_SHUTDOWN, AR_SREV_9100, AR_SREV_9300_20_OR_LATER, AR_STA_ID1, AR_STA_ID1_PWR_SAV, AR_WA, ath9k_hw_init_pll(), ath9k_hw_set_reset_reg(), ATH9K_RESET_POWER_ON, DBG, NULL, POWER_UP_TIME, REG_CLR_BIT, REG_READ, REG_SET_BIT, REG_WRITE, udelay(), and val.
Referenced by ath9k_hw_setpower().
int ath9k_hw_setpower | ( | struct ath_hw * | ah, |
enum ath9k_power_mode | mode | ||
) |
Definition at line 1532 of file ath9k_hw.c.
References ah, ath9k_hw_set_power_awake(), ATH9K_PM_AWAKE, ATH9K_PM_FULL_SLEEP, ath9k_set_power_sleep(), DBG, DBG2, and status.
Referenced by __ath9k_hw_init(), ath9k_hw_chip_reset(), ath9k_hw_deinit(), ath9k_hw_disable(), ath9k_hw_reset(), and ath9k_setpower().
int ath9k_hw_fill_cap_info | ( | struct ath_hw * | ah | ) |
Definition at line 1569 of file ath9k_hw.c.
References ah, AR5416_DEVID_PCI, AR5416_EEP_MINOR_VER_16, AR5416_OPFLAGS_11A, AR5416_OPFLAGS_11G, AR7010_NUM_GPIO, AR9271_NUM_GPIO, AR9285_NUM_GPIO, AR9285_RDEXT_DEFAULT, AR928X_NUM_GPIO, AR_DEVID_7010, AR_ENT_OTP, AR_NUM_GPIO, AR_PCU_ALWAYS_PERFORM_KEYSEARCH, AR_PCU_MIC_NEW_LOC_ENA, AR_SREV_9100, AR_SREV_9160_10_OR_LATER, AR_SREV_9271, AR_SREV_9280, AR_SREV_9280_20, AR_SREV_9280_20_OR_LATER, AR_SREV_9285, AR_SREV_9285_12_OR_LATER, AR_SREV_9287_11_OR_LATER, AR_SREV_9300_20_OR_LATER, AR_SREV_9485, AR_SREV_9485_10, AR_SUBVENDOR_ID_NEW_A, ATH9K_HW_CAP_2GHZ, ATH9K_HW_CAP_4KB_SPLITTRANS, ATH9K_HW_CAP_5GHZ, ATH9K_HW_CAP_ANT_DIV_COMB, ATH9K_HW_CAP_APM, ATH9K_HW_CAP_AUTOSLEEP, ATH9K_HW_CAP_CST, ATH9K_HW_CAP_FASTCLOCK, ATH9K_HW_CAP_HT, ATH9K_HW_CAP_LDPC, ATH9K_HW_CAP_PAPRD, ATH9K_HW_CAP_RAC_SUPPORTED, ATH9K_HW_CAP_RFSILENT, ATH9K_HW_CAP_SGI_20, ath9k_hw_common(), ath9k_hw_gpio_get(), ath9k_hw_regulatory(), ATH9K_HW_RX_HP_QDEPTH, ATH9K_HW_RX_LP_QDEPTH, ATH_AMPDU_LIMIT_MAX, ATH_CRYPT_CAP_CIPHER_AESCCM, BIT, common, ath_regulatory::current_rd, ath_regulatory::current_rd_ext, DBG, DBG2, EEP_ANT_DIV_CTL1, EEP_CHAIN_MASK_REDUCE, EEP_FSTCLK_5G, EEP_MINOR_REV, EEP_MODAL_VER, EEP_OP_MODE, EEP_PAPRD, EEP_REG_0, EEP_REG_1, EEP_RF_SILENT, EEP_RFSILENT_ENABLED, EEP_RFSILENT_GPIO_SEL, EEP_RFSILENT_POLARITY, EEP_RX_MASK, EEP_TX_MASK, EINVAL, ath9k_hw_capabilities::hw_caps, if(), ath9k_hw_capabilities::max_rxchains, ath9k_hw_capabilities::max_txchains, MS, ath9k_hw_capabilities::num_gpio_pins, ath9k_hw_capabilities::pcie_lcr_extsync_en, ath9k_hw_capabilities::pcie_lcr_offset, REG_READ, ath_common::regulatory, ath9k_hw_capabilities::rts_aggr_limit, ath9k_hw_capabilities::rx_chainmask, ath_common::rx_chainmask, ath9k_hw_capabilities::rx_hp_qdepth, ath9k_hw_capabilities::rx_lp_qdepth, ath9k_hw_capabilities::rx_status_len, ath9k_hw_capabilities::tx_chainmask, ath_common::tx_chainmask, ath9k_hw_capabilities::tx_desc_len, and ath9k_hw_capabilities::txs_len.
Referenced by __ath9k_hw_init().
Definition at line 1755 of file ath9k_hw.c.
References addr, ah, AR_GPIO_OUTPUT_MUX1, AR_GPIO_OUTPUT_MUX2, AR_GPIO_OUTPUT_MUX3, AR_SREV_9280_20_OR_LATER, gpio, REG_READ, REG_RMW, REG_WRITE, tmp, and type.
Referenced by ath9k_hw_cfg_output().
Definition at line 1783 of file ath9k_hw.c.
References ah, AR7010_GPIO_OE, AR7010_GPIO_OE_AS_INPUT, AR7010_GPIO_OE_MASK, AR_DEVID_7010, AR_GPIO_OE_OUT, AR_GPIO_OE_OUT_DRV, AR_GPIO_OE_OUT_DRV_NO, gpio, and REG_RMW.
Referenced by ath9k_hw_reset(), and ath_radio_disable().
Definition at line 1802 of file ath9k_hw.c.
References ah, AR7010_GPIO_IN, AR7010_GPIO_IN_VAL, AR9300_GPIO_IN_VAL, AR_DEVID_7010, AR_GPIO_BIT, AR_GPIO_IN, AR_SREV_9271, AR_SREV_9280_20_OR_LATER, AR_SREV_9285_12_OR_LATER, AR_SREV_9287_11_OR_LATER, AR_SREV_9300_20_OR_LATER, gpio, MS, MS_REG_READ, REG_READ, and val.
Referenced by ath9k_hw_fill_cap_info().
Definition at line 1829 of file ath9k_hw.c.
References ah, AR7010_GPIO_OE, AR7010_GPIO_OE_AS_OUTPUT, AR7010_GPIO_OE_MASK, AR_DEVID_7010, AR_GPIO_OE_OUT, AR_GPIO_OE_OUT_DRV, AR_GPIO_OE_OUT_DRV_ALL, ath9k_hw_gpio_cfg_output_mux(), gpio, and REG_RMW.
Referenced by ath9k_hw_apply_gpio_override().
Definition at line 1850 of file ath9k_hw.c.
References ah, AR7010_GPIO_OUT, AR_DEVID_7010, AR_GPIO_BIT, AR_GPIO_IN_OUT, AR_SREV_9271, gpio, REG_RMW, and val.
Referenced by ath9k_hw_apply_gpio_override(), and ath_radio_disable().
Definition at line 1866 of file ath9k_hw.c.
References ah, AR_DEF_ANTENNA, and REG_READ.
Referenced by ath9k_init_misc().
Definition at line 1871 of file ath9k_hw.c.
References ah, AR_DEF_ANTENNA, and REG_WRITE.
Referenced by ath_setdefantenna().
Definition at line 1880 of file ath9k_hw.c.
References ah, AR_PHY_ERR, AR_PHY_ERR_CCK_TIMING, AR_PHY_ERR_OFDM_TIMING, AR_PHY_ERR_RADAR, AR_RX_FILTER, ATH9K_RX_FILTER_PHYERR, ATH9K_RX_FILTER_PHYRADAR, bits, and REG_READ.
Referenced by ath9k_ani_reset_old(), and ath_calcrxfilter().
Definition at line 1893 of file ath9k_hw.c.
References ah, AR_PHY_ERR, AR_PHY_ERR_CCK_TIMING, AR_PHY_ERR_OFDM_TIMING, AR_PHY_ERR_RADAR, AR_RX_FILTER, AR_RXCFG, AR_RXCFG_ZLFDMA, ATH9K_RX_FILTER_PHYERR, ATH9K_RX_FILTER_PHYRADAR, bits, ENABLE_REGWRITE_BUFFER, REG_CLR_BIT, REG_SET_BIT, REG_WRITE, and REGWRITE_BUFFER_FLUSH.
Referenced by ath9k_ani_reset_old(), ath_opmode_init(), and ath_stoprecv().
int ath9k_hw_phy_disable | ( | struct ath_hw * | ah | ) |
Definition at line 1916 of file ath9k_hw.c.
References ah, ath9k_hw_init_pll(), ath9k_hw_set_reset_reg(), ATH9K_RESET_WARM, and NULL.
Referenced by ath9k_stop(), and ath_radio_disable().
int ath9k_hw_disable | ( | struct ath_hw * | ah | ) |
Definition at line 1925 of file ath9k_hw.c.
References ah, ath9k_hw_init_pll(), ath9k_hw_set_reset_reg(), ath9k_hw_setpower(), ATH9K_PM_AWAKE, ATH9K_RESET_COLD, and NULL.
Referenced by ath9k_stop().
Definition at line 1937 of file ath9k_hw.c.
References ah, ath9k_hw_regulatory(), ath9k_regd_get_ctl(), ath9k_channel::chan, channel, limit, MAX_RATE_POWER, min, ath_regulatory::power_limit, and test.
Referenced by ath9k_cmn_update_txpow(), and ath9k_init_band_txpower().
void ath9k_hw_setopmode | ( | struct ath_hw * | ah | ) |
Definition at line 1953 of file ath9k_hw.c.
References ah, and ath9k_hw_set_operating_mode().
Referenced by ath_opmode_init().
Definition at line 1958 of file ath9k_hw.c.
References ah, AR_MCAST_FIL0, AR_MCAST_FIL1, and REG_WRITE.
Referenced by ath_opmode_init().
void ath9k_hw_write_associd | ( | struct ath_hw * | ah | ) |
Definition at line 1964 of file ath9k_hw.c.
References ah, AR_BSS_ID0, AR_BSS_ID1, AR_BSS_ID1_AID_S, ath9k_hw_common(), common, get_unaligned_le16(), get_unaligned_le32(), and REG_WRITE.
Referenced by ath9k_bss_iter(), ath9k_config_bss(), and ath9k_hw_reset().
void ath9k_hw_set11nmac2040 | ( | struct ath_hw * | ah | ) |
Definition at line 1973 of file ath9k_hw.c.
References ah, AR_2040_MODE, and REG_WRITE.
Referenced by ar5008_hw_set_channel_regs(), and ar9003_hw_set_channel_regs().
|
static |
Definition at line 2015 of file ath9k_hw.c.
References ARRAY_SIZE, ath_mac_bb_names, and version.
Referenced by ath9k_hw_name().
|
static |
Definition at line 2032 of file ath9k_hw.c.
References ARRAY_SIZE, ath_rf_names, and version.
Referenced by ath9k_hw_name().
Definition at line 2045 of file ath9k_hw.c.
References ah, AR_RADIO_SREV_MAJOR, AR_SREV_9280_20_OR_LATER, ath9k_hw_mac_bb_name(), ath9k_hw_rf_name(), len, and snprintf().
Referenced by ath_pci_probe().
static struct gnttab_get_version * version |
Driver version.
Version string.
Microcode version.
Definition at line 1983 of file ath9k_hw.c.
Referenced by ath9k_hw_mac_bb_name(), ath9k_hw_rf_name(), hermon_start(), http_parse_status(), hv_map_hypercall(), hvm_cpuid_base(), hvm_map_hypercall(), ice_admin_version(), intelxl_admin_version(), intelxvf_mbox_version(), myri10ge_nv_init(), ntlm_response(), nvconfig_nvdata_access(), nvconfig_nvdata_default_access(), nvconfig_read_rom_ini_values(), peerdist_info(), tls_client_hello(), tls_new_server_hello(), tls_send_client_key_exchange_pubkey(), tls_version(), vmbus_initiate_contact(), vmware_present(), vmxnet3_check_version(), wpa_find_kie(), x509_parse_version(), and xengrant_init().
const char* name |
Definition at line 1984 of file ath9k_hw.c.
Referenced by acpi_name(), add_dynui_item(), add_tls(), alloc_form(), apply_dns_settings(), ath_descdma_setup(), autovivify_child_settings(), cms_decrypt(), cms_verify(), cms_verify_fail_okx(), cms_verify_okx(), comboot_resolv(), cpio_name_len(), create_dynui(), create_parameters(), dhcp_tag_name(), dns_decode(), dns_encode(), dns_encode_fail_okx(), dns_encode_okx(), dns_label(), dns_list_okx(), dns_name(), dns_question(), dns_resolv(), dns_skip(), dns_skip_search(), dns_xfer_deliver(), draw_title_row(), eepro_probe(), efi_driver_name(), efi_driver_name2(), efi_file_find(), efi_file_open(), efi_file_read_initrd(), efi_file_varlen(), efi_handle_name(), efi_iscsi_path(), efi_local_open_resolved(), efi_open_attributes_name(), efi_pecoff_debug_name(), efi_shim_get_variable(), efi_shim_is_sbatlevel(), efi_shim_set_variable(), efi_snp_hii_package_list(), efi_veto_dhcp6(), efi_veto_find(), efi_veto_hp_xhci(), efi_veto_ip4config(), efi_veto_vmware_uefipxebc(), eoib_create(), expand_settings(), fc_port_find(), fc_port_open(), fdt_alias(), fdt_child(), fdt_property(), fdt_string(), fdt_u64(), find_child_settings(), find_dynui(), find_gdb_transport(), find_image(), find_netdev(), find_netdev_configurator(), find_parameters(), find_setting(), find_setting_type(), find_settings(), format_dnssl_setting(), gdbudp_configure(), http_authentication(), http_parse_header(), http_parse_www_authenticate(), hvm_map_xenstore(), ib_cmrc_open(), ib_create_mi(), ib_create_qp(), ib_create_service_madx(), image_extract(), image_memory(), image_set_name(), image_set_uri(), imgdecrypt(), imgextract(), imgmem(), imgverify(), item_exec(), keymap_apply(), keymap_find(), nslookup(), nslookup_exec(), numeric_resolv(), parse_eeprom(), parse_kv(), parse_setting_name(), parse_setting_tag(), parse_settings_name(), peerdist_discovery_reply_values(), png_type_name(), register_image(), register_settings(), resolv(), resolv_setting(), setting_name(), sis900_probe(), syslog_fix_name(), t515_reset(), tftp_process_option(), tftp_rx_oack(), tlan_probe(), tls_session(), tulip_probe(), usbblk_find(), vxgetlink(), vxsetlink(), x509_check_alt_name(), x509_check_dnsname(), x509_check_ipaddress(), x509_check_name(), x509_check_name_fail_okx(), x509_check_name_okx(), xfer_open_named_socket(), xhci_port_protocol(), xsmp_rx_xve_install(), and xve_create().
struct { ... } ath_mac_bb_names[] |
Referenced by ath9k_hw_mac_bb_name().
struct { ... } ath_rf_names[] |
Referenced by ath9k_hw_rf_name().