64 if (
ah->config.pcie_clock_req)
81 if (
ah->config.pcie_clock_req) {
97 if (
ah->config.pcie_clock_req) {
315 if (
ah->is_pciexpress != 1)
319 if (
ah->config.pcie_powersave_enable == 2)
330 for (i = 0; i <
ah->iniPcieSerdes.ia_rows; i++) {
376 if (
ah->config.pcie_waen) {
406 if (
ah->config.pcie_waen) {
407 val =
ah->config.pcie_waen;
453 for (i = 0; i < 8; i++)
459 val = ((
val & 0xf0) >> 4) | ((
val & 0x0f) << 4);
482 "Radio Chip Rev 0x%02X not supported\n",
487 ah->hw_version.analog5GhzRev =
val;
593 for (i = 0; i <
ah->iniModes_9271_ANI_reg.ia_rows; i++) {
#define AR_PCU_MISC_MODE2_ENABLE_AGGWEP
static const u32 ar5416Bank1[][2]
static __unused const u32 ar9287PciePhy_clkreq_always_on_L1_9287_1_1[][2]
#define AR_D_GBL_IFS_EIFS_ASYNC_FIFO_DUR
void ar5008_hw_attach_phy_ops(struct ath_hw *ah)
#define AR_RAD5133_SREV_MAJOR
#define AR_SREV_9287_11_OR_LATER(_ah)
static const u32 ar5416Bank6TPC_9160[][3]
void ar9002_hw_enable_async_fifo(struct ath_hw *ah)
static const u32 ar5416BB_RfGain_9160[][3]
static __unused const u32 ar9280PciePhy_clkreq_always_on_L1_9280[][2]
#define AR_RAD5122_SREV_MAJOR
static const u32 ar5416Bank7_9160[][2]
#define AR_SREV_9280_20_OR_LATER(_ah)
static unsigned int unsigned int reg
#define AR_TIME_OUT_ACK_CTS_ASYNC_FIFO_DUR
#define AR_D_GBL_IFS_SLOT_ASYNC_FIFO_DUR
static __unused const u32 ar9285PciePhy_clkreq_always_on_L1_9285_1_2[][2]
static const u32 ar5416Bank6TPC[][3]
#define AR5416_EEP_MINOR_VER_17
#define AR_D_GBL_IFS_SIFS
static const u32 ar5416Bank3[][3]
static __unused const u32 ar9280Modes_9280_2[][6]
#define AR_SREV_9160_11(_ah)
static __unused const u32 ar9271Modes_high_power_tx_gain_9271[][6]
#define INI_RA(iniarray, row, column)
#define REG_CLR_BIT(_a, _r, _f)
#define REGWRITE_BUFFER_FLUSH(_ah)
#define AR_PHY_MODE_ASYNCFIFO
#define AR_SREV_9100_OR_LATER(_ah)
#define AR_AHB_CUSTOM_BURST_EN
#define CHANNEL_A_HT40MINUS
void ar9002_hw_enable_wep_aggregation(struct ath_hw *ah)
static __unused const u32 ar9285Modes_XE2_0_normal_power[][6]
static const u32 ar5416Bank6_9100[][3]
struct ath_hw_private_ops - callbacks used internally by hardware code
static __unused const u32 ar9285Modes_high_power_tx_gain_9285_1_2[][6]
static const u32 ar5416Addac_9160[][2]
#define AR_SREV_9285(_ah)
#define AR5416_EEP_TXGAIN_HIGH_POWER
static const u32 ar5416Bank1_9160[][2]
static __unused const u32 ar9287Modes_9287_1_1[][6]
void ar9002_hw_attach_calib_ops(struct ath_hw *ah)
#define REG_RMW_FIELD(_a, _r, _f, _v)
void ar9002_hw_attach_mac_ops(struct ath_hw *ah)
static const u32 ar5416Common_9160[][2]
static int ar9002_hw_get_radiorev(struct ath_hw *ah)
#define AR_SREV_9280_20(_ah)
static const u32 ar5416Modes[][6]
static void ar9002_hw_init_mode_regs(struct ath_hw *ah)
#define AR_SREV_9287(_ah)
static const u32 ar5416Bank2_9100[][2]
void ar9002_hw_update_async_fifo(struct ath_hw *ah)
void ar9002_hw_attach_ops(struct ath_hw *ah)
static const u32 ar5416BB_RfGain_9100[][3]
static __unused const u32 ar9271Modes_9271[][6]
static __unused const u32 ar9280PciePhy_clkreq_off_L1_9280[][2]
#define AR5416_EEP_RXGAIN_23DB_BACKOFF
#define AR_WA_D3_L1_DISABLE
#define AR_D_GBL_IFS_SIFS_ASYNC_FIFO_DUR
static const u32 ar5416Common[][2]
static const u32 ar5416Bank6[][3]
#define AR_RAD2122_SREV_MAJOR
static __unused const u32 ar9287Modes_tx_gain_9287_1_1[][6]
static const u32 ar5416Bank6_9160[][3]
#define AR9280_WA_DEFAULT
#define AR_RAD2133_SREV_MAJOR
#define AR_PCU_MISC_MODE2
void udelay(unsigned long usecs)
Delay for a fixed number of microseconds.
int ar9002_hw_rf_claim(struct ath_hw *ah)
static __unused const u32 ar9271Common_normal_cck_fir_coeff_9271[][2]
static __unused const u32 ar9280Modes_original_rxgain_9280_2[][6]
static const u32 ar5416Addac[][2]
static __unused const u32 ar9280Modes_fast_clock_9280_2[][3]
#define AR_PHY_CCK_DETECT_WEAK_SIG_THR_CCK
static __unused const u32 ar9285Modes_original_tx_gain_9285_1_2[][6]
static __unused const u32 ar9287Common_9287_1_1[][2]
#define AR9285_WA_DEFAULT
static __unused const u32 ar9280Modes_backoff_13db_rxgain_9280_2[][6]
static const u32 ar5416BB_RfGain[][3]
void(* init_mode_regs)(struct ath_hw *ah)
#define AR_SREV_9280(_ah)
static void ar9280_20_hw_init_txgain_ini(struct ath_hw *ah)
static void ar9002_hw_init_mode_gain_regs(struct ath_hw *ah)
static __unused const u32 ar9271Common_japan_2484_cck_fir_coeff_9271[][2]
static __unused const u32 ar9271Modes_9271_1_0_only[][6]
struct ath_hw_ops - callbacks used by hardware code and driver code
#define EOPNOTSUPP
Operation not supported on socket.
static const u32 ar5416Bank2[][2]
static __unused const u32 ar9271Common_9271[][2]
#define AR_SREV_9285_12_OR_LATER(_ah)
static __unused const u32 ar9287Common_normal_cck_fir_coeff_9287_1_1[][2]
#define AR_PHY_CCK_DETECT
void(* config_pci_powersave)(struct ath_hw *ah, int restore, int power_off)
#define AR_D_GBL_IFS_EIFS
void(* init_mode_gain_regs)(struct ath_hw *ah)
static __unused const u32 ar9280Common_9280_2[][2]
static __unused const u32 ar9287PciePhy_clkreq_off_L1_9287_1_1[][2]
static __unused const u32 ar9285PciePhy_clkreq_off_L1_9285_1_2[][2]
#define AR_MAC_PCU_LOGIC_ANALYZER
static __unused const u32 ar9271Modes_9271_ANI_reg[][6]
static __unused const u32 ar9285Common_9285_1_2[][2]
#define REG_READ(_ah, _reg)
static const u32 ar5416Bank0[][2]
static const u32 ar5416Bank3_9100[][3]
#define AR_SREV_9285E_20(_ah)
static const u32 ar5416Modes_9160[][6]
#define AR_USEC_ASYNC_FIFO_DUR
#define REG_SET_BIT(_a, _r, _f)
static const u32 ar5416Bank2_9160[][2]
static __unused const u32 ar9280Modes_original_tx_gain_9280_2[][6]
static __unused const u32 ar9280Modes_high_power_tx_gain_9280_2[][6]
static struct ath_hw_ops * ath9k_hw_ops(struct ath_hw *ah)
int modparam_force_new_ani
static const u32 ar5416Addac_9100[][2]
#define INIT_INI_ARRAY(iniarray, array, rows, columns)
static const u32 ar5416Addac_9160_1_1[][2]
void ar9002_hw_cck_chan14_spread(struct ath_hw *ah)
static const u32 ar5416Common_9100[][2]
#define AR5416_EEP_RXGAIN_13DB_BACKOFF
static __unused const u32 ar9271Modes_normal_power_tx_gain_9271[][6]
#define REG_WRITE(_ah, _reg, _val)
static const u32 ar5416Bank6TPC_9100[][3]
#define AR_MAC_PCU_ASYNC_FIFO_REG3
#define CHANNEL_A_HT40PLUS
#define AR_SREV_9271(_ah)
#define AR_SREV_9287_13_OR_LATER(_ah)
static void ar9002_hw_configpcipowersave(struct ath_hw *ah, int restore, int power_off)
static const u32 ar5416Bank0_9100[][2]
static void ar9280_20_hw_init_rxgain_ini(struct ath_hw *ah)
#define AR_PCIE_PM_CTRL_ENA
static __unused const u32 ar9287Modes_rx_gain_9287_1_1[][6]
#define AR_MAC_PCU_ASYNC_FIFO_REG3_DATAPATH_SEL
#define AR_SREV_9160_10_OR_LATER(_ah)
#define AR_MAC_PCU_LOGIC_ANALYZER_DISBUG20768
static struct ath_hw_private_ops * ath9k_hw_private_ops(struct ath_hw *ah)
#define DBG(...)
Print a debugging message.
static const u32 ar5416Bank7_9100[][2]
#define CHANNEL_G_HT40PLUS
#define AR_AHB_CUSTOM_BURST_ASYNC_FIFO_VAL
static const u32 ar5416Bank0_9160[][2]
#define AR_RADIO_SREV_MAJOR
#define AR_MAC_PCU_ASYNC_FIFO_REG3_SOFT_RESET
static const u32 ar5416Bank1_9100[][2]
static const u32 ar5416Modes_9100[][6]
#define AR_D_GBL_IFS_SLOT
static const u32 ar5416Bank7[][2]
static __unused const u32 ar9287Common_japan_2484_cck_fir_coeff_9287_1_1[][2]
#define CHANNEL_G_HT40MINUS
void ar9002_hw_attach_phy_ops(struct ath_hw *ah)
static __unused const u32 ar9280Modes_backoff_23db_rxgain_9280_2[][6]
#define ENABLE_REGWRITE_BUFFER(_ah)
#define AR5416_EEP_MINOR_VER_19
static const u32 ar5416Bank3_9160[][3]
static __unused const u32 ar9285Modes_9285_1_2[][6]
static __unused const u32 ar9285Modes_XE2_0_high_power[][6]
void ar9002_hw_load_ani_reg(struct ath_hw *ah, struct ath9k_channel *chan)
u32 ath9k_hw_reverse_bits(u32 val, u32 n)