FreeBSD kernel ATH device code
|
#include "ah_eeprom.h"
Go to the source code of this file.
Data Structures | |
struct | _gainOptStep |
struct | GAIN_OPTIMIZATION_LADDER |
struct | GAIN_VALUES |
struct | ath_hal_5211 |
Macros | |
#define | AR5211_MAGIC 0x19570405 |
#define | AC_BK 0 |
#define | AC_BE 1 |
#define | AC_VI 2 |
#define | AC_VO 3 |
#define | CALC_MMR(dcu, idx) ( (4 * dcu) + (idx < 32 ? 0 : (idx < 64 ? 1 : (idx < 96 ? 2 : 3))) ) |
#define | TXBLK_FROM_MMR(mmr) (AR_D_TXBLK_BASE + ((mmr & 0x1f) << 6) + ((mmr & 0x20) >> 3)) |
#define | CALC_TXBLK_ADDR(dcu, idx) (TXBLK_FROM_MMR(CALC_MMR(dcu, idx))) |
#define | CALC_TXBLK_VALUE(idx) (1 << (idx & 0x1f)) |
#define | INIT_INTERRUPT_MASK |
#define | INIT_BEACON_CONTROL |
#define | INIT_CONFIG_STATUS 0x00000000 |
#define | INIT_RSSI_THR 0x00000700 /* Missed beacon counter initialized to 0x7 (max is 0xff) */ |
#define | INIT_IQCAL_LOG_COUNT_MAX 0xF |
#define | INIT_BCON_CNTRL_REG 0x00000000 |
#define | INIT_BEACON_PERIOD 0xffff |
#define | INIT_TIM_OFFSET 0 |
#define | INIT_BEACON_EN 0 /* this should be set by AP only when it's ready */ |
#define | INIT_RESET_TSF 0 |
#define | MIN_TX_FIFO_THRESHOLD 0x1 |
#define | MAX_TX_FIFO_THRESHOLD ((IEEE80211_MAX_LEN / 64) + 1) |
#define | INIT_TX_FIFO_THRESHOLD MIN_TX_FIFO_THRESHOLD |
#define | AH5211(ah) ((struct ath_hal_5211 *)(ah)) |
Typedefs | |
typedef struct _gainOptStep | GAIN_OPTIMIZATION_STEP |
Enumerations | |
enum | { RFGAIN_INACTIVE , RFGAIN_READ_REQUESTED , RFGAIN_NEED_CHANGE } |
#define AH5211 | ( | ah | ) | ((struct ath_hal_5211 *)(ah)) |
#define CALC_MMR | ( | dcu, | |
idx | |||
) | ( (4 * dcu) + (idx < 32 ? 0 : (idx < 64 ? 1 : (idx < 96 ? 2 : 3))) ) |
#define CALC_TXBLK_ADDR | ( | dcu, | |
idx | |||
) | (TXBLK_FROM_MMR(CALC_MMR(dcu, idx))) |
#define INIT_BEACON_CONTROL |
#define INIT_BEACON_EN 0 /* this should be set by AP only when it's ready */ |
#define INIT_INTERRUPT_MASK |
#define INIT_RSSI_THR 0x00000700 /* Missed beacon counter initialized to 0x7 (max is 0xff) */ |
#define INIT_TX_FIFO_THRESHOLD MIN_TX_FIFO_THRESHOLD |
#define MAX_TX_FIFO_THRESHOLD ((IEEE80211_MAX_LEN / 64) + 1) |
#define TXBLK_FROM_MMR | ( | mmr | ) | (AR_D_TXBLK_BASE + ((mmr & 0x1f) << 6) + ((mmr & 0x20) >> 3)) |
typedef struct _gainOptStep GAIN_OPTIMIZATION_STEP |
anonymous enum |
HAL_BOOL ar5211AniControl | ( | struct ath_hal * | ah, |
HAL_ANI_CMD | cmd, | ||
int | param | ||
) |
Definition at line 570 of file ar5211_misc.c.
References AH_FALSE.
void ar5211AniPoll | ( | struct ath_hal * | ah, |
const struct ieee80211_channel * | chan | ||
) |
Definition at line 576 of file ar5211_misc.c.
u_int ar5211AntennaGet | ( | struct ath_hal * | ) |
void ar5211BeaconInit | ( | struct ath_hal * | ah, |
uint32_t | next_beacon, | ||
uint32_t | beacon_period | ||
) |
Definition at line 66 of file ar5211_beacon.c.
References ath_hal::ah_config, HAL_OPS_CONFIG::ah_dma_beacon_response_time, AH_PRIVATE, HAL_OPS_CONFIG::ah_sw_beacon_response_time, ar5211SetBeaconTimers(), AR_BEACON_EN, AR_BEACON_PERIOD, AR_BEACON_RESET_TSF, HAL_BEACON_TIMERS::bt_intval, HAL_BEACON_TIMERS::bt_nextatim, HAL_BEACON_TIMERS::bt_nextdba, HAL_BEACON_TIMERS::bt_nextswba, HAL_BEACON_TIMERS::bt_nexttbtt, HAL_M_HOSTAP, HAL_M_IBSS, HAL_M_MONITOR, and HAL_M_STA.
Definition at line 960 of file ar5211_reset.c.
References AH_FALSE, AH_PRIVATE, AH_TRUE, ar5211RunNoiseFloor(), AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_NF, AR_SREV_VERSION_OAHU, ath_hal_checkchannel(), CHANNEL_NFCREQUIRED, getNoiseFloorThresh(), HAL_DEBUG_ANY, HALDEBUG, N, OS_REG_READ, OS_REG_WRITE, and HAL_CHANNEL_INTERNAL::rawNoiseFloor.
Referenced by ar5211PerCalibrationN(), and ar5211Reset().
Definition at line 596 of file ar5211_reset.c.
References AH_FALSE, AH_NULL, AH_PRIVATE, AH_TRUE, AR5211_DEVID, AR5211_PHY_MODE, AR5211_PHY_MODE_CCK, AR5211_PHY_MODE_OFDM, AR5211_PHY_MODE_RF2GHZ, AR5211_PHY_MODE_RF5GHZ, ar5211SetPowerMode(), ar5211SetResetReg(), AR_PHY_FC_TURBO_MODE, AR_PHY_FC_TURBO_SHORT, AR_PHY_PLL_CTL, AR_PHY_PLL_CTL_40, AR_PHY_PLL_CTL_44, AR_PHY_TURBO, AR_RC_BB, AR_RC_MAC, AR_RC_PCI, DELAY_PLL_SETTLE, HAL_PM_AWAKE, OS_DELAY, and OS_REG_WRITE.
Referenced by ar5211Attach(), and ar5211Reset().
Definition at line 120 of file ar5211_recv.c.
References AH_FALSE, AH_TRUE, AR_MCAST_FIL0, AR_MCAST_FIL1, OS_REG_READ, and OS_REG_WRITE.
void ar5211Detach | ( | struct ath_hal * | ah | ) |
Definition at line 380 of file ar5211_attach.c.
References ath_hal::ah_magic, AH_NULL, AR5211_MAGIC, ath_hal_eepromDetach, ath_hal_free(), HAL_DEBUG_ATTACH, HALASSERT, and HALDEBUG.
Referenced by ar5211Attach().
Definition at line 394 of file ar5211_misc.c.
References AH_PRIVATE, AR_SREV, AR_SREV_ID_M, AR_SREV_ID_S, AR_SREV_REVISION_M, and OS_REG_READ.
Definition at line 572 of file ar5211_reset.c.
References AH_FALSE, AH_TRUE, ar5211SetPowerMode(), ar5211SetResetReg(), AR_RC_BB, AR_RC_MAC, AR_RC_PCI, HAL_PM_AWAKE, and OS_DELAY.
void ar5211DisableHwEncryption | ( | struct ath_hal * | ) |
Definition at line 70 of file ar5211_misc.c.
References AH_FALSE, AH_TRUE, AR_EEPROM_ADDR, AR_EEPROM_CMD, AR_EEPROM_CMD_READ, AR_EEPROM_DATA, AR_EEPROM_STS, AR_EEPROM_STS_READ_COMPLETE, AR_EEPROM_STS_READ_ERROR, ath_hal_wait(), HAL_DEBUG_ANY, HALDEBUG, OS_REG_READ, and OS_REG_WRITE.
void ar5211EnableDfs | ( | struct ath_hal * | ah, |
HAL_PHYERR_PARAM * | pe | ||
) |
Definition at line 728 of file ar5211_misc.c.
void ar5211EnableHwEncryption | ( | struct ath_hal * | ) |
void ar5211EnableReceive | ( | struct ath_hal * | ah | ) |
Definition at line 58 of file ar5211_recv.c.
References AR_CR, AR_CR_RXE, and OS_REG_WRITE.
void ar5211EnableRfKill | ( | struct ath_hal * | ah | ) |
Definition at line 170 of file ar5211_misc.c.
References AH_PRIVATE, ar5211GpioCfgInput(), ar5211GpioGet(), ar5211GpioSetIntr(), AR_EEPROM_RFSILENT_GPIO_SEL, AR_EEPROM_RFSILENT_POLARITY, AR_PHY_BASE, MS, and OS_REG_SET_BIT.
Referenced by ar5211Reset().
HAL_BOOL ar5211FillTxDesc | ( | struct ath_hal * | ah, |
struct ath_desc * | ds, | ||
HAL_DMA_ADDR * | bufAddrList, | ||
uint32_t * | segLenList, | ||
u_int | descId, | ||
u_int | qcuId, | ||
HAL_BOOL | firstSeg, | ||
HAL_BOOL | lastSeg, | ||
const struct ath_desc * | ds0 | ||
) |
Definition at line 580 of file ar5211_xmit.c.
References AH_TRUE, AR5211DESC, AR5211DESC_CONST, AR_BufLen, AR_More, ar5211_desc::ds_ctl0, ar5211_desc::ds_ctl1, ath_desc::ds_data, ar5211_desc::ds_status0, ar5211_desc::ds_status1, and HALASSERT.
uint32_t ar5211Get11nExtBusy | ( | struct ath_hal * | ah | ) |
Definition at line 706 of file ar5211_misc.c.
u_int ar5211GetAckCTSRate | ( | struct ath_hal * | ah | ) |
Definition at line 501 of file ar5211_misc.c.
References AH5211, ath_hal_5211::ah_staId1Defaults, and AR_STA_ID1_ACKCTS_6MB.
u_int ar5211GetAckTimeout | ( | struct ath_hal * | ah | ) |
Definition at line 494 of file ar5211_misc.c.
References AR_TIME_OUT, AR_TIME_OUT_ACK, ath_hal_mac_usec(), MS, and OS_REG_READ.
HAL_ANT_SETTING ar5211GetAntennaSwitch | ( | struct ath_hal * | ah | ) |
Definition at line 613 of file ar5211_misc.c.
References AH5211.
void ar5211GetBssIdMask | ( | struct ath_hal * | ah, |
uint8_t * | mask | ||
) |
Definition at line 53 of file ar5211_misc.c.
References IEEE80211_ADDR_LEN, and OS_MEMCPY.
HAL_STATUS ar5211GetCapability | ( | struct ath_hal * | ah, |
HAL_CAPABILITY_TYPE | type, | ||
uint32_t | capability, | ||
uint32_t * | result | ||
) |
Definition at line 631 of file ar5211_misc.c.
References ath_hal_getcapability, HAL_CAP_CIPHER, HAL_CIPHER_AES_OCB, HAL_CIPHER_CLR, HAL_CIPHER_WEP, HAL_ENOTSUPP, and HAL_OK.
u_int ar5211GetCTSTimeout | ( | struct ath_hal * | ah | ) |
Definition at line 541 of file ar5211_misc.c.
References AR_TIME_OUT, AR_TIME_OUT_CTS, ath_hal_mac_usec(), MS, and OS_REG_READ.
uint32_t ar5211GetCurRssi | ( | struct ath_hal * | ah | ) |
Definition at line 595 of file ar5211_misc.c.
References AR_PHY_CURRENT_RSSI, and OS_REG_READ.
u_int ar5211GetDefAntenna | ( | struct ath_hal * | ah | ) |
Definition at line 601 of file ar5211_misc.c.
References AR_DEF_ANTENNA, and OS_REG_READ.
void ar5211GetDfsThresh | ( | struct ath_hal * | ah, |
HAL_PHYERR_PARAM * | pe | ||
) |
Definition at line 733 of file ar5211_misc.c.
HAL_BOOL ar5211GetDiagState | ( | struct ath_hal * | ah, |
int | request, | ||
const void * | args, | ||
uint32_t | argsize, | ||
void ** | result, | ||
uint32_t * | resultsize | ||
) |
Definition at line 675 of file ar5211_misc.c.
References AH5211, AH_FALSE, ath_hal_5211::ah_gainValues, AH_NULL, AH_TRUE, ath_hal_eepromDiag, ath_hal_getdiagstate, GAIN_VALUES::currStep, HAL_DIAG_EEPROM, HAL_DIAG_RFGAIN, and HAL_DIAG_RFGAIN_CURSTEP.
Definition at line 98 of file ar5211_interrupts.c.
References AH5211.
Referenced by ar5211UpdateTxTrigLevel().
u_int ar5211GetKeyCacheSize | ( | struct ath_hal * | ah | ) |
Definition at line 40 of file ar5211_keycache.c.
References AR_KEYTABLE_SIZE.
void ar5211GetMacAddress | ( | struct ath_hal * | ah, |
uint8_t * | mac | ||
) |
Definition at line 36 of file ar5211_misc.c.
References AH5211, ath_hal_5211::ah_macaddr, IEEE80211_ADDR_LEN, and OS_MEMCPY.
uint32_t ar5211GetMaxTurboRate | ( | struct ath_hal * | ) |
HAL_BOOL ar5211GetMibCycleCounts | ( | struct ath_hal * | ah, |
HAL_SURVEY_SAMPLE * | hsample | ||
) |
Definition at line 715 of file ar5211_misc.c.
References AH_FALSE.
u_int ar5211GetNav | ( | struct ath_hal * | ah | ) |
Definition at line 741 of file ar5211_misc.c.
References AR_NAV, and OS_REG_READ.
uint64_t ar5211GetNextTBTT | ( | struct ath_hal * | ah | ) |
Definition at line 38 of file ar5211_beacon.c.
References AR_TIMER0, OS_REG_READ, and TU_TO_TSF.
int16_t ar5211GetNfAdjust | ( | struct ath_hal * | ah, |
const HAL_CHANNEL_INTERNAL * | c | ||
) |
Definition at line 1003 of file ar5211_reset.c.
References HAL_CHANNEL_INTERNAL::channel.
Referenced by ar5211Attach().
Definition at line 51 of file ar5211_interrupts.c.
References AH_FALSE, AH_PRIVATE, AH_TRUE, AR_ISR_HIUERR, AR_ISR_RAC, AR_ISR_RXERR, AR_ISR_RXOK, AR_ISR_RXORN, AR_ISR_S0_S, AR_ISR_S1_S, AR_ISR_S2_S, AR_ISR_S3_S, AR_ISR_S4_S, AR_ISR_TXDESC, AR_ISR_TXEOL, AR_ISR_TXERR, AR_ISR_TXOK, HAL_DEBUG_ANY, HAL_INT_COMMON, HAL_INT_FATAL, HAL_INT_RX, HAL_INT_TX, HALDEBUG, and OS_REG_READ.
HAL_POWER_MODE ar5211GetPowerMode | ( | struct ath_hal * | ah | ) |
Definition at line 138 of file ar5211_power.c.
References AR_SCR, AR_SCR_SLE, MS, and OS_REG_READ.
uint32_t ar5211GetRandomSeed | ( | struct ath_hal * | ah | ) |
Definition at line 379 of file ar5211_misc.c.
References AR_PHY, AR_TSF_L32, AR_TSF_U32, and OS_REG_READ.
const HAL_RATE_TABLE * ar5211GetRateTable | ( | struct ath_hal * | ah, |
u_int | mode | ||
) |
Definition at line 85 of file ar5211_phy.c.
References AH_NULL, ar5211_11a_table, ar5211_11b_table, ar5211_turbo_table, ath_hal_setupratetable(), HAL_DEBUG_ANY, HAL_MODE_11A, HAL_MODE_11B, HAL_MODE_TURBO, and HALDEBUG.
HAL_RFGAIN ar5211GetRfgain | ( | struct ath_hal * | ah | ) |
Definition at line 1976 of file ar5211_reset.c.
References GAIN_VALUES::active, AH5211, ath_hal_5211::ah_gainValues, ath_hal_5211::ah_rfgainState, ar5211AdjustGain(), ar5211InvalidGainReadback(), ar5211IsGainAdjustNeeded(), ar5211SetRfgain(), AR_PHY_PAPD_PROBE, AR_PHY_PAPD_PROBE_GAINF_S, AR_PHY_PAPD_PROBE_NEXT_TX, GAIN_VALUES::currGain, HAL_RFGAIN_INACTIVE, HAL_RFGAIN_NEED_CHANGE, HAL_RFGAIN_READ_REQUESTED, and OS_REG_READ.
uint32_t ar5211GetRxDP | ( | struct ath_hal * | ah, |
HAL_RX_QUEUE | qtype | ||
) |
Definition at line 35 of file ar5211_recv.c.
References AR_RXDP, HAL_RX_QUEUE_HP, HALASSERT, and OS_REG_READ.
uint32_t ar5211GetRxFilter | ( | struct ath_hal * | ah | ) |
Definition at line 160 of file ar5211_recv.c.
References AR_RX_FILTER, and OS_REG_READ.
u_int ar5211GetSifsTime | ( | struct ath_hal * | ah | ) |
Definition at line 443 of file ar5211_misc.c.
References AR_D_GBL_IFS_SIFS, ath_hal_mac_usec(), and OS_REG_READ.
u_int ar5211GetSlotTime | ( | struct ath_hal * | ah | ) |
Definition at line 468 of file ar5211_misc.c.
References AR_D_GBL_IFS_SLOT, ath_hal_mac_usec(), and OS_REG_READ.
uint32_t ar5211GetTsf32 | ( | struct ath_hal * | ah | ) |
Definition at line 358 of file ar5211_misc.c.
References AR_TSF_L32, and OS_REG_READ.
uint64_t ar5211GetTsf64 | ( | struct ath_hal * | ah | ) |
Definition at line 330 of file ar5211_misc.c.
References AR_TSF_L32, AR_TSF_U32, and OS_REG_READ.
HAL_BOOL ar5211GetTxCompletionRates | ( | struct ath_hal * | ah, |
const struct ath_desc * | ds0, | ||
int * | rates, | ||
int * | tries | ||
) |
Definition at line 674 of file ar5211_xmit.c.
References AH_FALSE.
void ar5211GetTxDescLink | ( | struct ath_hal * | ah, |
void * | ds, | ||
uint32_t * | link | ||
) |
Definition at line 688 of file ar5211_xmit.c.
References AR5211DESC, and ar5211_desc::ds_link.
void ar5211GetTxDescLinkPtr | ( | struct ath_hal * | ah, |
void * | ds, | ||
uint32_t ** | linkptr | ||
) |
Definition at line 696 of file ar5211_xmit.c.
References AR5211DESC, and ar5211_desc::ds_link.
uint32_t ar5211GetTxDP | ( | struct ath_hal * | ah, |
u_int | q | ||
) |
Definition at line 404 of file ar5211_xmit.c.
References AR_QTXDP, HAL_NUM_TX_QUEUES, HALASSERT, and OS_REG_READ.
void ar5211GetTxIntrQueue | ( | struct ath_hal * | ah, |
uint32_t * | txqs | ||
) |
Definition at line 665 of file ar5211_xmit.c.
HAL_BOOL ar5211GetTxQueueProps | ( | struct ath_hal * | ah, |
int | q, | ||
HAL_TXQ_INFO * | qInfo | ||
) |
Definition at line 98 of file ar5211_xmit.c.
References AH5211, AH_FALSE, ath_hal_5211::ah_txq, ath_hal_getTxQProps(), HAL_DEBUG_ANY, HAL_NUM_TX_QUEUES, and HALDEBUG.
u_int ar5211GetWirelessModes | ( | struct ath_hal * | ah | ) |
Definition at line 143 of file ar5211_misc.c.
References AR_EEP_AMODE, AR_EEP_BMODE, AR_EEP_TURBO5DISABLE, ath_hal_eepromGetFlag, HAL_MODE_108A, HAL_MODE_11A, HAL_MODE_11B, and HAL_MODE_TURBO.
Definition at line 215 of file ar5211_misc.c.
References AH_TRUE, AR_GPIOCR, AR_GPIOCR_0_CR_A, AR_GPIOCR_0_CR_N, AR_GPIOCR_CR_SHIFT, AR_NUM_GPIO, HALASSERT, OS_REG_READ, and OS_REG_WRITE.
Referenced by ar5211EnableRfKill().
HAL_BOOL ar5211GpioCfgOutput | ( | struct ath_hal * | ah, |
uint32_t | gpio, | ||
HAL_GPIO_MUX_TYPE | type | ||
) |
Definition at line 197 of file ar5211_misc.c.
References AH_TRUE, AR_GPIOCR, AR_GPIOCR_0_CR_A, AR_GPIOCR_CR_SHIFT, AR_NUM_GPIO, HALASSERT, OS_REG_READ, and OS_REG_WRITE.
uint32_t ar5211GpioGet | ( | struct ath_hal * | ah, |
uint32_t | gpio | ||
) |
Definition at line 251 of file ar5211_misc.c.
References AR_GPIOD_MASK, AR_GPIODI, AR_NUM_GPIO, and OS_REG_READ.
Referenced by ar5211EnableRfKill().
Definition at line 233 of file ar5211_misc.c.
References AH_TRUE, AR_GPIODO, AR_NUM_GPIO, HALASSERT, OS_REG_READ, and OS_REG_WRITE.
void ar5211GpioSetIntr | ( | struct ath_hal * | ah, |
u_int | gpio, | ||
uint32_t | ilevel | ||
) |
Definition at line 266 of file ar5211_misc.c.
References AH5211, ath_hal_5211::ah_maskReg, ar5211SetInterrupts(), AR_GPIOCR, AR_GPIOCR_0_CR_A, AR_GPIOCR_INT_ENA, AR_GPIOCR_INT_SEL0, AR_GPIOCR_INT_SELH, HAL_INT_GPIO, OS_REG_READ, and OS_REG_WRITE.
Referenced by ar5211EnableRfKill().
void ar5211InitializeGainValues | ( | struct ath_hal * | ah | ) |
Definition at line 1911 of file ar5211_reset.c.
References GAIN_VALUES::active, AH5211, ath_hal_5211::ah_gainValues, AH_TRUE, GAIN_VALUES::currStep, GAIN_VALUES::currStepNum, GAIN_OPTIMIZATION_LADDER::defaultStepNum, gainLadder, GAIN_VALUES::hiTrig, GAIN_VALUES::loTrig, and GAIN_OPTIMIZATION_LADDER::optStep.
Referenced by ar5211Attach().
Definition at line 572 of file ar5211_xmit.c.
References AR5211DESC, AR_TxInterReq, and ar5211_desc::ds_ctl0.
Definition at line 36 of file ar5211_interrupts.c.
References AR_INTPEND, and OS_REG_READ.
Definition at line 49 of file ar5211_keycache.c.
References AH_FALSE, AH_TRUE, AR_KEYTABLE_MAC1, AR_KEYTABLE_SIZE, AR_KEYTABLE_VALID, and OS_REG_READ.
void ar5211MibEvent | ( | struct ath_hal * | ah, |
const HAL_NODE_STATS * | stats | ||
) |
Definition at line 587 of file ar5211_misc.c.
uint32_t ar5211NumTxPending | ( | struct ath_hal * | ah, |
u_int | qnum | ||
) |
Definition at line 455 of file ar5211_xmit.c.
References AH5211, AR_Q_STS_PEND_FR_CNT_M, AR_Q_TXE, AR_QSTS, HAL_NUM_TX_QUEUES, HAL_TX_QUEUE_INACTIVE, HALASSERT, and OS_REG_READ.
Referenced by ar5211StopTxDma().
HAL_BOOL ar5211PerCalibration | ( | struct ath_hal * | ah, |
struct ieee80211_channel * | chan, | ||
HAL_BOOL * | isIQdone | ||
) |
Definition at line 736 of file ar5211_reset.c.
References AH_TRUE, and ar5211PerCalibrationN().
HAL_BOOL ar5211PerCalibrationN | ( | struct ath_hal * | ah, |
struct ieee80211_channel * | chan, | ||
u_int | chainMask, | ||
HAL_BOOL | longCal, | ||
HAL_BOOL * | isCalDone | ||
) |
Definition at line 643 of file ar5211_reset.c.
References AH5211, ath_hal_5211::ah_bIQCalibration, AH_FALSE, AH_NULL, AH_TRUE, ar5211CalNoiseFloor(), ar5211IsNfGood(), ar5211RequestRfgain(), AR_PHY_IQCAL_RES_IQ_CORR_MEAS, AR_PHY_IQCAL_RES_PWR_MEAS_I, AR_PHY_IQCAL_RES_PWR_MEAS_Q, AR_PHY_TIMING_CTRL4, AR_PHY_TIMING_CTRL4_DO_IQCAL, AR_PHY_TIMING_CTRL4_IQCORR_ENABLE, AR_PHY_TIMING_CTRL4_IQCORR_Q_I_COFF_S, ath_hal_checkchannel(), HAL_DEBUG_ANY, HAL_DEBUG_PERCAL, HALDEBUG, OS_DELAY, OS_REG_READ, and OS_REG_WRITE.
Referenced by ar5211PerCalibration().
Definition at line 563 of file ar5211_reset.c.
References ar5211SetResetReg(), and AR_RC_BB.
HAL_STATUS ar5211ProcRxDesc | ( | struct ath_hal * | ah, |
struct ath_desc * | ds, | ||
uint32_t | pa, | ||
struct ath_desc * | nds, | ||
uint64_t | tsf, | ||
struct ath_rx_status * | rs | ||
) |
Definition at line 208 of file ar5211_recv.c.
References AR5211DESC, AR_CRCErr, AR_DataLen, AR_DecryptCRCErr, AR_Done, AR_FrmRcvOK, AR_KeyIdx, AR_KeyIdxValid, AR_More, AR_PHYErr, AR_RcvAntenna, AR_RcvRate, AR_RcvSigStrength, AR_RcvTimestamp, AR_RXDP, ar5211_desc::ds_status0, ar5211_desc::ds_status1, HAL_EINPROGRESS, HAL_OK, HAL_RXERR_CRC, HAL_RXERR_DECRYPT, HAL_RXERR_PHY, HAL_RXKEYIX_INVALID, MS, OS_REG_READ, ath_rx_status::rs_antenna, ath_rx_status::rs_datalen, ath_rx_status::rs_keyix, ath_rx_status::rs_more, ath_rx_status::rs_phyerr, ath_rx_status::rs_rate, ath_rx_status::rs_rssi, ath_rx_status::rs_status, and ath_rx_status::rs_tstamp.
HAL_STATUS ar5211ProcTxDesc | ( | struct ath_hal * | ah, |
struct ath_desc * | ds, | ||
struct ath_tx_status * | ts | ||
) |
Definition at line 621 of file ar5211_xmit.c.
References AR5211DESC, AR_AckSigStrength, AR_Done, AR_ExcessiveRetries, AR_FIFOUnderrun, AR_Filtered, AR_FrmXmitOK, AR_LongRetryCnt, AR_SendTimestamp, AR_SeqNum, AR_ShortRetryCnt, AR_VirtCollCnt, AR_XmitRate, ar5211_desc::ds_ctl0, ar5211_desc::ds_status0, ar5211_desc::ds_status1, HAL_EINPROGRESS, HAL_OK, HAL_TXERR_FIFO, HAL_TXERR_FILT, HAL_TXERR_XRETRY, MS, ath_tx_status::ts_antenna, ath_tx_status::ts_finaltsi, ath_tx_status::ts_longretry, ath_tx_status::ts_rate, ath_tx_status::ts_rssi, ath_tx_status::ts_seqnum, ath_tx_status::ts_shortretry, ath_tx_status::ts_status, ath_tx_status::ts_tstamp, and ath_tx_status::ts_virtcol.
Definition at line 200 of file ar5211_xmit.c.
References AH5211, AH_FALSE, AH_TRUE, ath_hal_5211::ah_txDescInterruptMask, ath_hal_5211::ah_txEolInterruptMask, ath_hal_5211::ah_txErrInterruptMask, ath_hal_5211::ah_txOkInterruptMask, ath_hal_5211::ah_txq, ath_hal_5211::ah_txUrnInterruptMask, HAL_DEBUG_ANY, HAL_DEBUG_TXQUEUE, HAL_NUM_TX_QUEUES, HAL_TX_QUEUE_INACTIVE, HALDEBUG, setTxQInterrupts(), and HAL_TX_QUEUE_INFO::tqi_type.
HAL_BOOL ar5211Reset | ( | struct ath_hal * | ah, |
HAL_OPMODE | opmode, | ||
struct ieee80211_channel * | chan, | ||
HAL_BOOL | bChannelChange, | ||
HAL_RESET_TYPE | resetType, | ||
HAL_STATUS * | status | ||
) |
Definition at line 157 of file ar5211_reset.c.
References AH5211, ath_hal_5211::ah_acktimeout, ath_hal_5211::ah_bIQCalibration, ath_hal_5211::ah_bssid, ath_hal_5211::ah_calibrationTime, ath_hal_5211::ah_ctstimeout, AH_FALSE, ath_hal_5211::ah_macaddr, AH_MARK_RESET, ath_hal_5211::ah_maskReg, AH_NULL, AH_PRIVATE, ath_hal_5211::ah_rssiThr, ath_hal_5211::ah_sifstime, ath_hal_5211::ah_slottime, AH_TRUE, AR5211_FPGA11B, ar5211CalNoiseFloor(), ar5211ChipReset(), ar5211EnableRfKill(), ar5211ResetTxQueue(), ar5211SetAckTimeout(), ar5211SetBoardValues(), ar5211SetChannel(), ar5211SetCTSTimeout(), ar5211SetOperatingMode(), ar5211SetRf6and7(), ar5211SetSifsTime(), ar5211SetSlotTime(), ar5211SetTransmitPower(), AR5311_DIAG_SW_USE_ECO, AR5311_QDCLKGATE, AR5311_USEC_RX_LAT_M, AR5311_USEC_RX_LAT_S, AR5311_USEC_TX_LAT_M, AR_BEACON, AR_BEACON_EN, AR_BEACON_RESET_TSF, AR_BSS_ID0, AR_BSS_ID1, AR_CFG, AR_CFG_CLK_GATE_DIS, AR_D0_SEQNUM, AR_D_GBL_IFS_EIFS, AR_DEF_ANTENNA, AR_DIAG_SW, AR_DQCUMASK, AR_DSEQNUM, AR_EEPROM_VER3, AR_EEPROM_VER3_1, AR_GPIOCR, AR_GPIODO, AR_IMR, AR_IMR_MIB, AR_IMR_S0, AR_IMR_S0_QCU_TXDESC, AR_IMR_S0_QCU_TXDESC_S, AR_IMR_S0_QCU_TXOK, AR_IMR_S1, AR_IMR_S1_QCU_TXERR, AR_IMR_S2, AR_IMR_S2_DPERR, AR_IMR_S2_MCABT, AR_IMR_S2_QCU_TXURN, AR_IMR_S2_SSERR, AR_ISR, AR_NUM_DCU, AR_PCICFG, AR_PCICFG_LEDBLINK, AR_PCICFG_LEDCTL, AR_PCICFG_LEDMODE, AR_PCICFG_LEDSLOW, AR_PHY_ACTIVE, AR_PHY_ACTIVE_EN, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_CAL, AR_PHY_BASE, AR_PHY_FRAME_CTL, AR_PHY_FRAME_CTL_ERR_SERV, AR_PHY_RX_DELAY, AR_PHY_RX_DELAY_M, AR_PHY_TIMING_CTRL4, AR_PHY_TIMING_CTRL4_DO_IQCAL, AR_PHY_TIMING_CTRL4_IQCAL_LOG_COUNT_MAX_S, AR_QCU_0, AR_RSSI_THR, AR_SREV_OAHU_PROD, AR_SREV_VERSION_OAHU, AR_STA_ID0, AR_STA_ID1, AR_STA_ID1_BASE_RATE_11B, AR_TSF_L32, AR_TSF_U32, AR_USEC, AR_USEC_32_M, AR_USEC_M, ath_hal_checkchannel(), ath_hal_reverseBits(), ath_hal_wait(), DELAY_BASE_ACTIVATE, HAL_EEPROM::ee_db2GHz, HAL_EEPROM::ee_ob2GHz, FAIL, HAL_DEBUG_ANY, HAL_DEBUG_RESET, HAL_DIAG_11N_SERVICES, HAL_EINVAL, HAL_EIO, HAL_M_HOSTAP, HAL_M_IBSS, HAL_M_MONITOR, HAL_M_STA, HAL_NUM_TX_QUEUES, HALASSERT, HALDEBUG, INIT_INTERRUPT_MASK, INIT_IQCAL_LOG_COUNT_MAX, LE_READ_2, LE_READ_4, MS, N, OS_DELAY, OS_MARK, OS_REG_READ, OS_REG_RMW_FIELD, and OS_REG_WRITE.
Definition at line 743 of file ar5211_reset.c.
References AH_TRUE.
HAL_BOOL ar5211ResetDma | ( | struct ath_hal * | , |
HAL_OPMODE | |||
) |
Definition at line 63 of file ar5211_keycache.c.
References AH_FALSE, AH_TRUE, AR_KEYTABLE_KEY0, AR_KEYTABLE_KEY1, AR_KEYTABLE_KEY2, AR_KEYTABLE_KEY3, AR_KEYTABLE_KEY4, AR_KEYTABLE_MAC0, AR_KEYTABLE_MAC1, AR_KEYTABLE_SIZE, AR_KEYTABLE_TYPE, and OS_REG_WRITE.
void ar5211ResetStaBeaconTimers | ( | struct ath_hal * | ah | ) |
Definition at line 105 of file ar5211_beacon.c.
References AR_BEACON, AR_BEACON_PERIOD, AR_STA_ID1, AR_STA_ID1_DEFAULT_ANTENNA, AR_STA_ID1_PCF, AR_STA_ID1_PWR_SAV, AR_TIMER0, OS_REG_READ, and OS_REG_WRITE.
void ar5211ResetTsf | ( | struct ath_hal * | ah | ) |
Definition at line 367 of file ar5211_misc.c.
References AR_BEACON, AR_BEACON_RESET_TSF, OS_REG_READ, and OS_REG_WRITE.
Definition at line 234 of file ar5211_xmit.c.
References AH5211, HAL_OPS_CONFIG::ah_additional_swba_backoff, ath_hal_5211::ah_beaconInterval, ath_hal::ah_config, HAL_OPS_CONFIG::ah_dma_beacon_response_time, AH_FALSE, AH_PRIVATE, HAL_OPS_CONFIG::ah_sw_beacon_response_time, AH_TRUE, ath_hal_5211::ah_txDescInterruptMask, ath_hal_5211::ah_txEolInterruptMask, ath_hal_5211::ah_txErrInterruptMask, ath_hal_5211::ah_txOkInterruptMask, ath_hal_5211::ah_txq, ath_hal_5211::ah_txUrnInterruptMask, AR5311_D_MISC_SEQ_NUM_CONTROL, AR_D_CHNTIME_DUR, AR_D_CHNTIME_EN, AR_D_LCL_IFS_AIFS, AR_D_LCL_IFS_CWMAX, AR_D_LCL_IFS_CWMIN, AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL, AR_D_MISC_ARB_LOCKOUT_CNTRL_S, AR_D_MISC_BEACON_USE, AR_D_MISC_FRAG_BKOFF_EN, AR_D_MISC_POST_FR_BKOFF_DIS, AR_D_RETRY_LIMIT_FR_LG, AR_D_RETRY_LIMIT_FR_SH, AR_D_RETRY_LIMIT_STA_LG, AR_D_RETRY_LIMIT_STA_SH, AR_DCHNTIME, AR_DLCL_IFS, AR_DMISC, AR_DRETRY_LIMIT, AR_Q_CBRCFG_CBR_INTERVAL, AR_Q_CBRCFG_CBR_OVF_THRESH, AR_Q_MISC_BEACON_USE, AR_Q_MISC_CBR_EXP_CNTR_LIMIT, AR_Q_MISC_CBR_INCR_DIS0, AR_Q_MISC_CBR_INCR_DIS1, AR_Q_MISC_DCU_EARLY_TERM_REQ, AR_Q_MISC_FSP_CBR, AR_Q_MISC_FSP_DBA_GATED, AR_Q_MISC_RDYTIME_EXP_POLICY, AR_Q_RDYTIMECFG_EN, AR_Q_RDYTIMECFG_INT, AR_QCBRCFG, AR_QMISC, AR_QRDYTIMECFG, AR_SREV_VERSION_OAHU, HAL_DEBUG_ANY, HAL_DEBUG_TXQUEUE, HAL_NUM_TX_QUEUES, HAL_TX_QUEUE_BEACON, HAL_TX_QUEUE_CAB, HAL_TX_QUEUE_INACTIVE, HAL_TXQ_BACKOFF_DISABLE, HAL_TXQ_FRAG_BURST_BACKOFF_ENABLE, HAL_TXQ_RDYTIME_EXP_POLICY_ENABLE, HAL_TXQ_TXDESCINT_ENABLE, HAL_TXQ_TXEOLINT_ENABLE, HAL_TXQ_TXERRINT_ENABLE, HAL_TXQ_TXOKINT_ENABLE, HAL_TXQ_TXURNINT_ENABLE, HAL_TXQ_USEDEFAULT, HALDEBUG, INIT_CWMIN, INIT_CWMIN_11B, INIT_SLG_RETRY, INIT_SSH_RETRY, OS_REG_READ, OS_REG_WRITE, setTxQInterrupts(), SM, HAL_TX_QUEUE_INFO::tqi_aifs, HAL_TX_QUEUE_INFO::tqi_burstTime, HAL_TX_QUEUE_INFO::tqi_cbrOverflowLimit, HAL_TX_QUEUE_INFO::tqi_cbrPeriod, HAL_TX_QUEUE_INFO::tqi_cwmax, HAL_TX_QUEUE_INFO::tqi_cwmin, HAL_TX_QUEUE_INFO::tqi_lgretry, HAL_TX_QUEUE_INFO::tqi_qflags, HAL_TX_QUEUE_INFO::tqi_readyTime, HAL_TX_QUEUE_INFO::tqi_shretry, and HAL_TX_QUEUE_INFO::tqi_type.
Referenced by ar5211Reset().
void ar5211RxMonitor | ( | struct ath_hal * | ah, |
const HAL_NODE_STATS * | stats, | ||
const struct ieee80211_channel * | chan | ||
) |
Definition at line 581 of file ar5211_misc.c.
Definition at line 507 of file ar5211_misc.c.
References AH5211, ath_hal_5211::ah_staId1Defaults, AH_TRUE, AR_STA_ID1, AR_STA_ID1_ACKCTS_6MB, OS_REG_CLR_BIT, and OS_REG_SET_BIT.
Definition at line 475 of file ar5211_misc.c.
References AH5211, ath_hal_5211::ah_acktimeout, AH_FALSE, AH_TRUE, AR_TIME_OUT, AR_TIME_OUT_ACK, ath_hal_mac_clks(), ath_hal_mac_usec(), HAL_DEBUG_ANY, HALDEBUG, MS, and OS_REG_RMW_FIELD.
Referenced by ar5211Reset().
HAL_BOOL ar5211SetAntennaSwitch | ( | struct ath_hal * | ah, |
HAL_ANT_SETTING | settings | ||
) |
Definition at line 619 of file ar5211_misc.c.
References AH5211, AH_NULL, AH_PRIVATE, AH_TRUE, and ar5211SetAntennaSwitchInternal().
HAL_BOOL ar5211SetAntennaSwitchInternal | ( | struct ath_hal * | ah, |
HAL_ANT_SETTING | settings, | ||
const struct ieee80211_channel * | chan | ||
) |
Definition at line 1141 of file ar5211_reset.c.
References AH5211, ath_hal_5211::ah_diversityControl, AH_FALSE, AH_PRIVATE, AH_TRUE, ANT_SWITCH_TABLE1, ANT_SWITCH_TABLE2, HAL_EEPROM::ee_antennaControl, HAL_ANT_FIXED_A, HAL_ANT_FIXED_B, HAL_ANT_VARIABLE, HAL_DEBUG_ANY, HALDEBUG, IEEE80211_CHAN_ALLFULL, and OS_REG_WRITE.
Referenced by ar5211SetAntennaSwitch(), and ar5211SetBoardValues().
void ar5211SetBeaconTimers | ( | struct ath_hal * | ah, |
const HAL_BEACON_TIMERS * | bt | ||
) |
Definition at line 49 of file ar5211_beacon.c.
References AR_BEACON, AR_TIMER0, AR_TIMER1, AR_TIMER2, AR_TIMER3, HAL_BEACON_TIMERS::bt_intval, HAL_BEACON_TIMERS::bt_nextatim, HAL_BEACON_TIMERS::bt_nextdba, HAL_BEACON_TIMERS::bt_nextswba, HAL_BEACON_TIMERS::bt_nexttbtt, and OS_REG_WRITE.
Referenced by ar5211BeaconInit().
Definition at line 61 of file ar5211_misc.c.
References AH_FALSE.
HAL_BOOL ar5211SetCapability | ( | struct ath_hal * | ah, |
HAL_CAPABILITY_TYPE | type, | ||
uint32_t | capability, | ||
uint32_t | setting, | ||
HAL_STATUS * | status | ||
) |
Definition at line 651 of file ar5211_misc.c.
References AH_PRIVATE, AH_TRUE, AR_DIAG_SW, ath_hal_setcapability, HAL_CAP_DIAG, and OS_REG_WRITE.
void ar5211SetChainMasks | ( | struct ath_hal * | ah, |
uint32_t | txchainmask, | ||
uint32_t | rxchainmask | ||
) |
Definition at line 722 of file ar5211_misc.c.
void ar5211SetCoverageClass | ( | struct ath_hal * | ah, |
uint8_t | coverageclass, | ||
int | now | ||
) |
Definition at line 555 of file ar5211_misc.c.
Definition at line 522 of file ar5211_misc.c.
References AH5211, ath_hal_5211::ah_ctstimeout, AH_FALSE, AH_TRUE, AR_TIME_OUT, AR_TIME_OUT_CTS, ath_hal_mac_clks(), ath_hal_mac_usec(), HAL_DEBUG_ANY, HALDEBUG, MS, and OS_REG_RMW_FIELD.
Referenced by ar5211Reset().
Definition at line 548 of file ar5211_misc.c.
References AH_TRUE.
void ar5211SetDefAntenna | ( | struct ath_hal * | ah, |
u_int | antenna | ||
) |
Definition at line 607 of file ar5211_misc.c.
References AR_DEF_ANTENNA, and OS_REG_WRITE.
Definition at line 108 of file ar5211_interrupts.c.
References AH5211, ath_hal_5211::ah_maskReg, ath_hal_5211::ah_txDescInterruptMask, ath_hal_5211::ah_txEolInterruptMask, ath_hal_5211::ah_txErrInterruptMask, ath_hal_5211::ah_txOkInterruptMask, AR_IER, AR_IER_DISABLE, AR_IER_ENABLE, AR_IMR, AR_IMR_HIUERR, AR_IMR_RXDESC, AR_IMR_RXERR, AR_IMR_RXOK, AR_IMR_TXDESC, AR_IMR_TXEOL, AR_IMR_TXERR, AR_IMR_TXOK, HAL_DEBUG_INTERRUPT, HAL_INT_COMMON, HAL_INT_FATAL, HAL_INT_GLOBAL, HAL_INT_RX, HAL_INT_TX, HALDEBUG, OS_REG_READ, and OS_REG_WRITE.
Referenced by ar5211GpioSetIntr(), and ar5211UpdateTxTrigLevel().
HAL_BOOL ar5211SetKeyCacheEntry | ( | struct ath_hal * | ah, |
uint16_t | entry, | ||
const HAL_KEYVAL * | k, | ||
const uint8_t * | mac, | ||
int | xorKey | ||
) |
Definition at line 117 of file ar5211_keycache.c.
References AH_FALSE, ar5211SetKeyCacheEntryMac(), AR_KEYTABLE_KEY0, AR_KEYTABLE_KEY1, AR_KEYTABLE_KEY2, AR_KEYTABLE_KEY3, AR_KEYTABLE_KEY4, AR_KEYTABLE_SIZE, AR_KEYTABLE_TYPE, AR_KEYTABLE_TYPE_104, AR_KEYTABLE_TYPE_128, AR_KEYTABLE_TYPE_40, AR_KEYTABLE_TYPE_AES, AR_KEYTABLE_TYPE_CLR, HAL_CIPHER_AES_OCB, HAL_CIPHER_CLR, HAL_CIPHER_WEP, HAL_DEBUG_ANY, HALDEBUG, KEY_XOR, keyType, HAL_KEYVAL::kv_len, HAL_KEYVAL::kv_type, HAL_KEYVAL::kv_val, LE_READ_2, LE_READ_4, NBBY, and OS_REG_WRITE.
Definition at line 83 of file ar5211_keycache.c.
References AH_FALSE, AH_NULL, AH_TRUE, AR_KEYTABLE_MAC0, AR_KEYTABLE_MAC1, AR_KEYTABLE_SIZE, AR_KEYTABLE_VALID, HAL_DEBUG_ANY, HALDEBUG, and OS_REG_WRITE.
Referenced by ar5211SetKeyCacheEntry().
void ar5211SetLedState | ( | struct ath_hal * | ah, |
HAL_LED_STATE | state | ||
) |
Definition at line 289 of file ar5211_misc.c.
References AR_PCICFG, AR_PCICFG_LEDCTL, AR_PCICFG_LEDCTL_ASSOC, AR_PCICFG_LEDCTL_NONE, AR_PCICFG_LEDCTL_PEND, AR_PCICFG_LEDMODE, AR_PCICFG_LEDMODE_PROP, AR_PCICFG_LEDMODE_RAND, OS_REG_READ, and OS_REG_WRITE.
Definition at line 44 of file ar5211_misc.c.
References AH5211, ath_hal_5211::ah_macaddr, AH_TRUE, IEEE80211_ADDR_LEN, and OS_MEMCPY.
void ar5211SetMulticastFilter | ( | struct ath_hal * | ah, |
uint32_t | filter0, | ||
uint32_t | filter1 | ||
) |
Definition at line 110 of file ar5211_recv.c.
References AR_MCAST_FIL0, AR_MCAST_FIL1, and OS_REG_WRITE.
Definition at line 140 of file ar5211_recv.c.
References AH_FALSE, AH_TRUE, AR_MCAST_FIL0, AR_MCAST_FIL1, OS_REG_READ, and OS_REG_WRITE.
void ar5211SetNav | ( | struct ath_hal * | ah, |
u_int | val | ||
) |
Definition at line 753 of file ar5211_misc.c.
References AR_NAV, and OS_REG_WRITE.
void ar5211SetPCUConfig | ( | struct ath_hal * | ah | ) |
Definition at line 2119 of file ar5211_reset.c.
References AH_PRIVATE, and ar5211SetOperatingMode().
HAL_STATUS ar5211SetQuiet | ( | struct ath_hal * | ah, |
uint32_t | period, | ||
uint32_t | duration, | ||
uint32_t | next_start, | ||
HAL_QUIET_FLAG | flags | ||
) |
Definition at line 560 of file ar5211_misc.c.
References HAL_OK.
HAL_BOOL ar5211SetRegulatoryDomain | ( | struct ath_hal * | ah, |
uint16_t | regDomain, | ||
HAL_STATUS * | status | ||
) |
Definition at line 101 of file ar5211_misc.c.
References AH_FALSE, AH_PRIVATE, AH_TRUE, ar5211EepromWrite(), AR_EEP_WRITEPROTECT, AR_EEPROM_REG_DOMAIN, ath_hal_eepromGetFlag, HAL_DEBUG_ANY, HAL_EEWRITE, HAL_EINVAL, HAL_EIO, and HALDEBUG.
void ar5211SetRxDP | ( | struct ath_hal * | ah, |
uint32_t | rxdp, | ||
HAL_RX_QUEUE | qtype | ||
) |
Definition at line 46 of file ar5211_recv.c.
References AR_RXDP, HAL_RX_QUEUE_HP, HALASSERT, OS_REG_READ, and OS_REG_WRITE.
void ar5211SetRxFilter | ( | struct ath_hal * | ah, |
uint32_t | bits | ||
) |
Definition at line 169 of file ar5211_recv.c.
References AR_RX_FILTER, and OS_REG_WRITE.
Definition at line 425 of file ar5211_misc.c.
References AH5211, AH_FALSE, ath_hal_5211::ah_sifstime, ath_hal_5211::ah_slottime, AH_TRUE, AR_D_GBL_IFS_SIFS, ath_hal_mac_clks(), ath_hal_mac_usec(), HAL_DEBUG_ANY, HALDEBUG, and OS_REG_WRITE.
Referenced by ar5211Reset().
Definition at line 450 of file ar5211_misc.c.
References AH5211, AH_FALSE, ath_hal_5211::ah_slottime, AH_TRUE, AR_D_GBL_IFS_SLOT, ath_hal_mac_clks(), ath_hal_mac_usec(), HAL_DEBUG_ANY, HALDEBUG, and OS_REG_WRITE.
Referenced by ar5211Reset().
void ar5211SetStaBeaconTimers | ( | struct ath_hal * | ah, |
const HAL_BEACON_STATE * | bs | ||
) |
Definition at line 124 of file ar5211_beacon.c.
References AH5211, ath_hal_5211::ah_rssiThr, AR_BEACON, AR_BEACON_PERIOD, AR_BEACON_TIM, AR_CFP_DUR, AR_CFP_PERIOD, AR_RSSI_THR, AR_RSSI_THR_BM_THR, AR_SCR, AR_SCR_SLDUR, AR_STA_ID1, AR_STA_ID1_PCF, AR_TIMER0, AR_TIMER2, HAL_BEACON_STATE::bs_bmissthreshold, HAL_BEACON_STATE::bs_cfpmaxduration, HAL_BEACON_STATE::bs_cfpnext, HAL_BEACON_STATE::bs_cfpperiod, HAL_BEACON_STATE::bs_intval, HAL_BEACON_STATE::bs_nexttbtt, HAL_BEACON_STATE::bs_sleepduration, HAL_BEACON_STATE::bs_timoffset, HAL_DEBUG_BEACON, HALASSERT, HALDEBUG, MS, OS_REG_READ, OS_REG_RMW_FIELD, OS_REG_WRITE, SLEEP_SLOP, and SM.
void ar5211SetTxDescLink | ( | struct ath_hal * | ah, |
void * | ds, | ||
uint32_t | link | ||
) |
Definition at line 680 of file ar5211_xmit.c.
References AR5211DESC, and ar5211_desc::ds_link.
Definition at line 414 of file ar5211_xmit.c.
References AH5211, AH_TRUE, AR_Q_TXE, AR_QTXDP, HAL_NUM_TX_QUEUES, HAL_TX_QUEUE_INACTIVE, HALASSERT, OS_REG_READ, and OS_REG_WRITE.
Definition at line 1302 of file ar5211_reset.c.
References AH_MIN, AH_PRIVATE, AH_TRUE, AR_PHY_POWER_TX_RATE_MAX, MAX_RATE_POWER, and OS_REG_WRITE.
Referenced by ar5211SetRateTable().
HAL_BOOL ar5211SetTxQueueProps | ( | struct ath_hal * | ah, |
int | q, | ||
const HAL_TXQ_INFO * | qInfo | ||
) |
Definition at line 82 of file ar5211_xmit.c.
References AH5211, AH_FALSE, ath_hal_5211::ah_txq, ath_hal_setTxQProps(), HAL_DEBUG_ANY, HAL_NUM_TX_QUEUES, and HALDEBUG.
Referenced by ar5211SetupTxQueue().
HAL_BOOL ar5211SetupRxDesc | ( | struct ath_hal * | ah, |
struct ath_desc * | ds, | ||
uint32_t | size, | ||
u_int | flags | ||
) |
Definition at line 180 of file ar5211_recv.c.
References AH_FALSE, AH_TRUE, AR5211DESC, AR_BufLen, AR_RxInterReq, ar5211_desc::ds_ctl0, ar5211_desc::ds_ctl1, ar5211_desc::ds_status0, ar5211_desc::ds_status1, HAL_DEBUG_ANY, HAL_RXDESC_INTREQ, and HALDEBUG.
HAL_BOOL ar5211SetupTxDesc | ( | struct ath_hal * | ah, |
struct ath_desc * | ds, | ||
u_int | pktLen, | ||
u_int | hdrLen, | ||
HAL_PKT_TYPE | type, | ||
u_int | txPower, | ||
u_int | txRate0, | ||
u_int | txTries0, | ||
u_int | keyIx, | ||
u_int | antMode, | ||
u_int | flags, | ||
u_int | rtsctsRate, | ||
u_int | rtsctsDuration, | ||
u_int | compicvLen, | ||
u_int | compivLen, | ||
u_int | comp | ||
) |
Definition at line 511 of file ar5211_xmit.c.
References AH_TRUE, AR5211DESC, AR_AntModeXmit_S, AR_ClearDestMask, AR_EncryptKeyIdx, AR_EncryptKeyIdx_S, AR_EncryptKeyValid, AR_FrameLen, AR_NoAck, AR_RTSCTSEnable, AR_TxInterReq, AR_VEOL, AR_XmitRate_S, ar5211_desc::ds_ctl0, ar5211_desc::ds_ctl1, HAL_TXDESC_CLRDMASK, HAL_TXDESC_INTREQ, HAL_TXDESC_NOACK, HAL_TXDESC_RTSENA, HAL_TXDESC_VEOL, HAL_TXKEYIX_INVALID, HALASSERT, isValidPktType, and isValidTxRate.
int ar5211SetupTxQueue | ( | struct ath_hal * | ah, |
HAL_TX_QUEUE | type, | ||
const HAL_TXQ_INFO * | qInfo | ||
) |
Definition at line 114 of file ar5211_xmit.c.
References AH5211, AH_NULL, ath_hal_5211::ah_txq, ar5211SetTxQueueProps(), HAL_DEBUG_ANY, HAL_DEBUG_TXQUEUE, HAL_TX_QUEUE_BEACON, HAL_TX_QUEUE_CAB, HAL_TX_QUEUE_DATA, HAL_TX_QUEUE_INACTIVE, HAL_TXQ_TXDESCINT_ENABLE, HAL_TXQ_TXERRINT_ENABLE, HAL_TXQ_TXOKINT_ENABLE, HAL_TXQ_TXURNINT_ENABLE, HAL_TXQ_USEDEFAULT, HALDEBUG, INIT_AIFS, INIT_CWMAX, INIT_LG_RETRY, INIT_SH_RETRY, OS_MEMZERO, HAL_TX_QUEUE_INFO::tqi_aifs, HAL_TX_QUEUE_INFO::tqi_cwmax, HAL_TX_QUEUE_INFO::tqi_cwmin, HAL_TX_QUEUE_INFO::tqi_lgretry, HAL_TX_QUEUE_INFO::tqi_qflags, HAL_TX_QUEUE_INFO::tqi_shretry, and HAL_TX_QUEUE_INFO::tqi_type.
HAL_BOOL ar5211SetupXTxDesc | ( | struct ath_hal * | ah, |
struct ath_desc * | ds, | ||
u_int | txRate1, | ||
u_int | txRetries1, | ||
u_int | txRate2, | ||
u_int | txRetries2, | ||
u_int | txRate3, | ||
u_int | txRetries3 | ||
) |
Definition at line 559 of file ar5211_xmit.c.
References AH_FALSE.
Definition at line 89 of file ar5211_recv.c.
References AR_DIAG_SW, AR_DIAG_SW_DIS_RX, OS_REG_READ, and OS_REG_WRITE.
Definition at line 434 of file ar5211_xmit.c.
References AH5211, AH_TRUE, AR_Q_TXD, AR_Q_TXE, HAL_DEBUG_TXQUEUE, HAL_NUM_TX_QUEUES, HAL_TX_QUEUE_INACTIVE, HALASSERT, HALDEBUG, OS_REG_READ, and OS_REG_WRITE.
Definition at line 67 of file ar5211_recv.c.
References AH_FALSE, AH_TRUE, AR_CR, AR_CR_RXD, AR_CR_RXE, AR_DIAG_SW, ath_hal_printf(), ath_hal_wait(), OS_REG_READ, and OS_REG_WRITE.
void ar5211StopPcuReceive | ( | struct ath_hal * | ah | ) |
Definition at line 99 of file ar5211_recv.c.
References AR_DIAG_SW, AR_DIAG_SW_DIS_RX, OS_REG_READ, and OS_REG_WRITE.
Definition at line 477 of file ar5211_xmit.c.
References AH5211, ar5211NumTxPending(), AR_Q_TXD, HAL_NUM_TX_QUEUES, HAL_TX_QUEUE_INACTIVE, HALASSERT, OS_DELAY, and OS_REG_WRITE.
void ar5211UpdateMibCounters | ( | struct ath_hal * | ah, |
HAL_MIB_STATS * | stats | ||
) |
Definition at line 415 of file ar5211_misc.c.
References HAL_MIB_STATS::ackrcv_bad, AR_ACK_FAIL, AR_BEACON_CNT, AR_FCS_FAIL, AR_RTS_FAIL, AR_RTS_OK, HAL_MIB_STATS::beacons, HAL_MIB_STATS::fcs_bad, OS_REG_READ, HAL_MIB_STATS::rts_bad, and HAL_MIB_STATS::rts_good.
Definition at line 40 of file ar5211_xmit.c.
References AH_FALSE, AH_TRUE, ar5211GetInterrupts(), ar5211SetInterrupts(), AR_TXCFG, AR_TXCFG_FTRIG_M, AR_TXCFG_FTRIG_S, HAL_INT_GLOBAL, MAX_TX_FIFO_THRESHOLD, MIN_TX_FIFO_THRESHOLD, OS_REG_READ, and OS_REG_WRITE.
void ar5211WriteAssocid | ( | struct ath_hal * | ah, |
const uint8_t * | bssid, | ||
uint16_t | assocId | ||
) |
Definition at line 315 of file ar5211_misc.c.
References AH5211, ath_hal_5211::ah_bssid, AR_BSS_ID0, AR_BSS_ID1, AR_BSS_ID1_AID_S, IEEE80211_ADDR_LEN, LE_READ_2, LE_READ_4, OS_MEMCPY, and OS_REG_WRITE.