iPXE
|
#include "hw.h"
#include "ar5008_initvals.h"
#include "ar9001_initvals.h"
#include "ar9002_initvals.h"
#include "ar9002_phy.h"
Go to the source code of this file.
Functions | |
FILE_LICENCE (BSD2) | |
static void | ar9002_hw_init_mode_regs (struct ath_hw *ah) |
void | ar9002_hw_cck_chan14_spread (struct ath_hw *ah) |
static void | ar9280_20_hw_init_rxgain_ini (struct ath_hw *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 void | ar9002_hw_configpcipowersave (struct ath_hw *ah, int restore, int power_off) |
static int | ar9002_hw_get_radiorev (struct ath_hw *ah) |
int | ar9002_hw_rf_claim (struct ath_hw *ah) |
void | ar9002_hw_enable_async_fifo (struct ath_hw *ah) |
void | ar9002_hw_update_async_fifo (struct ath_hw *ah) |
void | ar9002_hw_enable_wep_aggregation (struct ath_hw *ah) |
void | ar9002_hw_attach_ops (struct ath_hw *ah) |
void | ar9002_hw_load_ani_reg (struct ath_hw *ah, struct ath9k_channel *chan) |
Variables | |
int | modparam_force_new_ani |
FILE_LICENCE | ( | BSD2 | ) |
|
static |
Definition at line 32 of file ath9k_ar9002_hw.c.
References ah, ar5416Addac, ar5416Addac_9100, ar5416Addac_9160, ar5416Addac_9160_1_1, ar5416Bank0, ar5416Bank0_9100, ar5416Bank0_9160, ar5416Bank1, ar5416Bank1_9100, ar5416Bank1_9160, ar5416Bank2, ar5416Bank2_9100, ar5416Bank2_9160, ar5416Bank3, ar5416Bank3_9100, ar5416Bank3_9160, ar5416Bank6, ar5416Bank6_9100, ar5416Bank6_9160, ar5416Bank6TPC, ar5416Bank6TPC_9100, ar5416Bank6TPC_9160, ar5416Bank7, ar5416Bank7_9100, ar5416Bank7_9160, ar5416BB_RfGain, ar5416BB_RfGain_9100, ar5416BB_RfGain_9160, ar5416Common, ar5416Common_9100, ar5416Common_9160, ar5416Modes, ar5416Modes_9100, ar5416Modes_9160, ar9271Common_9271, ar9271Common_japan_2484_cck_fir_coeff_9271, ar9271Common_normal_cck_fir_coeff_9271, ar9271Modes_9271, ar9271Modes_9271_1_0_only, ar9271Modes_9271_ANI_reg, ar9271Modes_high_power_tx_gain_9271, ar9271Modes_normal_power_tx_gain_9271, ar9280Common_9280_2, ar9280Modes_9280_2, ar9280Modes_fast_clock_9280_2, ar9280PciePhy_clkreq_always_on_L1_9280, ar9280PciePhy_clkreq_off_L1_9280, ar9285Common_9285_1_2, ar9285Modes_9285_1_2, ar9285PciePhy_clkreq_always_on_L1_9285_1_2, ar9285PciePhy_clkreq_off_L1_9285_1_2, ar9287Common_9287_1_1, ar9287Modes_9287_1_1, ar9287PciePhy_clkreq_always_on_L1_9287_1_1, ar9287PciePhy_clkreq_off_L1_9287_1_1, AR_SREV_9100_OR_LATER, AR_SREV_9160_10_OR_LATER, AR_SREV_9160_11, AR_SREV_9271, AR_SREV_9280_20_OR_LATER, AR_SREV_9285_12_OR_LATER, AR_SREV_9287_11_OR_LATER, ARRAY_SIZE, and INIT_INI_ARRAY.
Referenced by ar9002_hw_attach_ops().
void ar9002_hw_cck_chan14_spread | ( | struct ath_hw * | ah | ) |
Definition at line 188 of file ath9k_ar9002_hw.c.
References ah, ar9287Common_japan_2484_cck_fir_coeff_9287_1_1, ar9287Common_normal_cck_fir_coeff_9287_1_1, AR_SREV_9287_11_OR_LATER, ARRAY_SIZE, and INIT_INI_ARRAY.
Referenced by __ath9k_hw_init().
|
static |
Definition at line 202 of file ath9k_ar9002_hw.c.
References ah, AR5416_EEP_MINOR_VER_17, AR5416_EEP_RXGAIN_13DB_BACKOFF, AR5416_EEP_RXGAIN_23DB_BACKOFF, ar9280Modes_backoff_13db_rxgain_9280_2, ar9280Modes_backoff_23db_rxgain_9280_2, ar9280Modes_original_rxgain_9280_2, ARRAY_SIZE, EEP_MINOR_REV, EEP_RXGAIN_TYPE, and INIT_INI_ARRAY.
Referenced by ar9002_hw_init_mode_gain_regs().
|
static |
Definition at line 229 of file ath9k_ar9002_hw.c.
References ah, AR5416_EEP_MINOR_VER_19, AR5416_EEP_TXGAIN_HIGH_POWER, ar9280Modes_high_power_tx_gain_9280_2, ar9280Modes_original_tx_gain_9280_2, ARRAY_SIZE, EEP_MINOR_REV, EEP_TXGAIN_TYPE, and INIT_INI_ARRAY.
Referenced by ar9002_hw_init_mode_gain_regs().
|
static |
Definition at line 252 of file ath9k_ar9002_hw.c.
References ah, AR5416_EEP_TXGAIN_HIGH_POWER, ar9280_20_hw_init_rxgain_ini(), ar9280_20_hw_init_txgain_ini(), ar9285Modes_high_power_tx_gain_9285_1_2, ar9285Modes_original_tx_gain_9285_1_2, ar9285Modes_XE2_0_high_power, ar9285Modes_XE2_0_normal_power, ar9287Modes_rx_gain_9287_1_1, ar9287Modes_tx_gain_9287_1_1, AR_SREV_9280_20, AR_SREV_9285_12_OR_LATER, AR_SREV_9285E_20, AR_SREV_9287_11_OR_LATER, ARRAY_SIZE, EEP_TXGAIN_TYPE, and INIT_INI_ARRAY.
Referenced by ar9002_hw_attach_ops().
|
static |
Definition at line 308 of file ath9k_ar9002_hw.c.
References ah, AR9280_WA_DEFAULT, AR9285_WA_DEFAULT, AR_PCIE_PM_CTRL, AR_PCIE_PM_CTRL_ENA, AR_PCIE_SERDES, AR_PCIE_SERDES2, AR_SREV_9271, AR_SREV_9280, AR_SREV_9280_20_OR_LATER, AR_SREV_9285, AR_SREV_9285E_20, AR_SREV_9287, AR_WA, AR_WA_BIT22, AR_WA_BIT23, AR_WA_BIT6, AR_WA_BIT7, AR_WA_D3_L1_DISABLE, AR_WA_DEFAULT, ENABLE_REGWRITE_BUFFER, INI_RA, REG_CLR_BIT, REG_READ, REG_SET_BIT, REG_WRITE, REGWRITE_BUFFER_FLUSH, udelay(), and val.
Referenced by ar9002_hw_attach_ops().
|
static |
Definition at line 445 of file ath9k_ar9002_hw.c.
References ah, AR_PHY, ath9k_hw_reverse_bits(), ENABLE_REGWRITE_BUFFER, REG_READ, REG_WRITE, REGWRITE_BUFFER_FLUSH, and val.
Referenced by ar9002_hw_rf_claim().
int ar9002_hw_rf_claim | ( | struct ath_hw * | ah | ) |
Definition at line 464 of file ath9k_ar9002_hw.c.
References ah, ar9002_hw_get_radiorev(), AR_PHY, AR_RAD2122_SREV_MAJOR, AR_RAD2133_SREV_MAJOR, AR_RAD5122_SREV_MAJOR, AR_RAD5133_SREV_MAJOR, AR_RADIO_SREV_MAJOR, DBG, EOPNOTSUPP, REG_WRITE, and val.
Referenced by ath9k_hw_post_init().
void ar9002_hw_enable_async_fifo | ( | struct ath_hw * | ah | ) |
Definition at line 492 of file ath9k_ar9002_hw.c.
References ah, AR_MAC_PCU_ASYNC_FIFO_REG3, AR_MAC_PCU_ASYNC_FIFO_REG3_DATAPATH_SEL, AR_MAC_PCU_ASYNC_FIFO_REG3_SOFT_RESET, AR_PHY_MODE, AR_PHY_MODE_ASYNCFIFO, AR_SREV_9287_13_OR_LATER, REG_CLR_BIT, and REG_SET_BIT.
Referenced by ath9k_hw_reset().
void ar9002_hw_update_async_fifo | ( | struct ath_hw * | ah | ) |
Definition at line 512 of file ath9k_ar9002_hw.c.
References ah, AR_AHB_CUSTOM_BURST_ASYNC_FIFO_VAL, AR_AHB_CUSTOM_BURST_EN, AR_AHB_MODE, AR_D_GBL_IFS_EIFS, AR_D_GBL_IFS_EIFS_ASYNC_FIFO_DUR, AR_D_GBL_IFS_SIFS, AR_D_GBL_IFS_SIFS_ASYNC_FIFO_DUR, AR_D_GBL_IFS_SLOT, AR_D_GBL_IFS_SLOT_ASYNC_FIFO_DUR, AR_MAC_PCU_LOGIC_ANALYZER, AR_MAC_PCU_LOGIC_ANALYZER_DISBUG20768, AR_SREV_9287_13_OR_LATER, AR_TIME_OUT, AR_TIME_OUT_ACK_CTS_ASYNC_FIFO_DUR, AR_USEC, AR_USEC_ASYNC_FIFO_DUR, REG_RMW_FIELD, REG_SET_BIT, and REG_WRITE.
Referenced by ath9k_hw_reset().
void ar9002_hw_enable_wep_aggregation | ( | struct ath_hw * | ah | ) |
Definition at line 536 of file ath9k_ar9002_hw.c.
References ah, AR_PCU_MISC_MODE2, AR_PCU_MISC_MODE2_ENABLE_AGGWEP, AR_SREV_9287_13_OR_LATER, and REG_SET_BIT.
Referenced by ath9k_hw_reset().
void ar9002_hw_attach_ops | ( | struct ath_hw * | ah | ) |
Definition at line 545 of file ath9k_ar9002_hw.c.
References ah, ar5008_hw_attach_phy_ops(), ar9002_hw_attach_calib_ops(), ar9002_hw_attach_mac_ops(), ar9002_hw_attach_phy_ops(), ar9002_hw_configpcipowersave(), ar9002_hw_init_mode_gain_regs(), ar9002_hw_init_mode_regs(), AR_SREV_9280_20_OR_LATER, ath9k_hw_ops(), ath9k_hw_private_ops(), ath_hw_ops::config_pci_powersave, ath_hw_private_ops::init_mode_gain_regs, and ath_hw_private_ops::init_mode_regs.
Referenced by ath9k_hw_attach_ops().
void ar9002_hw_load_ani_reg | ( | struct ath_hw * | ah, |
struct ath9k_channel * | chan | ||
) |
Definition at line 563 of file ath9k_ar9002_hw.c.
References ah, AR_PHY_CCK_DETECT, AR_PHY_CCK_DETECT_WEAK_SIG_THR_CCK, ath9k_channel::chanmode, CHANNEL_A, CHANNEL_A_HT20, CHANNEL_A_HT40MINUS, CHANNEL_A_HT40PLUS, CHANNEL_B, CHANNEL_G, CHANNEL_G_HT20, CHANNEL_G_HT40MINUS, CHANNEL_G_HT40PLUS, ENABLE_REGWRITE_BUFFER, INI_RA, reg, REG_READ, REG_WRITE, REGWRITE_BUFFER_FLUSH, and val.
Referenced by ath9k_hw_reset().
int modparam_force_new_ani |
Definition at line 28 of file ath9k_ar9002_hw.c.
Referenced by ar5008_hw_attach_phy_ops(), and use_new_ani().