FreeBSD kernel ATH device code
ar5211.h File Reference
#include "ah_eeprom.h"
Include dependency graph for ar5211.h:
This graph shows which files directly or indirectly include this file:

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 }
 

Functions

void ar5211Detach (struct ath_hal *)
 
HAL_BOOL ar5211Reset (struct ath_hal *, HAL_OPMODE, struct ieee80211_channel *, HAL_BOOL bChannelChange, HAL_RESET_TYPE, HAL_STATUS *)
 
HAL_BOOL ar5211PhyDisable (struct ath_hal *)
 
HAL_BOOL ar5211Disable (struct ath_hal *)
 
HAL_BOOL ar5211ChipReset (struct ath_hal *, const struct ieee80211_channel *)
 
HAL_BOOL ar5211PerCalibration (struct ath_hal *, struct ieee80211_channel *, HAL_BOOL *)
 
HAL_BOOL ar5211PerCalibrationN (struct ath_hal *ah, struct ieee80211_channel *chan, u_int chainMask, HAL_BOOL longCal, HAL_BOOL *isCalDone)
 
HAL_BOOL ar5211ResetCalValid (struct ath_hal *ah, const struct ieee80211_channel *)
 
HAL_BOOL ar5211SetTxPowerLimit (struct ath_hal *, uint32_t limit)
 
HAL_BOOL ar5211CalNoiseFloor (struct ath_hal *, const struct ieee80211_channel *)
 
HAL_BOOL ar5211SetAntennaSwitchInternal (struct ath_hal *, HAL_ANT_SETTING, const struct ieee80211_channel *)
 
int16_t ar5211GetNfAdjust (struct ath_hal *, const HAL_CHANNEL_INTERNAL *)
 
HAL_BOOL ar5211ResetDma (struct ath_hal *, HAL_OPMODE)
 
void ar5211InitializeGainValues (struct ath_hal *)
 
HAL_RFGAIN ar5211GetRfgain (struct ath_hal *)
 
void ar5211SetPCUConfig (struct ath_hal *)
 
HAL_BOOL ar5211SetTxQueueProps (struct ath_hal *ah, int q, const HAL_TXQ_INFO *qInfo)
 
HAL_BOOL ar5211GetTxQueueProps (struct ath_hal *ah, int q, HAL_TXQ_INFO *qInfo)
 
int ar5211SetupTxQueue (struct ath_hal *ah, HAL_TX_QUEUE type, const HAL_TXQ_INFO *qInfo)
 
HAL_BOOL ar5211ReleaseTxQueue (struct ath_hal *ah, u_int q)
 
HAL_BOOL ar5211ResetTxQueue (struct ath_hal *ah, u_int q)
 
uint32_t ar5211GetTxDP (struct ath_hal *, u_int)
 
HAL_BOOL ar5211SetTxDP (struct ath_hal *, u_int, uint32_t txdp)
 
HAL_BOOL ar5211UpdateTxTrigLevel (struct ath_hal *, HAL_BOOL)
 
HAL_BOOL ar5211StartTxDma (struct ath_hal *, u_int)
 
HAL_BOOL ar5211StopTxDma (struct ath_hal *, u_int)
 
uint32_t ar5211NumTxPending (struct ath_hal *, u_int qnum)
 
HAL_BOOL ar5211IsTxQueueStopped (struct ath_hal *, u_int)
 
HAL_BOOL ar5211GetTransmitFilterIndex (struct ath_hal *, uint32_t)
 
HAL_BOOL ar5211SetupTxDesc (struct ath_hal *, struct ath_desc *, 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)
 
HAL_BOOL ar5211SetupXTxDesc (struct ath_hal *, struct ath_desc *, u_int txRate1, u_int txRetries1, u_int txRate2, u_int txRetries2, u_int txRate3, u_int txRetries3)
 
HAL_BOOL ar5211FillTxDesc (struct ath_hal *, struct ath_desc *, HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList, u_int descId, u_int qcuId, HAL_BOOL firstSeg, HAL_BOOL lastSeg, const struct ath_desc *ds0)
 
HAL_STATUS ar5211ProcTxDesc (struct ath_hal *, struct ath_desc *, struct ath_tx_status *)
 
void ar5211GetTxIntrQueue (struct ath_hal *ah, uint32_t *)
 
void ar5211IntrReqTxDesc (struct ath_hal *ah, struct ath_desc *)
 
HAL_BOOL ar5211GetTxCompletionRates (struct ath_hal *ah, const struct ath_desc *ds0, int *rates, int *tries)
 
void ar5211SetTxDescLink (struct ath_hal *ah, void *ds, uint32_t link)
 
void ar5211GetTxDescLink (struct ath_hal *ah, void *ds, uint32_t *link)
 
void ar5211GetTxDescLinkPtr (struct ath_hal *ah, void *ds, uint32_t **linkptr)
 
uint32_t ar5211GetRxDP (struct ath_hal *, HAL_RX_QUEUE)
 
void ar5211SetRxDP (struct ath_hal *, uint32_t rxdp, HAL_RX_QUEUE)
 
void ar5211EnableReceive (struct ath_hal *)
 
HAL_BOOL ar5211StopDmaReceive (struct ath_hal *)
 
void ar5211StartPcuReceive (struct ath_hal *, HAL_BOOL)
 
void ar5211StopPcuReceive (struct ath_hal *)
 
void ar5211SetMulticastFilter (struct ath_hal *, uint32_t filter0, uint32_t filter1)
 
HAL_BOOL ar5211ClrMulticastFilterIndex (struct ath_hal *, uint32_t)
 
HAL_BOOL ar5211SetMulticastFilterIndex (struct ath_hal *, uint32_t)
 
uint32_t ar5211GetRxFilter (struct ath_hal *)
 
void ar5211SetRxFilter (struct ath_hal *, uint32_t)
 
HAL_BOOL ar5211SetupRxDesc (struct ath_hal *, struct ath_desc *, uint32_t, u_int flags)
 
HAL_STATUS ar5211ProcRxDesc (struct ath_hal *, struct ath_desc *, uint32_t, struct ath_desc *, uint64_t, struct ath_rx_status *)
 
void ar5211GetMacAddress (struct ath_hal *, uint8_t *)
 
HAL_BOOL ar5211SetMacAddress (struct ath_hal *ah, const uint8_t *)
 
void ar5211GetBssIdMask (struct ath_hal *, uint8_t *)
 
HAL_BOOL ar5211SetBssIdMask (struct ath_hal *, const uint8_t *)
 
HAL_BOOL ar5211EepromRead (struct ath_hal *, u_int off, uint16_t *data)
 
HAL_BOOL ar5211EepromWrite (struct ath_hal *, u_int off, uint16_t data)
 
HAL_BOOL ar5211SetRegulatoryDomain (struct ath_hal *, uint16_t, HAL_STATUS *)
 
u_int ar5211GetWirelessModes (struct ath_hal *)
 
void ar5211EnableRfKill (struct ath_hal *)
 
uint32_t ar5211GpioGet (struct ath_hal *, uint32_t gpio)
 
void ar5211GpioSetIntr (struct ath_hal *, u_int, uint32_t ilevel)
 
HAL_BOOL ar5211GpioCfgOutput (struct ath_hal *, uint32_t gpio, HAL_GPIO_MUX_TYPE)
 
HAL_BOOL ar5211GpioCfgInput (struct ath_hal *, uint32_t gpio)
 
HAL_BOOL ar5211GpioSet (struct ath_hal *, uint32_t gpio, uint32_t val)
 
void ar5211SetLedState (struct ath_hal *, HAL_LED_STATE)
 
u_int ar5211AntennaGet (struct ath_hal *)
 
void ar5211WriteAssocid (struct ath_hal *, const uint8_t *bssid, uint16_t assocId)
 
uint64_t ar5211GetTsf64 (struct ath_hal *)
 
uint32_t ar5211GetTsf32 (struct ath_hal *)
 
void ar5211ResetTsf (struct ath_hal *)
 
uint32_t ar5211GetMaxTurboRate (struct ath_hal *)
 
uint32_t ar5211GetRandomSeed (struct ath_hal *)
 
HAL_BOOL ar5211DetectCardPresent (struct ath_hal *)
 
void ar5211UpdateMibCounters (struct ath_hal *, HAL_MIB_STATS *)
 
void ar5211EnableHwEncryption (struct ath_hal *)
 
void ar5211DisableHwEncryption (struct ath_hal *)
 
HAL_BOOL ar5211SetSlotTime (struct ath_hal *, u_int)
 
u_int ar5211GetSlotTime (struct ath_hal *)
 
HAL_BOOL ar5211SetAckTimeout (struct ath_hal *, u_int)
 
u_int ar5211GetAckTimeout (struct ath_hal *)
 
HAL_BOOL ar5211SetAckCTSRate (struct ath_hal *, u_int)
 
u_int ar5211GetAckCTSRate (struct ath_hal *)
 
HAL_BOOL ar5211SetCTSTimeout (struct ath_hal *, u_int)
 
u_int ar5211GetCTSTimeout (struct ath_hal *)
 
HAL_BOOL ar5211SetSifsTime (struct ath_hal *, u_int)
 
u_int ar5211GetSifsTime (struct ath_hal *)
 
HAL_BOOL ar5211SetDecompMask (struct ath_hal *, uint16_t, int)
 
void ar5211SetCoverageClass (struct ath_hal *, uint8_t, int)
 
HAL_STATUS ar5211SetQuiet (struct ath_hal *, uint32_t, uint32_t, uint32_t, HAL_QUIET_FLAG)
 
uint32_t ar5211GetCurRssi (struct ath_hal *)
 
u_int ar5211GetDefAntenna (struct ath_hal *)
 
void ar5211SetDefAntenna (struct ath_hal *ah, u_int antenna)
 
HAL_ANT_SETTING ar5211GetAntennaSwitch (struct ath_hal *)
 
HAL_BOOL ar5211SetAntennaSwitch (struct ath_hal *, HAL_ANT_SETTING)
 
HAL_STATUS ar5211GetCapability (struct ath_hal *, HAL_CAPABILITY_TYPE, uint32_t, uint32_t *)
 
HAL_BOOL ar5211SetCapability (struct ath_hal *, HAL_CAPABILITY_TYPE, uint32_t, uint32_t, HAL_STATUS *)
 
HAL_BOOL ar5211GetDiagState (struct ath_hal *ah, int request, const void *args, uint32_t argsize, void **result, uint32_t *resultsize)
 
uint32_t ar5211Get11nExtBusy (struct ath_hal *)
 
HAL_BOOL ar5211GetMibCycleCounts (struct ath_hal *, HAL_SURVEY_SAMPLE *)
 
void ar5211SetChainMasks (struct ath_hal *ah, uint32_t, uint32_t)
 
void ar5211SetNav (struct ath_hal *ah, u_int)
 
u_int ar5211GetNav (struct ath_hal *ah)
 
void ar5211EnableDfs (struct ath_hal *, HAL_PHYERR_PARAM *)
 
void ar5211GetDfsThresh (struct ath_hal *, HAL_PHYERR_PARAM *)
 
u_int ar5211GetKeyCacheSize (struct ath_hal *)
 
HAL_BOOL ar5211IsKeyCacheEntryValid (struct ath_hal *, uint16_t)
 
HAL_BOOL ar5211ResetKeyCacheEntry (struct ath_hal *, uint16_t entry)
 
HAL_BOOL ar5211SetKeyCacheEntry (struct ath_hal *, uint16_t entry, const HAL_KEYVAL *, const uint8_t *mac, int xorKey)
 
HAL_BOOL ar5211SetKeyCacheEntryMac (struct ath_hal *, uint16_t, const uint8_t *)
 
HAL_BOOL ar5211SetPowerMode (struct ath_hal *, uint32_t powerRequest, int setChip)
 
HAL_POWER_MODE ar5211GetPowerMode (struct ath_hal *)
 
void ar5211SetBeaconTimers (struct ath_hal *, const HAL_BEACON_TIMERS *)
 
void ar5211BeaconInit (struct ath_hal *, uint32_t, uint32_t)
 
void ar5211SetStaBeaconTimers (struct ath_hal *, const HAL_BEACON_STATE *)
 
void ar5211ResetStaBeaconTimers (struct ath_hal *)
 
uint64_t ar5211GetNextTBTT (struct ath_hal *)
 
HAL_BOOL ar5211IsInterruptPending (struct ath_hal *)
 
HAL_BOOL ar5211GetPendingInterrupts (struct ath_hal *, HAL_INT *)
 
HAL_INT ar5211GetInterrupts (struct ath_hal *)
 
HAL_INT ar5211SetInterrupts (struct ath_hal *, HAL_INT ints)
 
const HAL_RATE_TABLEar5211GetRateTable (struct ath_hal *, u_int mode)
 
HAL_BOOL ar5211AniControl (struct ath_hal *, HAL_ANI_CMD, int)
 
void ar5211RxMonitor (struct ath_hal *, const HAL_NODE_STATS *, const struct ieee80211_channel *)
 
void ar5211AniPoll (struct ath_hal *, const struct ieee80211_channel *)
 
void ar5211MibEvent (struct ath_hal *, const HAL_NODE_STATS *)
 

Macro Definition Documentation

◆ AC_BE

#define AC_BE   1

Definition at line 30 of file ar5211.h.

◆ AC_BK

#define AC_BK   0

Definition at line 29 of file ar5211.h.

◆ AC_VI

#define AC_VI   2

Definition at line 31 of file ar5211.h.

◆ AC_VO

#define AC_VO   3

Definition at line 32 of file ar5211.h.

◆ AH5211

#define AH5211 (   ah)    ((struct ath_hal_5211 *)(ah))

Definition at line 144 of file ar5211.h.

◆ AR5211_MAGIC

#define AR5211_MAGIC   0x19570405

Definition at line 26 of file ar5211.h.

◆ CALC_MMR

#define CALC_MMR (   dcu,
  idx 
)     ( (4 * dcu) + (idx < 32 ? 0 : (idx < 64 ? 1 : (idx < 96 ? 2 : 3))) )

Definition at line 35 of file ar5211.h.

◆ CALC_TXBLK_ADDR

#define CALC_TXBLK_ADDR (   dcu,
  idx 
)    (TXBLK_FROM_MMR(CALC_MMR(dcu, idx)))

Definition at line 39 of file ar5211.h.

◆ CALC_TXBLK_VALUE

#define CALC_TXBLK_VALUE (   idx)    (1 << (idx & 0x1f))

Definition at line 40 of file ar5211.h.

◆ INIT_BCON_CNTRL_REG

#define INIT_BCON_CNTRL_REG   0x00000000

Definition at line 55 of file ar5211.h.

◆ INIT_BEACON_CONTROL

#define INIT_BEACON_CONTROL
Value:
( (INIT_RESET_TSF << 24) | (INIT_BEACON_EN << 23) | \
#define INIT_BEACON_PERIOD
Definition: ar5211.h:57
#define INIT_RESET_TSF
Definition: ar5211.h:60
#define INIT_TIM_OFFSET
Definition: ar5211.h:58
#define INIT_BEACON_EN
Definition: ar5211.h:59

Definition at line 48 of file ar5211.h.

◆ INIT_BEACON_EN

#define INIT_BEACON_EN   0 /* this should be set by AP only when it's ready */

Definition at line 59 of file ar5211.h.

◆ INIT_BEACON_PERIOD

#define INIT_BEACON_PERIOD   0xffff

Definition at line 57 of file ar5211.h.

◆ INIT_CONFIG_STATUS

#define INIT_CONFIG_STATUS   0x00000000

Definition at line 52 of file ar5211.h.

◆ INIT_INTERRUPT_MASK

#define INIT_INTERRUPT_MASK
Value:
AR_IMR_RXERR | AR_IMR_RXOK | AR_IMR_TXURN | \
AR_IMR_HIUERR )
#define AR_IMR_TXERR
Definition: ar5211reg.h:427
#define AR_IMR_TXURN
Definition: ar5211reg.h:430
#define AR_IMR_RXORN
Definition: ar5211reg.h:424
#define AR_IMR_TXOK
Definition: ar5211reg.h:425
#define AR_IMR_RXOK
Definition: ar5211reg.h:419

Definition at line 44 of file ar5211.h.

◆ INIT_IQCAL_LOG_COUNT_MAX

#define INIT_IQCAL_LOG_COUNT_MAX   0xF

Definition at line 54 of file ar5211.h.

◆ INIT_RESET_TSF

#define INIT_RESET_TSF   0

Definition at line 60 of file ar5211.h.

◆ INIT_RSSI_THR

#define INIT_RSSI_THR   0x00000700 /* Missed beacon counter initialized to 0x7 (max is 0xff) */

Definition at line 53 of file ar5211.h.

◆ INIT_TIM_OFFSET

#define INIT_TIM_OFFSET   0

Definition at line 58 of file ar5211.h.

◆ INIT_TX_FIFO_THRESHOLD

#define INIT_TX_FIFO_THRESHOLD   MIN_TX_FIFO_THRESHOLD

Definition at line 68 of file ar5211.h.

◆ MAX_TX_FIFO_THRESHOLD

#define MAX_TX_FIFO_THRESHOLD   ((IEEE80211_MAX_LEN / 64) + 1)

Definition at line 67 of file ar5211.h.

◆ MIN_TX_FIFO_THRESHOLD

#define MIN_TX_FIFO_THRESHOLD   0x1

Definition at line 66 of file ar5211.h.

◆ TXBLK_FROM_MMR

#define TXBLK_FROM_MMR (   mmr)     (AR_D_TXBLK_BASE + ((mmr & 0x1f) << 6) + ((mmr & 0x20) >> 3))

Definition at line 37 of file ar5211.h.

Typedef Documentation

◆ GAIN_OPTIMIZATION_STEP

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RFGAIN_INACTIVE 
RFGAIN_READ_REQUESTED 
RFGAIN_NEED_CHANGE 

Definition at line 95 of file ar5211.h.

Function Documentation

◆ ar5211AniControl()

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.

◆ ar5211AniPoll()

void ar5211AniPoll ( struct ath_hal ah,
const struct ieee80211_channel *  chan 
)

Definition at line 576 of file ar5211_misc.c.

◆ ar5211AntennaGet()

u_int ar5211AntennaGet ( struct ath_hal )

◆ ar5211BeaconInit()

◆ ar5211CalNoiseFloor()

HAL_BOOL ar5211CalNoiseFloor ( struct ath_hal ah,
const struct ieee80211_channel *  chan 
)

◆ ar5211ChipReset()

HAL_BOOL ar5211ChipReset ( struct ath_hal ah,
const struct ieee80211_channel *  chan 
)

◆ ar5211ClrMulticastFilterIndex()

HAL_BOOL ar5211ClrMulticastFilterIndex ( struct ath_hal ah,
uint32_t  ix 
)

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.

◆ ar5211Detach()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ar5211DetectCardPresent()

HAL_BOOL ar5211DetectCardPresent ( struct ath_hal ah)

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.

◆ ar5211Disable()

HAL_BOOL ar5211Disable ( struct ath_hal ah)

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.

Here is the call graph for this function:

◆ ar5211DisableHwEncryption()

void ar5211DisableHwEncryption ( struct ath_hal )

◆ ar5211EepromRead()

HAL_BOOL ar5211EepromRead ( struct ath_hal ah,
u_int  off,
uint16_t *  data 
)

◆ ar5211EepromWrite()

HAL_BOOL ar5211EepromWrite ( struct ath_hal ,
u_int  off,
uint16_t  data 
)

Referenced by ar5211SetRegulatoryDomain().

Here is the caller graph for this function:

◆ ar5211EnableDfs()

void ar5211EnableDfs ( struct ath_hal ah,
HAL_PHYERR_PARAM pe 
)

Definition at line 728 of file ar5211_misc.c.

◆ ar5211EnableHwEncryption()

void ar5211EnableHwEncryption ( struct ath_hal )

◆ ar5211EnableReceive()

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.

◆ ar5211EnableRfKill()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ar5211FillTxDesc()

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 
)

◆ ar5211Get11nExtBusy()

uint32_t ar5211Get11nExtBusy ( struct ath_hal ah)

Definition at line 706 of file ar5211_misc.c.

◆ ar5211GetAckCTSRate()

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.

◆ ar5211GetAckTimeout()

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.

Here is the call graph for this function:

◆ ar5211GetAntennaSwitch()

HAL_ANT_SETTING ar5211GetAntennaSwitch ( struct ath_hal ah)

Definition at line 613 of file ar5211_misc.c.

References AH5211.

◆ ar5211GetBssIdMask()

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.

◆ ar5211GetCapability()

HAL_STATUS ar5211GetCapability ( struct ath_hal ah,
HAL_CAPABILITY_TYPE  type,
uint32_t  capability,
uint32_t *  result 
)

◆ ar5211GetCTSTimeout()

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.

Here is the call graph for this function:

◆ ar5211GetCurRssi()

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.

◆ ar5211GetDefAntenna()

u_int ar5211GetDefAntenna ( struct ath_hal ah)

Definition at line 601 of file ar5211_misc.c.

References AR_DEF_ANTENNA, and OS_REG_READ.

◆ ar5211GetDfsThresh()

void ar5211GetDfsThresh ( struct ath_hal ah,
HAL_PHYERR_PARAM pe 
)

Definition at line 733 of file ar5211_misc.c.

◆ ar5211GetDiagState()

HAL_BOOL ar5211GetDiagState ( struct ath_hal ah,
int  request,
const void *  args,
uint32_t  argsize,
void **  result,
uint32_t *  resultsize 
)

◆ ar5211GetInterrupts()

HAL_INT ar5211GetInterrupts ( struct ath_hal ah)

Definition at line 98 of file ar5211_interrupts.c.

References AH5211.

Referenced by ar5211UpdateTxTrigLevel().

Here is the caller graph for this function:

◆ ar5211GetKeyCacheSize()

u_int ar5211GetKeyCacheSize ( struct ath_hal ah)

Definition at line 40 of file ar5211_keycache.c.

References AR_KEYTABLE_SIZE.

◆ ar5211GetMacAddress()

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.

◆ ar5211GetMaxTurboRate()

uint32_t ar5211GetMaxTurboRate ( struct ath_hal )

◆ ar5211GetMibCycleCounts()

HAL_BOOL ar5211GetMibCycleCounts ( struct ath_hal ah,
HAL_SURVEY_SAMPLE hsample 
)

Definition at line 715 of file ar5211_misc.c.

References AH_FALSE.

◆ ar5211GetNav()

u_int ar5211GetNav ( struct ath_hal ah)

Definition at line 741 of file ar5211_misc.c.

References AR_NAV, and OS_REG_READ.

◆ ar5211GetNextTBTT()

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.

◆ ar5211GetNfAdjust()

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().

Here is the caller graph for this function:

◆ ar5211GetPendingInterrupts()

◆ ar5211GetPowerMode()

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.

◆ ar5211GetRandomSeed()

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.

◆ ar5211GetRateTable()

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.

Here is the call graph for this function:

◆ ar5211GetRfgain()

◆ ar5211GetRxDP()

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.

◆ ar5211GetRxFilter()

uint32_t ar5211GetRxFilter ( struct ath_hal ah)

Definition at line 160 of file ar5211_recv.c.

References AR_RX_FILTER, and OS_REG_READ.

◆ ar5211GetSifsTime()

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.

Here is the call graph for this function:

◆ ar5211GetSlotTime()

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.

Here is the call graph for this function:

◆ ar5211GetTransmitFilterIndex()

HAL_BOOL ar5211GetTransmitFilterIndex ( struct ath_hal ,
uint32_t   
)

◆ ar5211GetTsf32()

uint32_t ar5211GetTsf32 ( struct ath_hal ah)

Definition at line 358 of file ar5211_misc.c.

References AR_TSF_L32, and OS_REG_READ.

◆ ar5211GetTsf64()

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.

◆ ar5211GetTxCompletionRates()

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.

◆ ar5211GetTxDescLink()

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.

◆ ar5211GetTxDescLinkPtr()

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.

◆ ar5211GetTxDP()

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.

◆ ar5211GetTxIntrQueue()

void ar5211GetTxIntrQueue ( struct ath_hal ah,
uint32_t *  txqs 
)

Definition at line 665 of file ar5211_xmit.c.

◆ ar5211GetTxQueueProps()

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.

Here is the call graph for this function:

◆ ar5211GetWirelessModes()

u_int ar5211GetWirelessModes ( struct ath_hal ah)

◆ ar5211GpioCfgInput()

HAL_BOOL ar5211GpioCfgInput ( struct ath_hal ah,
uint32_t  gpio 
)

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().

Here is the caller graph for this function:

◆ ar5211GpioCfgOutput()

HAL_BOOL ar5211GpioCfgOutput ( struct ath_hal ah,
uint32_t  gpio,
HAL_GPIO_MUX_TYPE  type 
)

◆ ar5211GpioGet()

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().

Here is the caller graph for this function:

◆ ar5211GpioSet()

HAL_BOOL ar5211GpioSet ( struct ath_hal ah,
uint32_t  gpio,
uint32_t  val 
)

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.

◆ ar5211GpioSetIntr()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ar5211InitializeGainValues()

void ar5211InitializeGainValues ( struct ath_hal ah)

◆ ar5211IntrReqTxDesc()

void ar5211IntrReqTxDesc ( struct ath_hal ah,
struct ath_desc ds 
)

Definition at line 572 of file ar5211_xmit.c.

References AR5211DESC, AR_TxInterReq, and ar5211_desc::ds_ctl0.

◆ ar5211IsInterruptPending()

HAL_BOOL ar5211IsInterruptPending ( struct ath_hal ah)

Definition at line 36 of file ar5211_interrupts.c.

References AR_INTPEND, and OS_REG_READ.

◆ ar5211IsKeyCacheEntryValid()

HAL_BOOL ar5211IsKeyCacheEntryValid ( struct ath_hal ah,
uint16_t  entry 
)

◆ ar5211IsTxQueueStopped()

HAL_BOOL ar5211IsTxQueueStopped ( struct ath_hal ,
u_int   
)

◆ ar5211MibEvent()

void ar5211MibEvent ( struct ath_hal ah,
const HAL_NODE_STATS stats 
)

Definition at line 587 of file ar5211_misc.c.

◆ ar5211NumTxPending()

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().

Here is the caller graph for this function:

◆ ar5211PerCalibration()

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().

Here is the call graph for this function:

◆ ar5211PerCalibrationN()

HAL_BOOL ar5211PerCalibrationN ( struct ath_hal ah,
struct ieee80211_channel *  chan,
u_int  chainMask,
HAL_BOOL  longCal,
HAL_BOOL isCalDone 
)

◆ ar5211PhyDisable()

HAL_BOOL ar5211PhyDisable ( struct ath_hal ah)

Definition at line 563 of file ar5211_reset.c.

References ar5211SetResetReg(), and AR_RC_BB.

Here is the call graph for this function:

◆ ar5211ProcRxDesc()

◆ ar5211ProcTxDesc()

◆ ar5211ReleaseTxQueue()

◆ ar5211Reset()

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.

Here is the call graph for this function:

◆ ar5211ResetCalValid()

HAL_BOOL ar5211ResetCalValid ( struct ath_hal ah,
const struct ieee80211_channel *  chan 
)

Definition at line 743 of file ar5211_reset.c.

References AH_TRUE.

◆ ar5211ResetDma()

HAL_BOOL ar5211ResetDma ( struct ath_hal ,
HAL_OPMODE   
)

◆ ar5211ResetKeyCacheEntry()

◆ ar5211ResetStaBeaconTimers()

void ar5211ResetStaBeaconTimers ( struct ath_hal ah)

◆ ar5211ResetTsf()

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.

◆ ar5211ResetTxQueue()

HAL_BOOL ar5211ResetTxQueue ( struct ath_hal ah,
u_int  q 
)

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ar5211RxMonitor()

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.

◆ ar5211SetAckCTSRate()

HAL_BOOL ar5211SetAckCTSRate ( struct ath_hal ah,
u_int  high 
)

◆ ar5211SetAckTimeout()

HAL_BOOL ar5211SetAckTimeout ( struct ath_hal ah,
u_int  us 
)

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ar5211SetAntennaSwitch()

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().

Here is the call graph for this function:

◆ ar5211SetAntennaSwitchInternal()

HAL_BOOL ar5211SetAntennaSwitchInternal ( struct ath_hal ah,
HAL_ANT_SETTING  settings,
const struct ieee80211_channel *  chan 
)

◆ ar5211SetBeaconTimers()

void ar5211SetBeaconTimers ( struct ath_hal ah,
const HAL_BEACON_TIMERS bt 
)

◆ ar5211SetBssIdMask()

HAL_BOOL ar5211SetBssIdMask ( struct ath_hal ah,
const uint8_t *  mask 
)

Definition at line 61 of file ar5211_misc.c.

References AH_FALSE.

◆ ar5211SetCapability()

HAL_BOOL ar5211SetCapability ( struct ath_hal ah,
HAL_CAPABILITY_TYPE  type,
uint32_t  capability,
uint32_t  setting,
HAL_STATUS status 
)

◆ ar5211SetChainMasks()

void ar5211SetChainMasks ( struct ath_hal ah,
uint32_t  txchainmask,
uint32_t  rxchainmask 
)

Definition at line 722 of file ar5211_misc.c.

◆ ar5211SetCoverageClass()

void ar5211SetCoverageClass ( struct ath_hal ah,
uint8_t  coverageclass,
int  now 
)

Definition at line 555 of file ar5211_misc.c.

◆ ar5211SetCTSTimeout()

HAL_BOOL ar5211SetCTSTimeout ( struct ath_hal ah,
u_int  us 
)

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ar5211SetDecompMask()

HAL_BOOL ar5211SetDecompMask ( struct ath_hal ah,
uint16_t  keyidx,
int  en 
)

Definition at line 548 of file ar5211_misc.c.

References AH_TRUE.

◆ ar5211SetDefAntenna()

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.

◆ ar5211SetInterrupts()

◆ ar5211SetKeyCacheEntry()

◆ ar5211SetKeyCacheEntryMac()

HAL_BOOL ar5211SetKeyCacheEntryMac ( struct ath_hal ah,
uint16_t  entry,
const uint8_t *  mac 
)

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().

Here is the caller graph for this function:

◆ ar5211SetLedState()

◆ ar5211SetMacAddress()

HAL_BOOL ar5211SetMacAddress ( struct ath_hal ah,
const uint8_t *  mac 
)

Definition at line 44 of file ar5211_misc.c.

References AH5211, ath_hal_5211::ah_macaddr, AH_TRUE, IEEE80211_ADDR_LEN, and OS_MEMCPY.

◆ ar5211SetMulticastFilter()

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.

◆ ar5211SetMulticastFilterIndex()

HAL_BOOL ar5211SetMulticastFilterIndex ( struct ath_hal ah,
uint32_t  ix 
)

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.

◆ ar5211SetNav()

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.

◆ ar5211SetPCUConfig()

void ar5211SetPCUConfig ( struct ath_hal ah)

Definition at line 2119 of file ar5211_reset.c.

References AH_PRIVATE, and ar5211SetOperatingMode().

Here is the call graph for this function:

◆ ar5211SetPowerMode()

HAL_BOOL ar5211SetPowerMode ( struct ath_hal ,
uint32_t  powerRequest,
int  setChip 
)

Referenced by ar5211ChipReset(), and ar5211Disable().

Here is the caller graph for this function:

◆ ar5211SetQuiet()

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.

◆ ar5211SetRegulatoryDomain()

HAL_BOOL ar5211SetRegulatoryDomain ( struct ath_hal ah,
uint16_t  regDomain,
HAL_STATUS status 
)

◆ ar5211SetRxDP()

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.

◆ ar5211SetRxFilter()

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.

◆ ar5211SetSifsTime()

HAL_BOOL ar5211SetSifsTime ( struct ath_hal ah,
u_int  us 
)

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ar5211SetSlotTime()

HAL_BOOL ar5211SetSlotTime ( struct ath_hal ah,
u_int  us 
)

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ar5211SetStaBeaconTimers()

◆ ar5211SetTxDescLink()

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.

◆ ar5211SetTxDP()

HAL_BOOL ar5211SetTxDP ( struct ath_hal ah,
u_int  q,
uint32_t  txdp 
)

◆ ar5211SetTxPowerLimit()

HAL_BOOL ar5211SetTxPowerLimit ( struct ath_hal ah,
uint32_t  limit 
)

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().

Here is the caller graph for this function:

◆ ar5211SetTxQueueProps()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ar5211SetupRxDesc()

HAL_BOOL ar5211SetupRxDesc ( struct ath_hal ah,
struct ath_desc ds,
uint32_t  size,
u_int  flags 
)

◆ ar5211SetupTxDesc()

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 
)

◆ ar5211SetupTxQueue()

◆ ar5211SetupXTxDesc()

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.

◆ ar5211StartPcuReceive()

void ar5211StartPcuReceive ( struct ath_hal ah,
HAL_BOOL  is_scanning 
)

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.

◆ ar5211StartTxDma()

HAL_BOOL ar5211StartTxDma ( struct ath_hal ah,
u_int  q 
)

◆ ar5211StopDmaReceive()

HAL_BOOL ar5211StopDmaReceive ( struct ath_hal ah)

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.

Here is the call graph for this function:

◆ ar5211StopPcuReceive()

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.

◆ ar5211StopTxDma()

HAL_BOOL ar5211StopTxDma ( struct ath_hal ah,
u_int  q 
)

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.

Here is the call graph for this function:

◆ ar5211UpdateMibCounters()

◆ ar5211UpdateTxTrigLevel()

HAL_BOOL ar5211UpdateTxTrigLevel ( struct ath_hal ah,
HAL_BOOL  bIncTrigLevel 
)

◆ ar5211WriteAssocid()

void ar5211WriteAssocid ( struct ath_hal ah,
const uint8_t *  bssid,
uint16_t  assocId 
)