FreeBSD kernel ATH device code
if_athvar.h File Reference
#include <machine/atomic.h>
#include <dev/ath/ath_hal/ah.h>
#include <dev/ath/ath_hal/ah_desc.h>
#include <net80211/ieee80211_radiotap.h>
#include <dev/ath/if_athioctl.h>
#include <dev/ath/if_athrate.h>
Include dependency graph for if_athvar.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ath_tid
 
struct  ath_node
 
struct  ath_buf
 
struct  ath_descdma
 
struct  ath_txq
 
struct  ath_vap
 
struct  ath_rx_methods
 
struct  ath_rx_edma
 
struct  ath_tx_edma_fifo
 
struct  ath_tx_methods
 
struct  ath_softc
 

Macros

#define ATH_TIMEOUT   1000
 
#define ATH_MGMT_TXBUF   32
 
#define ATH_RXBUF   40 /* number of RX buffers */
 
#define ATH_TXBUF   200 /* number of TX buffers */
 
#define ATH_BCBUF   4 /* number of beacon buffers */
 
#define ATH_TXDESC   10 /* number of descriptors per buffer */
 
#define ATH_TXMAXTRY   11 /* max number of transmit attempts */
 
#define ATH_TXMGTTRY   4 /* xmit attempts for mgt/ctl frames */
 
#define ATH_TXINTR_PERIOD   5 /* max number of batched tx descriptors */
 
#define ATH_BEACON_AIFS_DEFAULT   1 /* default aifs for ap beacon q */
 
#define ATH_BEACON_CWMIN_DEFAULT   0 /* default cwmin for ap beacon q */
 
#define ATH_BEACON_CWMAX_DEFAULT   0 /* default cwmax for ap beacon q */
 
#define ATH_PCI_CUS198   0x0001
 
#define ATH_PCI_CUS230   0x0002
 
#define ATH_PCI_CUS217   0x0004
 
#define ATH_PCI_CUS252   0x0008
 
#define ATH_PCI_WOW   0x0010
 
#define ATH_PCI_BT_ANT_DIV   0x0020
 
#define ATH_PCI_D3_L1_WAR   0x0040
 
#define ATH_PCI_AR9565_1ANT   0x0080
 
#define ATH_PCI_AR9565_2ANT   0x0100
 
#define ATH_PCI_NO_PLL_PWRSAVE   0x0200
 
#define ATH_PCI_KILLER   0x0400
 
#define ATH_KEYMAX   128 /* max key cache size we handle */
 
#define ATH_KEYBYTES   (ATH_KEYMAX/NBBY) /* storage space in bytes */
 
#define ATH_TID_MAX_BUFS   (2 * IEEE80211_AGGR_BAWMAX)
 
#define ATH_NODE(ni)   ((struct ath_node *)(ni))
 
#define ATH_NODE_CONST(ni)   ((const struct ath_node *)(ni))
 
#define ATH_RSSI_LPF_LEN   10
 
#define ATH_RSSI_DUMMY_MARKER   0x127
 
#define ATH_EP_MUL(x, mul)   ((x) * (mul))
 
#define ATH_RSSI_IN(x)   (ATH_EP_MUL((x), HAL_RSSI_EP_MULTIPLIER))
 
#define ATH_LPF_RSSI(x, y, len)    ((x != ATH_RSSI_DUMMY_MARKER) ? (((x) * ((len) - 1) + (y)) / (len)) : (y))
 
#define ATH_RSSI_LPF(x, y)
 
#define ATH_EP_RND(x, mul)    ((((x)%(mul)) >= ((mul)/2)) ? ((x) + ((mul) - 1)) / (mul) : (x)/(mul))
 
#define ATH_RSSI(x)   ATH_EP_RND(x, HAL_RSSI_EP_MULTIPLIER)
 
#define ATH_MAX_SCATTER   ATH_TXDESC /* max(tx,rx,beacon) desc's */
 
#define ATH_BUF_MGMT   0x00000001 /* (tx) desc is a mgmt desc */
 
#define ATH_BUF_BUSY   0x00000002 /* (tx) desc owned by h/w */
 
#define ATH_BUF_FIFOEND   0x00000004
 
#define ATH_BUF_FIFOPTR   0x00000008
 
#define ATH_BUF_TOA_PROBE   0x00000010 /* ToD/ToA exchange probe */
 
#define ATH_BUF_FLAGS_CLONE   (ATH_BUF_MGMT | ATH_BUF_TOA_PROBE)
 
#define ATH_TXQ_SWQ   (HAL_NUM_TX_QUEUES+1) /* qnum for s/w only queue */
 
#define ATH_TXQ_PUTRUNNING   0x0002 /* ath_hal_puttxbuf has been called */
 
#define ATH_TXQ_LOCK_INIT(_sc, _tq)
 
#define ATH_TXQ_LOCK_DESTROY(_tq)   mtx_destroy(&(_tq)->axq_lock)
 
#define ATH_TXQ_LOCK(_tq)   mtx_lock(&(_tq)->axq_lock)
 
#define ATH_TXQ_UNLOCK(_tq)   mtx_unlock(&(_tq)->axq_lock)
 
#define ATH_TXQ_LOCK_ASSERT(_tq)   mtx_assert(&(_tq)->axq_lock, MA_OWNED)
 
#define ATH_TXQ_UNLOCK_ASSERT(_tq)
 
#define ATH_NODE_LOCK(_an)   mtx_lock(&(_an)->an_mtx)
 
#define ATH_NODE_UNLOCK(_an)   mtx_unlock(&(_an)->an_mtx)
 
#define ATH_NODE_LOCK_ASSERT(_an)   mtx_assert(&(_an)->an_mtx, MA_OWNED)
 
#define ATH_NODE_UNLOCK_ASSERT(_an)
 
#define ATH_TXQ_INSERT_HEAD(_tq, _elm, _field)
 
#define ATH_TXQ_INSERT_TAIL(_tq, _elm, _field)
 
#define ATH_TXQ_REMOVE(_tq, _elm, _field)
 
#define ATH_TXQ_FIRST(_tq)   TAILQ_FIRST(&(_tq)->axq_q)
 
#define ATH_TXQ_LAST(_tq, _field)   TAILQ_LAST(&(_tq)->axq_q, _field)
 
#define ATH_TID_INSERT_HEAD(_tq, _elm, _field)
 
#define ATH_TID_INSERT_TAIL(_tq, _elm, _field)
 
#define ATH_TID_REMOVE(_tq, _elm, _field)
 
#define ATH_TID_FIRST(_tq)   TAILQ_FIRST(&(_tq)->tid_q)
 
#define ATH_TID_LAST(_tq, _field)   TAILQ_LAST(&(_tq)->tid_q, _field)
 
#define ATH_TID_FILT_INSERT_HEAD(_tq, _elm, _field)
 
#define ATH_TID_FILT_INSERT_TAIL(_tq, _elm, _field)
 
#define ATH_TID_FILT_REMOVE(_tq, _elm, _field)
 
#define ATH_TID_FILT_FIRST(_tq)   TAILQ_FIRST(&(_tq)->filtq.tid_q)
 
#define ATH_TID_FILT_LAST(_tq, _field)   TAILQ_LAST(&(_tq)->filtq.tid_q,_field)
 
#define ATH_VAP(vap)   ((struct ath_vap *)(vap))
 
#define ATH_LOCK_INIT(_sc)
 
#define ATH_LOCK_DESTROY(_sc)   mtx_destroy(&(_sc)->sc_mtx)
 
#define ATH_LOCK(_sc)   mtx_lock(&(_sc)->sc_mtx)
 
#define ATH_UNLOCK(_sc)   mtx_unlock(&(_sc)->sc_mtx)
 
#define ATH_LOCK_ASSERT(_sc)   mtx_assert(&(_sc)->sc_mtx, MA_OWNED)
 
#define ATH_UNLOCK_ASSERT(_sc)   mtx_assert(&(_sc)->sc_mtx, MA_NOTOWNED)
 
#define ATH_TX_LOCK_INIT(_sc)
 
#define ATH_TX_LOCK_DESTROY(_sc)   mtx_destroy(&(_sc)->sc_tx_mtx)
 
#define ATH_TX_LOCK(_sc)   mtx_lock(&(_sc)->sc_tx_mtx)
 
#define ATH_TX_UNLOCK(_sc)   mtx_unlock(&(_sc)->sc_tx_mtx)
 
#define ATH_TX_LOCK_ASSERT(_sc)
 
#define ATH_TX_UNLOCK_ASSERT(_sc)
 
#define ATH_TX_TRYLOCK(_sc)
 
#define ATH_PCU_LOCK_INIT(_sc)
 
#define ATH_PCU_LOCK_DESTROY(_sc)   mtx_destroy(&(_sc)->sc_pcu_mtx)
 
#define ATH_PCU_LOCK(_sc)   mtx_lock(&(_sc)->sc_pcu_mtx)
 
#define ATH_PCU_UNLOCK(_sc)   mtx_unlock(&(_sc)->sc_pcu_mtx)
 
#define ATH_PCU_LOCK_ASSERT(_sc)
 
#define ATH_PCU_UNLOCK_ASSERT(_sc)
 
#define ATH_RX_LOCK_INIT(_sc)
 
#define ATH_RX_LOCK_DESTROY(_sc)   mtx_destroy(&(_sc)->sc_rx_mtx)
 
#define ATH_RX_LOCK(_sc)   mtx_lock(&(_sc)->sc_rx_mtx)
 
#define ATH_RX_UNLOCK(_sc)   mtx_unlock(&(_sc)->sc_rx_mtx)
 
#define ATH_RX_LOCK_ASSERT(_sc)
 
#define ATH_RX_UNLOCK_ASSERT(_sc)
 
#define ATH_TXQ_SETUP(sc, i)   ((sc)->sc_txqsetup & (1<<i))
 
#define ATH_TXBUF_LOCK_INIT(_sc)
 
#define ATH_TXBUF_LOCK_DESTROY(_sc)   mtx_destroy(&(_sc)->sc_txbuflock)
 
#define ATH_TXBUF_LOCK(_sc)   mtx_lock(&(_sc)->sc_txbuflock)
 
#define ATH_TXBUF_UNLOCK(_sc)   mtx_unlock(&(_sc)->sc_txbuflock)
 
#define ATH_TXBUF_LOCK_ASSERT(_sc)    mtx_assert(&(_sc)->sc_txbuflock, MA_OWNED)
 
#define ATH_TXBUF_UNLOCK_ASSERT(_sc)    mtx_assert(&(_sc)->sc_txbuflock, MA_NOTOWNED)
 
#define ATH_TXSTATUS_LOCK_INIT(_sc)
 
#define ATH_TXSTATUS_LOCK_DESTROY(_sc)   mtx_destroy(&(_sc)->sc_txcomplock)
 
#define ATH_TXSTATUS_LOCK(_sc)   mtx_lock(&(_sc)->sc_txcomplock)
 
#define ATH_TXSTATUS_UNLOCK(_sc)   mtx_unlock(&(_sc)->sc_txcomplock)
 
#define ATH_TXSTATUS_LOCK_ASSERT(_sc)    mtx_assert(&(_sc)->sc_txcomplock, MA_OWNED)
 
#define ath_hal_detach(_ah)    ((*(_ah)->ah_detach)((_ah)))
 
#define ath_hal_reset(_ah, _opmode, _chan, _fullreset, _resettype, _pstatus)
 
#define ath_hal_macversion(_ah)    (((_ah)->ah_macVersion << 4) | ((_ah)->ah_macRev))
 
#define ath_hal_getratetable(_ah, _mode)    ((*(_ah)->ah_getRateTable)((_ah), (_mode)))
 
#define ath_hal_getmac(_ah, _mac)    ((*(_ah)->ah_getMacAddress)((_ah), (_mac)))
 
#define ath_hal_setmac(_ah, _mac)    ((*(_ah)->ah_setMacAddress)((_ah), (_mac)))
 
#define ath_hal_getbssidmask(_ah, _mask)    ((*(_ah)->ah_getBssIdMask)((_ah), (_mask)))
 
#define ath_hal_setbssidmask(_ah, _mask)    ((*(_ah)->ah_setBssIdMask)((_ah), (_mask)))
 
#define ath_hal_intrset(_ah, _mask)    ((*(_ah)->ah_setInterrupts)((_ah), (_mask)))
 
#define ath_hal_intrget(_ah)    ((*(_ah)->ah_getInterrupts)((_ah)))
 
#define ath_hal_intrpend(_ah)    ((*(_ah)->ah_isInterruptPending)((_ah)))
 
#define ath_hal_getisr(_ah, _pmask)    ((*(_ah)->ah_getPendingInterrupts)((_ah), (_pmask)))
 
#define ath_hal_updatetxtriglevel(_ah, _inc)    ((*(_ah)->ah_updateTxTrigLevel)((_ah), (_inc)))
 
#define ath_hal_setpower(_ah, _mode)    ((*(_ah)->ah_setPowerMode)((_ah), (_mode), AH_TRUE))
 
#define ath_hal_setselfgenpower(_ah, _mode)    ((*(_ah)->ah_setPowerMode)((_ah), (_mode), AH_FALSE))
 
#define ath_hal_keycachesize(_ah)    ((*(_ah)->ah_getKeyCacheSize)((_ah)))
 
#define ath_hal_keyreset(_ah, _ix)    ((*(_ah)->ah_resetKeyCacheEntry)((_ah), (_ix)))
 
#define ath_hal_keyset(_ah, _ix, _pk, _mac)    ((*(_ah)->ah_setKeyCacheEntry)((_ah), (_ix), (_pk), (_mac), AH_FALSE))
 
#define ath_hal_keyisvalid(_ah, _ix)    (((*(_ah)->ah_isKeyCacheEntryValid)((_ah), (_ix))))
 
#define ath_hal_keysetmac(_ah, _ix, _mac)    ((*(_ah)->ah_setKeyCacheEntryMac)((_ah), (_ix), (_mac)))
 
#define ath_hal_getrxfilter(_ah)    ((*(_ah)->ah_getRxFilter)((_ah)))
 
#define ath_hal_setrxfilter(_ah, _filter)    ((*(_ah)->ah_setRxFilter)((_ah), (_filter)))
 
#define ath_hal_setmcastfilter(_ah, _mfilt0, _mfilt1)    ((*(_ah)->ah_setMulticastFilter)((_ah), (_mfilt0), (_mfilt1)))
 
#define ath_hal_waitforbeacon(_ah, _bf)    ((*(_ah)->ah_waitForBeaconDone)((_ah), (_bf)->bf_daddr))
 
#define ath_hal_putrxbuf(_ah, _bufaddr, _rxq)    ((*(_ah)->ah_setRxDP)((_ah), (_bufaddr), (_rxq)))
 
#define AR_TSF_L32   0x804c /* MAC local clock lower 32 bits */
 
#define ath_hal_gettsf32(_ah)    OS_REG_READ(_ah, AR_TSF_L32)
 
#define ath_hal_gettsf64(_ah)    ((*(_ah)->ah_getTsf64)((_ah)))
 
#define ath_hal_settsf64(_ah, _val)    ((*(_ah)->ah_setTsf64)((_ah), (_val)))
 
#define ath_hal_resettsf(_ah)    ((*(_ah)->ah_resetTsf)((_ah)))
 
#define ath_hal_rxena(_ah)    ((*(_ah)->ah_enableReceive)((_ah)))
 
#define ath_hal_puttxbuf(_ah, _q, _bufaddr)    ((*(_ah)->ah_setTxDP)((_ah), (_q), (_bufaddr)))
 
#define ath_hal_gettxbuf(_ah, _q)    ((*(_ah)->ah_getTxDP)((_ah), (_q)))
 
#define ath_hal_numtxpending(_ah, _q)    ((*(_ah)->ah_numTxPending)((_ah), (_q)))
 
#define ath_hal_getrxbuf(_ah, _rxq)    ((*(_ah)->ah_getRxDP)((_ah), (_rxq)))
 
#define ath_hal_txstart(_ah, _q)    ((*(_ah)->ah_startTxDma)((_ah), (_q)))
 
#define ath_hal_setchannel(_ah, _chan)    ((*(_ah)->ah_setChannel)((_ah), (_chan)))
 
#define ath_hal_calibrate(_ah, _chan, _iqcal)    ((*(_ah)->ah_perCalibration)((_ah), (_chan), (_iqcal)))
 
#define ath_hal_calibrateN(_ah, _chan, _lcal, _isdone)    ((*(_ah)->ah_perCalibrationN)((_ah), (_chan), 0x1, (_lcal), (_isdone)))
 
#define ath_hal_calreset(_ah, _chan)    ((*(_ah)->ah_resetCalValid)((_ah), (_chan)))
 
#define ath_hal_setledstate(_ah, _state)    ((*(_ah)->ah_setLedState)((_ah), (_state)))
 
#define ath_hal_beaconinit(_ah, _nextb, _bperiod)    ((*(_ah)->ah_beaconInit)((_ah), (_nextb), (_bperiod)))
 
#define ath_hal_beaconreset(_ah)    ((*(_ah)->ah_resetStationBeaconTimers)((_ah)))
 
#define ath_hal_beaconsettimers(_ah, _bt)    ((*(_ah)->ah_setBeaconTimers)((_ah), (_bt)))
 
#define ath_hal_beacontimers(_ah, _bs)    ((*(_ah)->ah_setStationBeaconTimers)((_ah), (_bs)))
 
#define ath_hal_getnexttbtt(_ah)    ((*(_ah)->ah_getNextTBTT)((_ah)))
 
#define ath_hal_setassocid(_ah, _bss, _associd)    ((*(_ah)->ah_writeAssocid)((_ah), (_bss), (_associd)))
 
#define ath_hal_phydisable(_ah)    ((*(_ah)->ah_phyDisable)((_ah)))
 
#define ath_hal_setopmode(_ah)    ((*(_ah)->ah_setPCUConfig)((_ah)))
 
#define ath_hal_stoptxdma(_ah, _qnum)    ((*(_ah)->ah_stopTxDma)((_ah), (_qnum)))
 
#define ath_hal_stoppcurecv(_ah)    ((*(_ah)->ah_stopPcuReceive)((_ah)))
 
#define ath_hal_startpcurecv(_ah, _is_scanning)    ((*(_ah)->ah_startPcuReceive)((_ah), (_is_scanning)))
 
#define ath_hal_stopdmarecv(_ah)    ((*(_ah)->ah_stopDmaReceive)((_ah)))
 
#define ath_hal_getdiagstate(_ah, _id, _indata, _insize, _outdata, _outsize)
 
#define ath_hal_getfatalstate(_ah, _outdata, _outsize)    ath_hal_getdiagstate(_ah, 29, NULL, 0, (_outdata), _outsize)
 
#define ath_hal_setuptxqueue(_ah, _type, _irq)    ((*(_ah)->ah_setupTxQueue)((_ah), (_type), (_irq)))
 
#define ath_hal_resettxqueue(_ah, _q)    ((*(_ah)->ah_resetTxQueue)((_ah), (_q)))
 
#define ath_hal_releasetxqueue(_ah, _q)    ((*(_ah)->ah_releaseTxQueue)((_ah), (_q)))
 
#define ath_hal_gettxqueueprops(_ah, _q, _qi)    ((*(_ah)->ah_getTxQueueProps)((_ah), (_q), (_qi)))
 
#define ath_hal_settxqueueprops(_ah, _q, _qi)    ((*(_ah)->ah_setTxQueueProps)((_ah), (_q), (_qi)))
 
#define AR_Q_TXE   0x0840 /* MAC Transmit Queue enable */
 
#define ath_hal_txqenabled(_ah, _qnum)    (OS_REG_READ(_ah, AR_Q_TXE) & (1<<(_qnum)))
 
#define ath_hal_getrfgain(_ah)    ((*(_ah)->ah_getRfGain)((_ah)))
 
#define ath_hal_getdefantenna(_ah)    ((*(_ah)->ah_getDefAntenna)((_ah)))
 
#define ath_hal_setdefantenna(_ah, _ant)    ((*(_ah)->ah_setDefAntenna)((_ah), (_ant)))
 
#define ath_hal_rxmonitor(_ah, _arg, _chan)    ((*(_ah)->ah_rxMonitor)((_ah), (_arg), (_chan)))
 
#define ath_hal_ani_poll(_ah, _chan)    ((*(_ah)->ah_aniPoll)((_ah), (_chan)))
 
#define ath_hal_mibevent(_ah, _stats)    ((*(_ah)->ah_procMibEvent)((_ah), (_stats)))
 
#define ath_hal_setslottime(_ah, _us)    ((*(_ah)->ah_setSlotTime)((_ah), (_us)))
 
#define ath_hal_getslottime(_ah)    ((*(_ah)->ah_getSlotTime)((_ah)))
 
#define ath_hal_setacktimeout(_ah, _us)    ((*(_ah)->ah_setAckTimeout)((_ah), (_us)))
 
#define ath_hal_getacktimeout(_ah)    ((*(_ah)->ah_getAckTimeout)((_ah)))
 
#define ath_hal_setctstimeout(_ah, _us)    ((*(_ah)->ah_setCTSTimeout)((_ah), (_us)))
 
#define ath_hal_getctstimeout(_ah)    ((*(_ah)->ah_getCTSTimeout)((_ah)))
 
#define ath_hal_getcapability(_ah, _cap, _param, _result)    ((*(_ah)->ah_getCapability)((_ah), (_cap), (_param), (_result)))
 
#define ath_hal_setcapability(_ah, _cap, _param, _v, _status)    ((*(_ah)->ah_setCapability)((_ah), (_cap), (_param), (_v), (_status)))
 
#define ath_hal_ciphersupported(_ah, _cipher)    (ath_hal_getcapability(_ah, HAL_CAP_CIPHER, _cipher, NULL) == HAL_OK)
 
#define ath_hal_getregdomain(_ah, _prd)    (ath_hal_getcapability(_ah, HAL_CAP_REG_DMN, 0, (_prd)) == HAL_OK)
 
#define ath_hal_setregdomain(_ah, _rd)    ath_hal_setcapability(_ah, HAL_CAP_REG_DMN, 0, _rd, NULL)
 
#define ath_hal_getcountrycode(_ah, _pcc)    (*(_pcc) = (_ah)->ah_countryCode)
 
#define ath_hal_gettkipmic(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_TKIP_MIC, 1, NULL) == HAL_OK)
 
#define ath_hal_settkipmic(_ah, _v)    ath_hal_setcapability(_ah, HAL_CAP_TKIP_MIC, 1, _v, NULL)
 
#define ath_hal_hastkipsplit(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_TKIP_SPLIT, 0, NULL) == HAL_OK)
 
#define ath_hal_gettkipsplit(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_TKIP_SPLIT, 1, NULL) == HAL_OK)
 
#define ath_hal_settkipsplit(_ah, _v)    ath_hal_setcapability(_ah, HAL_CAP_TKIP_SPLIT, 1, _v, NULL)
 
#define ath_hal_haswmetkipmic(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_WME_TKIPMIC, 0, NULL) == HAL_OK)
 
#define ath_hal_hwphycounters(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_PHYCOUNTERS, 0, NULL) == HAL_OK)
 
#define ath_hal_hasdiversity(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_DIVERSITY, 0, NULL) == HAL_OK)
 
#define ath_hal_getdiversity(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_DIVERSITY, 1, NULL) == HAL_OK)
 
#define ath_hal_setdiversity(_ah, _v)    ath_hal_setcapability(_ah, HAL_CAP_DIVERSITY, 1, _v, NULL)
 
#define ath_hal_getantennaswitch(_ah)    ((*(_ah)->ah_getAntennaSwitch)((_ah)))
 
#define ath_hal_setantennaswitch(_ah, _v)    ((*(_ah)->ah_setAntennaSwitch)((_ah), (_v)))
 
#define ath_hal_getdiag(_ah, _pv)    (ath_hal_getcapability(_ah, HAL_CAP_DIAG, 0, _pv) == HAL_OK)
 
#define ath_hal_setdiag(_ah, _v)    ath_hal_setcapability(_ah, HAL_CAP_DIAG, 0, _v, NULL)
 
#define ath_hal_getnumtxqueues(_ah, _pv)    (ath_hal_getcapability(_ah, HAL_CAP_NUM_TXQUEUES, 0, _pv) == HAL_OK)
 
#define ath_hal_hasveol(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_VEOL, 0, NULL) == HAL_OK)
 
#define ath_hal_hastxpowlimit(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_TXPOW, 0, NULL) == HAL_OK)
 
#define ath_hal_settxpowlimit(_ah, _pow)    ((*(_ah)->ah_setTxPowerLimit)((_ah), (_pow)))
 
#define ath_hal_gettxpowlimit(_ah, _ppow)    (ath_hal_getcapability(_ah, HAL_CAP_TXPOW, 1, _ppow) == HAL_OK)
 
#define ath_hal_getmaxtxpow(_ah, _ppow)    (ath_hal_getcapability(_ah, HAL_CAP_TXPOW, 2, _ppow) == HAL_OK)
 
#define ath_hal_gettpscale(_ah, _scale)    (ath_hal_getcapability(_ah, HAL_CAP_TXPOW, 3, _scale) == HAL_OK)
 
#define ath_hal_settpscale(_ah, _v)    ath_hal_setcapability(_ah, HAL_CAP_TXPOW, 3, _v, NULL)
 
#define ath_hal_hastpc(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_TPC, 0, NULL) == HAL_OK)
 
#define ath_hal_gettpc(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_TPC, 1, NULL) == HAL_OK)
 
#define ath_hal_settpc(_ah, _v)    ath_hal_setcapability(_ah, HAL_CAP_TPC, 1, _v, NULL)
 
#define ath_hal_hasbursting(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_BURST, 0, NULL) == HAL_OK)
 
#define ath_hal_setmcastkeysearch(_ah, _v)    ath_hal_setcapability(_ah, HAL_CAP_MCAST_KEYSRCH, 0, _v, NULL)
 
#define ath_hal_hasmcastkeysearch(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_MCAST_KEYSRCH, 0, NULL) == HAL_OK)
 
#define ath_hal_getmcastkeysearch(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_MCAST_KEYSRCH, 1, NULL) == HAL_OK)
 
#define ath_hal_hasfastframes(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_FASTFRAME, 0, NULL) == HAL_OK)
 
#define ath_hal_hasbssidmask(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_BSSIDMASK, 0, NULL) == HAL_OK)
 
#define ath_hal_hasbssidmatch(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_BSSIDMATCH, 0, NULL) == HAL_OK)
 
#define ath_hal_hastsfadjust(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_TSF_ADJUST, 0, NULL) == HAL_OK)
 
#define ath_hal_gettsfadjust(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_TSF_ADJUST, 1, NULL) == HAL_OK)
 
#define ath_hal_settsfadjust(_ah, _onoff)    ath_hal_setcapability(_ah, HAL_CAP_TSF_ADJUST, 1, _onoff, NULL)
 
#define ath_hal_hasrfsilent(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_RFSILENT, 0, NULL) == HAL_OK)
 
#define ath_hal_getrfkill(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_RFSILENT, 1, NULL) == HAL_OK)
 
#define ath_hal_setrfkill(_ah, _onoff)    ath_hal_setcapability(_ah, HAL_CAP_RFSILENT, 1, _onoff, NULL)
 
#define ath_hal_getrfsilent(_ah, _prfsilent)    (ath_hal_getcapability(_ah, HAL_CAP_RFSILENT, 2, _prfsilent) == HAL_OK)
 
#define ath_hal_setrfsilent(_ah, _rfsilent)    ath_hal_setcapability(_ah, HAL_CAP_RFSILENT, 2, _rfsilent, NULL)
 
#define ath_hal_gettpack(_ah, _ptpack)    (ath_hal_getcapability(_ah, HAL_CAP_TPC_ACK, 0, _ptpack) == HAL_OK)
 
#define ath_hal_settpack(_ah, _tpack)    ath_hal_setcapability(_ah, HAL_CAP_TPC_ACK, 0, _tpack, NULL)
 
#define ath_hal_gettpcts(_ah, _ptpcts)    (ath_hal_getcapability(_ah, HAL_CAP_TPC_CTS, 0, _ptpcts) == HAL_OK)
 
#define ath_hal_settpcts(_ah, _tpcts)    ath_hal_setcapability(_ah, HAL_CAP_TPC_CTS, 0, _tpcts, NULL)
 
#define ath_hal_hasintmit(_ah)
 
#define ath_hal_getintmit(_ah)
 
#define ath_hal_setintmit(_ah, _v)
 
#define ath_hal_hasmybeacon(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_DO_MYBEACON, 1, NULL) == HAL_OK)
 
#define ath_hal_hasenforcetxop(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_ENFORCE_TXOP, 0, NULL) == HAL_OK)
 
#define ath_hal_getenforcetxop(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_ENFORCE_TXOP, 1, NULL) == HAL_OK)
 
#define ath_hal_setenforcetxop(_ah, _v)    ath_hal_setcapability(_ah, HAL_CAP_ENFORCE_TXOP, 1, _v, NULL)
 
#define ath_hal_hasrxlnamixer(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_RX_LNA_MIXING, 0, NULL) == HAL_OK)
 
#define ath_hal_hasdivantcomb(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_ANT_DIV_COMB, 0, NULL) == HAL_OK)
 
#define ath_hal_hasldpc(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_LDPC, 0, NULL) == HAL_OK)
 
#define ath_hal_hasldpcwar(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_LDPCWAR, 0, NULL) == HAL_OK)
 
#define ath_hal_hasedma(_ah)
 
#define ath_hal_getrxfifodepth(_ah, _qtype, _req)
 
#define ath_hal_getntxmaps(_ah, _req)
 
#define ath_hal_gettxdesclen(_ah, _req)
 
#define ath_hal_gettxstatuslen(_ah, _req)
 
#define ath_hal_getrxstatuslen(_ah, _req)
 
#define ath_hal_setrxbufsize(_ah, _req)
 
#define ath_hal_getchannoise(_ah, _c)    ((*(_ah)->ah_getChanNoise)((_ah), (_c)))
 
#define ath_hal_getrxchainmask(_ah, _prxchainmask)    (ath_hal_getcapability(_ah, HAL_CAP_RX_CHAINMASK, 0, _prxchainmask))
 
#define ath_hal_gettxchainmask(_ah, _ptxchainmask)    (ath_hal_getcapability(_ah, HAL_CAP_TX_CHAINMASK, 0, _ptxchainmask))
 
#define ath_hal_setrxchainmask(_ah, _rx)    (ath_hal_setcapability(_ah, HAL_CAP_RX_CHAINMASK, 1, _rx, NULL))
 
#define ath_hal_settxchainmask(_ah, _tx)    (ath_hal_setcapability(_ah, HAL_CAP_TX_CHAINMASK, 1, _tx, NULL))
 
#define ath_hal_split4ktrans(_ah)
 
#define ath_hal_self_linked_final_rxdesc(_ah)
 
#define ath_hal_gtxto_supported(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_GTXTO, 0, NULL) == HAL_OK)
 
#define ath_hal_get_rx_tsf_prec(_ah, _pr)
 
#define ath_hal_get_tx_tsf_prec(_ah, _pr)
 
#define ath_hal_setuprxdesc(_ah, _ds, _size, _intreq)    ((*(_ah)->ah_setupRxDesc)((_ah), (_ds), (_size), (_intreq)))
 
#define ath_hal_rxprocdesc(_ah, _ds, _dspa, _dsnext, _rs)    ((*(_ah)->ah_procRxDesc)((_ah), (_ds), (_dspa), (_dsnext), 0, (_rs)))
 
#define ath_hal_setuptxdesc(_ah, _ds, _plen, _hlen, _atype, _txpow, _txr0, _txtr0, _keyix, _ant, _flags, _rtsrate, _rtsdura)
 
#define ath_hal_setupxtxdesc(_ah, _ds, _txr1, _txtr1, _txr2, _txtr2, _txr3, _txtr3)
 
#define ath_hal_filltxdesc(_ah, _ds, _b, _l, _did, _qid, _first, _last, _ds0)
 
#define ath_hal_txprocdesc(_ah, _ds, _ts)    ((*(_ah)->ah_procTxDesc)((_ah), (_ds), (_ts)))
 
#define ath_hal_gettxintrtxqs(_ah, _txqs)    ((*(_ah)->ah_getTxIntrQueue)((_ah), (_txqs)))
 
#define ath_hal_gettxcompletionrates(_ah, _ds, _rates, _tries)    ((*(_ah)->ah_getTxCompletionRates)((_ah), (_ds), (_rates), (_tries)))
 
#define ath_hal_settxdesclink(_ah, _ds, _link)    ((*(_ah)->ah_setTxDescLink)((_ah), (_ds), (_link)))
 
#define ath_hal_gettxdesclink(_ah, _ds, _link)    ((*(_ah)->ah_getTxDescLink)((_ah), (_ds), (_link)))
 
#define ath_hal_gettxdesclinkptr(_ah, _ds, _linkptr)    ((*(_ah)->ah_getTxDescLinkPtr)((_ah), (_ds), (_linkptr)))
 
#define ath_hal_setuptxstatusring(_ah, _tsstart, _tspstart, _size)
 
#define ath_hal_gettxrawtxdesc(_ah, _txstatus)    ((*(_ah)->ah_getTxRawTxDesc)((_ah), (_txstatus)))
 
#define ath_hal_setupfirsttxdesc(_ah, _ds, _aggrlen, _flags, _txpower, _txr0, _txtr0, _antm, _rcr, _rcd)
 
#define ath_hal_chaintxdesc(_ah, _ds, _bl, _sl, _pktlen, _hdrlen, _type, _keyix, _cipher, _delims, _first, _last, _lastaggr)
 
#define ath_hal_setuplasttxdesc(_ah, _ds, _ds0)    ((*(_ah)->ah_setupLastTxDesc)((_ah), (_ds), (_ds0)))
 
#define ath_hal_set11nratescenario(_ah, _ds, _dur, _rt, _series, _ns, _flags)
 
#define ath_hal_set11n_aggr_first(_ah, _ds, _len, _num)    ((*(_ah)->ah_set11nAggrFirst)((_ah), (_ds), (_len), (_num)))
 
#define ath_hal_set11n_aggr_middle(_ah, _ds, _num)    ((*(_ah)->ah_set11nAggrMiddle)((_ah), (_ds), (_num)))
 
#define ath_hal_set11n_aggr_last(_ah, _ds)    ((*(_ah)->ah_set11nAggrLast)((_ah), (_ds)))
 
#define ath_hal_set11nburstduration(_ah, _ds, _dur)    ((*(_ah)->ah_set11nBurstDuration)((_ah), (_ds), (_dur)))
 
#define ath_hal_clr11n_aggr(_ah, _ds)    ((*(_ah)->ah_clr11nAggr)((_ah), (_ds)))
 
#define ath_hal_set11n_virtmorefrag(_ah, _ds, _v)    ((*(_ah)->ah_set11nVirtMoreFrag)((_ah), (_ds), (_v)))
 
#define ath_hal_gpioCfgOutput(_ah, _gpio, _type)    ((*(_ah)->ah_gpioCfgOutput)((_ah), (_gpio), (_type)))
 
#define ath_hal_gpioset(_ah, _gpio, _b)    ((*(_ah)->ah_gpioSet)((_ah), (_gpio), (_b)))
 
#define ath_hal_gpioget(_ah, _gpio)    ((*(_ah)->ah_gpioGet)((_ah), (_gpio)))
 
#define ath_hal_gpiosetintr(_ah, _gpio, _b)    ((*(_ah)->ah_gpioSetIntr)((_ah), (_gpio), (_b)))
 
#define ath_hal_enablepcie(_ah, _restore, _poweroff)    ((*(_ah)->ah_configPCIE)((_ah), (_restore), (_poweroff)))
 
#define ath_hal_disablepcie(_ah)    ((*(_ah)->ah_disablePCIE)((_ah)))
 
#define ath_hal_enabledfs(_ah, _param)    ((*(_ah)->ah_enableDfs)((_ah), (_param)))
 
#define ath_hal_getdfsthresh(_ah, _param)    ((*(_ah)->ah_getDfsThresh)((_ah), (_param)))
 
#define ath_hal_getdfsdefaultthresh(_ah, _param)    ((*(_ah)->ah_getDfsDefaultThresh)((_ah), (_param)))
 
#define ath_hal_procradarevent(_ah, _rxs, _fulltsf, _buf, _event)
 
#define ath_hal_is_fast_clock_enabled(_ah)    ((*(_ah)->ah_isFastClockEnabled)((_ah)))
 
#define ath_hal_radar_wait(_ah, _chan)    ((*(_ah)->ah_radarWait)((_ah), (_chan)))
 
#define ath_hal_get_mib_cycle_counts(_ah, _sample)    ((*(_ah)->ah_getMibCycleCounts)((_ah), (_sample)))
 
#define ath_hal_get_chan_ext_busy(_ah)    ((*(_ah)->ah_get11nExtBusy)((_ah)))
 
#define ath_hal_setchainmasks(_ah, _txchainmask, _rxchainmask)    ((*(_ah)->ah_setChainMasks)((_ah), (_txchainmask), (_rxchainmask)))
 
#define ath_hal_set_quiet(_ah, _p, _d, _o, _f)    ((*(_ah)->ah_setQuiet)((_ah), (_p), (_d), (_o), (_f)))
 
#define ath_hal_getnav(_ah)    ((*(_ah)->ah_getNav)((_ah)))
 
#define ath_hal_setnav(_ah, _val)    ((*(_ah)->ah_setNav)((_ah), (_val)))
 
#define ath_hal_spectral_supported(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_SPECTRAL_SCAN, 0, NULL) == HAL_OK)
 
#define ath_hal_spectral_get_config(_ah, _p)    ((*(_ah)->ah_spectralGetConfig)((_ah), (_p)))
 
#define ath_hal_spectral_configure(_ah, _p)    ((*(_ah)->ah_spectralConfigure)((_ah), (_p)))
 
#define ath_hal_spectral_start(_ah)    ((*(_ah)->ah_spectralStart)((_ah)))
 
#define ath_hal_spectral_stop(_ah)    ((*(_ah)->ah_spectralStop)((_ah)))
 
#define ath_hal_btcoex_supported(_ah)    (ath_hal_getcapability(_ah, HAL_CAP_BT_COEX, 0, NULL) == HAL_OK)
 
#define ath_hal_btcoex_set_info(_ah, _info)    ((*(_ah)->ah_btCoexSetInfo)((_ah), (_info)))
 
#define ath_hal_btcoex_set_config(_ah, _cfg)    ((*(_ah)->ah_btCoexSetConfig)((_ah), (_cfg)))
 
#define ath_hal_btcoex_set_qcu_thresh(_ah, _qcuid)    ((*(_ah)->ah_btCoexSetQcuThresh)((_ah), (_qcuid)))
 
#define ath_hal_btcoex_set_weights(_ah, _weight)    ((*(_ah)->ah_btCoexSetWeights)((_ah), (_weight)))
 
#define ath_hal_btcoex_set_bmiss_thresh(_ah, _thr)    ((*(_ah)->ah_btCoexSetBmissThresh)((_ah), (_thr)))
 
#define ath_hal_btcoex_set_parameter(_ah, _attrib, _val)    ((*(_ah)->ah_btCoexSetParameter)((_ah), (_attrib), (_val)))
 
#define ath_hal_btcoex_enable(_ah)    ((*(_ah)->ah_btCoexEnable)((_ah)))
 
#define ath_hal_btcoex_disable(_ah)    ((*(_ah)->ah_btCoexDisable)((_ah)))
 
#define ath_hal_btcoex_mci_setup(_ah, _gp, _gb, _gl, _sp)    ((*(_ah)->ah_btMciSetup)((_ah), (_gp), (_gb), (_gl), (_sp)))
 
#define ath_hal_btcoex_mci_send_message(_ah, _h, _f, _p, _l, _wd, _cbt)    ((*(_ah)->ah_btMciSendMessage)((_ah), (_h), (_f), (_p), (_l), (_wd), (_cbt)))
 
#define ath_hal_btcoex_mci_get_interrupt(_ah, _mi, _mm)    ((*(_ah)->ah_btMciGetInterrupt)((_ah), (_mi), (_mm)))
 
#define ath_hal_btcoex_mci_state(_ah, _st, _pd)    ((*(_ah)->ah_btMciState)((_ah), (_st), (_pd)))
 
#define ath_hal_btcoex_mci_detach(_ah)    ((*(_ah)->ah_btMciDetach)((_ah)))
 
#define ath_hal_div_comb_conf_get(_ah, _conf)    ((*(_ah)->ah_divLnaConfGet)((_ah), (_conf)))
 
#define ath_hal_div_comb_conf_set(_ah, _conf)    ((*(_ah)->ah_divLnaConfSet)((_ah), (_conf)))
 

Enumerations

enum  ath_buf_type_t { ATH_BUFTYPE_NORMAL = 0 , ATH_BUFTYPE_MGMT = 1 }
 
enum  ATH_RESET_TYPE { ATH_RESET_DEFAULT = 0 , ATH_RESET_NOLOSS = 1 , ATH_RESET_FULL = 2 }
 

Functions

typedef TAILQ_HEAD (ath_bufhead_s, ath_buf) ath_bufhead
 
int ath_attach (u_int16_t, struct ath_softc *)
 
int ath_detach (struct ath_softc *)
 
void ath_resume (struct ath_softc *)
 
void ath_suspend (struct ath_softc *)
 
void ath_shutdown (struct ath_softc *)
 
void ath_intr (void *)
 

Macro Definition Documentation

◆ AR_Q_TXE

#define AR_Q_TXE   0x0840 /* MAC Transmit Queue enable */

Definition at line 1181 of file if_athvar.h.

◆ AR_TSF_L32

#define AR_TSF_L32   0x804c /* MAC local clock lower 32 bits */

Definition at line 1110 of file if_athvar.h.

◆ ATH_BCBUF

#define ATH_BCBUF   4 /* number of beacon buffers */

Definition at line 75 of file if_athvar.h.

◆ ATH_BEACON_AIFS_DEFAULT

#define ATH_BEACON_AIFS_DEFAULT   1 /* default aifs for ap beacon q */

Definition at line 82 of file if_athvar.h.

◆ ATH_BEACON_CWMAX_DEFAULT

#define ATH_BEACON_CWMAX_DEFAULT   0 /* default cwmax for ap beacon q */

Definition at line 84 of file if_athvar.h.

◆ ATH_BEACON_CWMIN_DEFAULT

#define ATH_BEACON_CWMIN_DEFAULT   0 /* default cwmin for ap beacon q */

Definition at line 83 of file if_athvar.h.

◆ ATH_BUF_BUSY

#define ATH_BUF_BUSY   0x00000002 /* (tx) desc owned by h/w */

Definition at line 318 of file if_athvar.h.

◆ ATH_BUF_FIFOEND

#define ATH_BUF_FIFOEND   0x00000004

Definition at line 319 of file if_athvar.h.

◆ ATH_BUF_FIFOPTR

#define ATH_BUF_FIFOPTR   0x00000008

Definition at line 320 of file if_athvar.h.

◆ ATH_BUF_FLAGS_CLONE

#define ATH_BUF_FLAGS_CLONE   (ATH_BUF_MGMT | ATH_BUF_TOA_PROBE)

Definition at line 323 of file if_athvar.h.

◆ ATH_BUF_MGMT

#define ATH_BUF_MGMT   0x00000001 /* (tx) desc is a mgmt desc */

Definition at line 317 of file if_athvar.h.

◆ ATH_BUF_TOA_PROBE

#define ATH_BUF_TOA_PROBE   0x00000010 /* ToD/ToA exchange probe */

Definition at line 321 of file if_athvar.h.

◆ ATH_EP_MUL

#define ATH_EP_MUL (   x,
  mul 
)    ((x) * (mul))

Definition at line 215 of file if_athvar.h.

◆ ATH_EP_RND

#define ATH_EP_RND (   x,
  mul 
)     ((((x)%(mul)) >= ((mul)/2)) ? ((x) + ((mul) - 1)) / (mul) : (x)/(mul))

Definition at line 223 of file if_athvar.h.

◆ ath_hal_ani_poll

#define ath_hal_ani_poll (   _ah,
  _chan 
)     ((*(_ah)->ah_aniPoll)((_ah), (_chan)))

Definition at line 1192 of file if_athvar.h.

◆ ath_hal_beaconinit

#define ath_hal_beaconinit (   _ah,
  _nextb,
  _bperiod 
)     ((*(_ah)->ah_beaconInit)((_ah), (_nextb), (_bperiod)))

Definition at line 1141 of file if_athvar.h.

◆ ath_hal_beaconreset

#define ath_hal_beaconreset (   _ah)     ((*(_ah)->ah_resetStationBeaconTimers)((_ah)))

Definition at line 1143 of file if_athvar.h.

◆ ath_hal_beaconsettimers

#define ath_hal_beaconsettimers (   _ah,
  _bt 
)     ((*(_ah)->ah_setBeaconTimers)((_ah), (_bt)))

Definition at line 1145 of file if_athvar.h.

◆ ath_hal_beacontimers

#define ath_hal_beacontimers (   _ah,
  _bs 
)     ((*(_ah)->ah_setStationBeaconTimers)((_ah), (_bs)))

Definition at line 1147 of file if_athvar.h.

◆ ath_hal_btcoex_disable

#define ath_hal_btcoex_disable (   _ah)     ((*(_ah)->ah_btCoexDisable)((_ah)))

Definition at line 1527 of file if_athvar.h.

◆ ath_hal_btcoex_enable

#define ath_hal_btcoex_enable (   _ah)     ((*(_ah)->ah_btCoexEnable)((_ah)))

Definition at line 1525 of file if_athvar.h.

◆ ath_hal_btcoex_mci_detach

#define ath_hal_btcoex_mci_detach (   _ah)     ((*(_ah)->ah_btMciDetach)((_ah)))

Definition at line 1538 of file if_athvar.h.

◆ ath_hal_btcoex_mci_get_interrupt

#define ath_hal_btcoex_mci_get_interrupt (   _ah,
  _mi,
  _mm 
)     ((*(_ah)->ah_btMciGetInterrupt)((_ah), (_mi), (_mm)))

Definition at line 1534 of file if_athvar.h.

◆ ath_hal_btcoex_mci_send_message

#define ath_hal_btcoex_mci_send_message (   _ah,
  _h,
  _f,
  _p,
  _l,
  _wd,
  _cbt 
)     ((*(_ah)->ah_btMciSendMessage)((_ah), (_h), (_f), (_p), (_l), (_wd), (_cbt)))

Definition at line 1532 of file if_athvar.h.

◆ ath_hal_btcoex_mci_setup

#define ath_hal_btcoex_mci_setup (   _ah,
  _gp,
  _gb,
  _gl,
  _sp 
)     ((*(_ah)->ah_btMciSetup)((_ah), (_gp), (_gb), (_gl), (_sp)))

Definition at line 1530 of file if_athvar.h.

◆ ath_hal_btcoex_mci_state

#define ath_hal_btcoex_mci_state (   _ah,
  _st,
  _pd 
)     ((*(_ah)->ah_btMciState)((_ah), (_st), (_pd)))

Definition at line 1536 of file if_athvar.h.

◆ ath_hal_btcoex_set_bmiss_thresh

#define ath_hal_btcoex_set_bmiss_thresh (   _ah,
  _thr 
)     ((*(_ah)->ah_btCoexSetBmissThresh)((_ah), (_thr)))

Definition at line 1521 of file if_athvar.h.

◆ ath_hal_btcoex_set_config

#define ath_hal_btcoex_set_config (   _ah,
  _cfg 
)     ((*(_ah)->ah_btCoexSetConfig)((_ah), (_cfg)))

Definition at line 1515 of file if_athvar.h.

◆ ath_hal_btcoex_set_info

#define ath_hal_btcoex_set_info (   _ah,
  _info 
)     ((*(_ah)->ah_btCoexSetInfo)((_ah), (_info)))

Definition at line 1513 of file if_athvar.h.

◆ ath_hal_btcoex_set_parameter

#define ath_hal_btcoex_set_parameter (   _ah,
  _attrib,
  _val 
)     ((*(_ah)->ah_btCoexSetParameter)((_ah), (_attrib), (_val)))

Definition at line 1523 of file if_athvar.h.

◆ ath_hal_btcoex_set_qcu_thresh

#define ath_hal_btcoex_set_qcu_thresh (   _ah,
  _qcuid 
)     ((*(_ah)->ah_btCoexSetQcuThresh)((_ah), (_qcuid)))

Definition at line 1517 of file if_athvar.h.

◆ ath_hal_btcoex_set_weights

#define ath_hal_btcoex_set_weights (   _ah,
  _weight 
)     ((*(_ah)->ah_btCoexSetWeights)((_ah), (_weight)))

Definition at line 1519 of file if_athvar.h.

◆ ath_hal_btcoex_supported

#define ath_hal_btcoex_supported (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_BT_COEX, 0, NULL) == HAL_OK)

Definition at line 1511 of file if_athvar.h.

◆ ath_hal_calibrate

#define ath_hal_calibrate (   _ah,
  _chan,
  _iqcal 
)     ((*(_ah)->ah_perCalibration)((_ah), (_chan), (_iqcal)))

Definition at line 1133 of file if_athvar.h.

◆ ath_hal_calibrateN

#define ath_hal_calibrateN (   _ah,
  _chan,
  _lcal,
  _isdone 
)     ((*(_ah)->ah_perCalibrationN)((_ah), (_chan), 0x1, (_lcal), (_isdone)))

Definition at line 1135 of file if_athvar.h.

◆ ath_hal_calreset

#define ath_hal_calreset (   _ah,
  _chan 
)     ((*(_ah)->ah_resetCalValid)((_ah), (_chan)))

Definition at line 1137 of file if_athvar.h.

◆ ath_hal_chaintxdesc

#define ath_hal_chaintxdesc (   _ah,
  _ds,
  _bl,
  _sl,
  _pktlen,
  _hdrlen,
  _type,
  _keyix,
  _cipher,
  _delims,
  _first,
  _last,
  _lastaggr 
)
Value:
((*(_ah)->ah_chainTxDesc)((_ah), (_ds), (_bl), (_sl), \
(_pktlen), (_hdrlen), (_type), (_keyix), (_cipher), (_delims), \
(_first), (_last), (_lastaggr)))

Definition at line 1425 of file if_athvar.h.

◆ ath_hal_ciphersupported

#define ath_hal_ciphersupported (   _ah,
  _cipher 
)     (ath_hal_getcapability(_ah, HAL_CAP_CIPHER, _cipher, NULL) == HAL_OK)

Definition at line 1212 of file if_athvar.h.

◆ ath_hal_clr11n_aggr

#define ath_hal_clr11n_aggr (   _ah,
  _ds 
)     ((*(_ah)->ah_clr11nAggr)((_ah), (_ds)))

Definition at line 1446 of file if_athvar.h.

◆ ath_hal_detach

#define ath_hal_detach (   _ah)     ((*(_ah)->ah_detach)((_ah)))

Definition at line 1058 of file if_athvar.h.

◆ ath_hal_disablepcie

#define ath_hal_disablepcie (   _ah)     ((*(_ah)->ah_disablePCIE)((_ah)))

Definition at line 1465 of file if_athvar.h.

◆ ath_hal_div_comb_conf_get

#define ath_hal_div_comb_conf_get (   _ah,
  _conf 
)     ((*(_ah)->ah_divLnaConfGet)((_ah), (_conf)))

Definition at line 1541 of file if_athvar.h.

◆ ath_hal_div_comb_conf_set

#define ath_hal_div_comb_conf_set (   _ah,
  _conf 
)     ((*(_ah)->ah_divLnaConfSet)((_ah), (_conf)))

Definition at line 1543 of file if_athvar.h.

◆ ath_hal_enabledfs

#define ath_hal_enabledfs (   _ah,
  _param 
)     ((*(_ah)->ah_enableDfs)((_ah), (_param)))

Definition at line 1474 of file if_athvar.h.

◆ ath_hal_enablepcie

#define ath_hal_enablepcie (   _ah,
  _restore,
  _poweroff 
)     ((*(_ah)->ah_configPCIE)((_ah), (_restore), (_poweroff)))

Definition at line 1463 of file if_athvar.h.

◆ ath_hal_filltxdesc

#define ath_hal_filltxdesc (   _ah,
  _ds,
  _b,
  _l,
  _did,
  _qid,
  _first,
  _last,
  _ds0 
)
Value:
((*(_ah)->ah_fillTxDesc)((_ah), (_ds), (_b), (_l), (_did), (_qid), \
(_first), (_last), (_ds0)))

Definition at line 1400 of file if_athvar.h.

◆ ath_hal_get_chan_ext_busy

#define ath_hal_get_chan_ext_busy (   _ah)     ((*(_ah)->ah_get11nExtBusy)((_ah)))

Definition at line 1489 of file if_athvar.h.

◆ ath_hal_get_mib_cycle_counts

#define ath_hal_get_mib_cycle_counts (   _ah,
  _sample 
)     ((*(_ah)->ah_getMibCycleCounts)((_ah), (_sample)))

Definition at line 1487 of file if_athvar.h.

◆ ath_hal_get_rx_tsf_prec

#define ath_hal_get_rx_tsf_prec (   _ah,
  _pr 
)
Value:
== HAL_OK)
@ HAL_OK
Definition: ah.h:72
@ HAL_CAP_RXTSTAMP_PREC
Definition: ah.h:184
#define ath_hal_getcapability(_ah, _cap, _param, _result)
Definition: if_athvar.h:1208

Definition at line 1380 of file if_athvar.h.

◆ ath_hal_get_tx_tsf_prec

#define ath_hal_get_tx_tsf_prec (   _ah,
  _pr 
)
Value:
== HAL_OK)
@ HAL_CAP_TXTSTAMP_PREC
Definition: ah.h:217

Definition at line 1383 of file if_athvar.h.

◆ ath_hal_getacktimeout

#define ath_hal_getacktimeout (   _ah)     ((*(_ah)->ah_getAckTimeout)((_ah)))

Definition at line 1202 of file if_athvar.h.

◆ ath_hal_getantennaswitch

#define ath_hal_getantennaswitch (   _ah)     ((*(_ah)->ah_getAntennaSwitch)((_ah)))

Definition at line 1240 of file if_athvar.h.

◆ ath_hal_getbssidmask

#define ath_hal_getbssidmask (   _ah,
  _mask 
)     ((*(_ah)->ah_getBssIdMask)((_ah), (_mask)))

Definition at line 1071 of file if_athvar.h.

◆ ath_hal_getcapability

#define ath_hal_getcapability (   _ah,
  _cap,
  _param,
  _result 
)     ((*(_ah)->ah_getCapability)((_ah), (_cap), (_param), (_result)))

Definition at line 1208 of file if_athvar.h.

◆ ath_hal_getchannoise

#define ath_hal_getchannoise (   _ah,
  _c 
)     ((*(_ah)->ah_getChanNoise)((_ah), (_c)))

Definition at line 1360 of file if_athvar.h.

◆ ath_hal_getcountrycode

#define ath_hal_getcountrycode (   _ah,
  _pcc 
)     (*(_pcc) = (_ah)->ah_countryCode)

Definition at line 1218 of file if_athvar.h.

◆ ath_hal_getctstimeout

#define ath_hal_getctstimeout (   _ah)     ((*(_ah)->ah_getCTSTimeout)((_ah)))

Definition at line 1206 of file if_athvar.h.

◆ ath_hal_getdefantenna

#define ath_hal_getdefantenna (   _ah)     ((*(_ah)->ah_getDefAntenna)((_ah)))

Definition at line 1186 of file if_athvar.h.

◆ ath_hal_getdfsdefaultthresh

#define ath_hal_getdfsdefaultthresh (   _ah,
  _param 
)     ((*(_ah)->ah_getDfsDefaultThresh)((_ah), (_param)))

Definition at line 1478 of file if_athvar.h.

◆ ath_hal_getdfsthresh

#define ath_hal_getdfsthresh (   _ah,
  _param 
)     ((*(_ah)->ah_getDfsThresh)((_ah), (_param)))

Definition at line 1476 of file if_athvar.h.

◆ ath_hal_getdiag

#define ath_hal_getdiag (   _ah,
  _pv 
)     (ath_hal_getcapability(_ah, HAL_CAP_DIAG, 0, _pv) == HAL_OK)

Definition at line 1244 of file if_athvar.h.

◆ ath_hal_getdiagstate

#define ath_hal_getdiagstate (   _ah,
  _id,
  _indata,
  _insize,
  _outdata,
  _outsize 
)
Value:
((*(_ah)->ah_getDiagState)((_ah), (_id), \
(_indata), (_insize), (_outdata), (_outsize)))

Definition at line 1165 of file if_athvar.h.

◆ ath_hal_getdiversity

#define ath_hal_getdiversity (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_DIVERSITY, 1, NULL) == HAL_OK)

Definition at line 1236 of file if_athvar.h.

◆ ath_hal_getenforcetxop

#define ath_hal_getenforcetxop (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_ENFORCE_TXOP, 1, NULL) == HAL_OK)

Definition at line 1322 of file if_athvar.h.

◆ ath_hal_getfatalstate

#define ath_hal_getfatalstate (   _ah,
  _outdata,
  _outsize 
)     ath_hal_getdiagstate(_ah, 29, NULL, 0, (_outdata), _outsize)

Definition at line 1168 of file if_athvar.h.

◆ ath_hal_getintmit

#define ath_hal_getintmit (   _ah)
Value:
@ HAL_CAP_INTMIT
Definition: ah.h:204
@ HAL_CAP_INTMIT_ENABLE
Definition: ah.h:992

Definition at line 1311 of file if_athvar.h.

◆ ath_hal_getisr

#define ath_hal_getisr (   _ah,
  _pmask 
)     ((*(_ah)->ah_getPendingInterrupts)((_ah), (_pmask)))

Definition at line 1081 of file if_athvar.h.

◆ ath_hal_getmac

#define ath_hal_getmac (   _ah,
  _mac 
)     ((*(_ah)->ah_getMacAddress)((_ah), (_mac)))

Definition at line 1067 of file if_athvar.h.

◆ ath_hal_getmaxtxpow

#define ath_hal_getmaxtxpow (   _ah,
  _ppow 
)     (ath_hal_getcapability(_ah, HAL_CAP_TXPOW, 2, _ppow) == HAL_OK)

Definition at line 1258 of file if_athvar.h.

◆ ath_hal_getmcastkeysearch

#define ath_hal_getmcastkeysearch (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_MCAST_KEYSRCH, 1, NULL) == HAL_OK)

Definition at line 1276 of file if_athvar.h.

◆ ath_hal_getnav

#define ath_hal_getnav (   _ah)     ((*(_ah)->ah_getNav)((_ah)))

Definition at line 1495 of file if_athvar.h.

◆ ath_hal_getnexttbtt

#define ath_hal_getnexttbtt (   _ah)     ((*(_ah)->ah_getNextTBTT)((_ah)))

Definition at line 1149 of file if_athvar.h.

◆ ath_hal_getntxmaps

#define ath_hal_getntxmaps (   _ah,
  _req 
)
Value:
== HAL_OK)
@ HAL_CAP_NUM_TXMAPS
Definition: ah.h:168

Definition at line 1344 of file if_athvar.h.

◆ ath_hal_getnumtxqueues

#define ath_hal_getnumtxqueues (   _ah,
  _pv 
)     (ath_hal_getcapability(_ah, HAL_CAP_NUM_TXQUEUES, 0, _pv) == HAL_OK)

Definition at line 1248 of file if_athvar.h.

◆ ath_hal_getratetable

#define ath_hal_getratetable (   _ah,
  _mode 
)     ((*(_ah)->ah_getRateTable)((_ah), (_mode)))

Definition at line 1065 of file if_athvar.h.

◆ ath_hal_getregdomain

#define ath_hal_getregdomain (   _ah,
  _prd 
)     (ath_hal_getcapability(_ah, HAL_CAP_REG_DMN, 0, (_prd)) == HAL_OK)

Definition at line 1214 of file if_athvar.h.

◆ ath_hal_getrfgain

#define ath_hal_getrfgain (   _ah)     ((*(_ah)->ah_getRfGain)((_ah)))

Definition at line 1184 of file if_athvar.h.

◆ ath_hal_getrfkill

#define ath_hal_getrfkill (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_RFSILENT, 1, NULL) == HAL_OK)

Definition at line 1292 of file if_athvar.h.

◆ ath_hal_getrfsilent

#define ath_hal_getrfsilent (   _ah,
  _prfsilent 
)     (ath_hal_getcapability(_ah, HAL_CAP_RFSILENT, 2, _prfsilent) == HAL_OK)

Definition at line 1296 of file if_athvar.h.

◆ ath_hal_getrxbuf

#define ath_hal_getrxbuf (   _ah,
  _rxq 
)     ((*(_ah)->ah_getRxDP)((_ah), (_rxq)))

Definition at line 1127 of file if_athvar.h.

◆ ath_hal_getrxchainmask

#define ath_hal_getrxchainmask (   _ah,
  _prxchainmask 
)     (ath_hal_getcapability(_ah, HAL_CAP_RX_CHAINMASK, 0, _prxchainmask))

Definition at line 1364 of file if_athvar.h.

◆ ath_hal_getrxfifodepth

#define ath_hal_getrxfifodepth (   _ah,
  _qtype,
  _req 
)
Value:
== HAL_OK)
@ HAL_CAP_RXFIFODEPTH
Definition: ah.h:172

Definition at line 1341 of file if_athvar.h.

◆ ath_hal_getrxfilter

#define ath_hal_getrxfilter (   _ah)     ((*(_ah)->ah_getRxFilter)((_ah)))

Definition at line 1099 of file if_athvar.h.

◆ ath_hal_getrxstatuslen

#define ath_hal_getrxstatuslen (   _ah,
  _req 
)
Value:
== HAL_OK)
@ HAL_CAP_RXSTATUSLEN
Definition: ah.h:171

Definition at line 1353 of file if_athvar.h.

◆ ath_hal_getslottime

#define ath_hal_getslottime (   _ah)     ((*(_ah)->ah_getSlotTime)((_ah)))

Definition at line 1198 of file if_athvar.h.

◆ ath_hal_gettkipmic

#define ath_hal_gettkipmic (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_TKIP_MIC, 1, NULL) == HAL_OK)

Definition at line 1220 of file if_athvar.h.

◆ ath_hal_gettkipsplit

#define ath_hal_gettkipsplit (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_TKIP_SPLIT, 1, NULL) == HAL_OK)

Definition at line 1226 of file if_athvar.h.

◆ ath_hal_gettpack

#define ath_hal_gettpack (   _ah,
  _ptpack 
)     (ath_hal_getcapability(_ah, HAL_CAP_TPC_ACK, 0, _ptpack) == HAL_OK)

Definition at line 1300 of file if_athvar.h.

◆ ath_hal_gettpc

#define ath_hal_gettpc (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_TPC, 1, NULL) == HAL_OK)

Definition at line 1266 of file if_athvar.h.

◆ ath_hal_gettpcts

#define ath_hal_gettpcts (   _ah,
  _ptpcts 
)     (ath_hal_getcapability(_ah, HAL_CAP_TPC_CTS, 0, _ptpcts) == HAL_OK)

Definition at line 1304 of file if_athvar.h.

◆ ath_hal_gettpscale

#define ath_hal_gettpscale (   _ah,
  _scale 
)     (ath_hal_getcapability(_ah, HAL_CAP_TXPOW, 3, _scale) == HAL_OK)

Definition at line 1260 of file if_athvar.h.

◆ ath_hal_gettsf32

#define ath_hal_gettsf32 (   _ah)     OS_REG_READ(_ah, AR_TSF_L32)

Definition at line 1111 of file if_athvar.h.

◆ ath_hal_gettsf64

#define ath_hal_gettsf64 (   _ah)     ((*(_ah)->ah_getTsf64)((_ah)))

Definition at line 1113 of file if_athvar.h.

◆ ath_hal_gettsfadjust

#define ath_hal_gettsfadjust (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_TSF_ADJUST, 1, NULL) == HAL_OK)

Definition at line 1286 of file if_athvar.h.

◆ ath_hal_gettxbuf

#define ath_hal_gettxbuf (   _ah,
  _q 
)     ((*(_ah)->ah_getTxDP)((_ah), (_q)))

Definition at line 1123 of file if_athvar.h.

◆ ath_hal_gettxchainmask

#define ath_hal_gettxchainmask (   _ah,
  _ptxchainmask 
)     (ath_hal_getcapability(_ah, HAL_CAP_TX_CHAINMASK, 0, _ptxchainmask))

Definition at line 1366 of file if_athvar.h.

◆ ath_hal_gettxcompletionrates

#define ath_hal_gettxcompletionrates (   _ah,
  _ds,
  _rates,
  _tries 
)     ((*(_ah)->ah_getTxCompletionRates)((_ah), (_ds), (_rates), (_tries)))

Definition at line 1407 of file if_athvar.h.

◆ ath_hal_gettxdesclen

#define ath_hal_gettxdesclen (   _ah,
  _req 
)
Value:
== HAL_OK)
@ HAL_CAP_TXDESCLEN
Definition: ah.h:169

Definition at line 1347 of file if_athvar.h.

◆ ath_hal_gettxdesclink

#define ath_hal_gettxdesclink (   _ah,
  _ds,
  _link 
)     ((*(_ah)->ah_getTxDescLink)((_ah), (_ds), (_link)))

Definition at line 1411 of file if_athvar.h.

◆ ath_hal_gettxdesclinkptr

#define ath_hal_gettxdesclinkptr (   _ah,
  _ds,
  _linkptr 
)     ((*(_ah)->ah_getTxDescLinkPtr)((_ah), (_ds), (_linkptr)))

Definition at line 1413 of file if_athvar.h.

◆ ath_hal_gettxintrtxqs

#define ath_hal_gettxintrtxqs (   _ah,
  _txqs 
)     ((*(_ah)->ah_getTxIntrQueue)((_ah), (_txqs)))

Definition at line 1405 of file if_athvar.h.

◆ ath_hal_gettxpowlimit

#define ath_hal_gettxpowlimit (   _ah,
  _ppow 
)     (ath_hal_getcapability(_ah, HAL_CAP_TXPOW, 1, _ppow) == HAL_OK)

Definition at line 1256 of file if_athvar.h.

◆ ath_hal_gettxqueueprops

#define ath_hal_gettxqueueprops (   _ah,
  _q,
  _qi 
)     ((*(_ah)->ah_getTxQueueProps)((_ah), (_q), (_qi)))

Definition at line 1176 of file if_athvar.h.

◆ ath_hal_gettxrawtxdesc

#define ath_hal_gettxrawtxdesc (   _ah,
  _txstatus 
)     ((*(_ah)->ah_getTxRawTxDesc)((_ah), (_txstatus)))

Definition at line 1418 of file if_athvar.h.

◆ ath_hal_gettxstatuslen

#define ath_hal_gettxstatuslen (   _ah,
  _req 
)
Value:
== HAL_OK)
@ HAL_CAP_TXSTATUSLEN
Definition: ah.h:170

Definition at line 1350 of file if_athvar.h.

◆ ath_hal_gpioCfgOutput

#define ath_hal_gpioCfgOutput (   _ah,
  _gpio,
  _type 
)     ((*(_ah)->ah_gpioCfgOutput)((_ah), (_gpio), (_type)))

Definition at line 1451 of file if_athvar.h.

◆ ath_hal_gpioget

#define ath_hal_gpioget (   _ah,
  _gpio 
)     ((*(_ah)->ah_gpioGet)((_ah), (_gpio)))

Definition at line 1455 of file if_athvar.h.

◆ ath_hal_gpioset

#define ath_hal_gpioset (   _ah,
  _gpio,
  _b 
)     ((*(_ah)->ah_gpioSet)((_ah), (_gpio), (_b)))

Definition at line 1453 of file if_athvar.h.

◆ ath_hal_gpiosetintr

#define ath_hal_gpiosetintr (   _ah,
  _gpio,
  _b 
)     ((*(_ah)->ah_gpioSetIntr)((_ah), (_gpio), (_b)))

Definition at line 1457 of file if_athvar.h.

◆ ath_hal_gtxto_supported

#define ath_hal_gtxto_supported (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_GTXTO, 0, NULL) == HAL_OK)

Definition at line 1378 of file if_athvar.h.

◆ ath_hal_hasbssidmask

#define ath_hal_hasbssidmask (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_BSSIDMASK, 0, NULL) == HAL_OK)

Definition at line 1280 of file if_athvar.h.

◆ ath_hal_hasbssidmatch

#define ath_hal_hasbssidmatch (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_BSSIDMATCH, 0, NULL) == HAL_OK)

Definition at line 1282 of file if_athvar.h.

◆ ath_hal_hasbursting

#define ath_hal_hasbursting (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_BURST, 0, NULL) == HAL_OK)

Definition at line 1270 of file if_athvar.h.

◆ ath_hal_hasdivantcomb

#define ath_hal_hasdivantcomb (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_ANT_DIV_COMB, 0, NULL) == HAL_OK)

Definition at line 1330 of file if_athvar.h.

◆ ath_hal_hasdiversity

#define ath_hal_hasdiversity (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_DIVERSITY, 0, NULL) == HAL_OK)

Definition at line 1234 of file if_athvar.h.

◆ ath_hal_hasedma

#define ath_hal_hasedma (   _ah)
Value:
0, NULL) == HAL_OK)
@ HAL_CAP_ENHANCED_DMA_SUPPORT
Definition: ah.h:167

Definition at line 1338 of file if_athvar.h.

◆ ath_hal_hasenforcetxop

#define ath_hal_hasenforcetxop (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_ENFORCE_TXOP, 0, NULL) == HAL_OK)

Definition at line 1320 of file if_athvar.h.

◆ ath_hal_hasfastframes

#define ath_hal_hasfastframes (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_FASTFRAME, 0, NULL) == HAL_OK)

Definition at line 1278 of file if_athvar.h.

◆ ath_hal_hasintmit

#define ath_hal_hasintmit (   _ah)
Value:
@ HAL_CAP_INTMIT_PRESENT
Definition: ah.h:991

Definition at line 1308 of file if_athvar.h.

◆ ath_hal_hasldpc

#define ath_hal_hasldpc (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_LDPC, 0, NULL) == HAL_OK)

Definition at line 1332 of file if_athvar.h.

◆ ath_hal_hasldpcwar

#define ath_hal_hasldpcwar (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_LDPCWAR, 0, NULL) == HAL_OK)

Definition at line 1334 of file if_athvar.h.

◆ ath_hal_hasmcastkeysearch

#define ath_hal_hasmcastkeysearch (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_MCAST_KEYSRCH, 0, NULL) == HAL_OK)

Definition at line 1274 of file if_athvar.h.

◆ ath_hal_hasmybeacon

#define ath_hal_hasmybeacon (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_DO_MYBEACON, 1, NULL) == HAL_OK)

Definition at line 1317 of file if_athvar.h.

◆ ath_hal_hasrfsilent

#define ath_hal_hasrfsilent (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_RFSILENT, 0, NULL) == HAL_OK)

Definition at line 1290 of file if_athvar.h.

◆ ath_hal_hasrxlnamixer

#define ath_hal_hasrxlnamixer (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_RX_LNA_MIXING, 0, NULL) == HAL_OK)

Definition at line 1327 of file if_athvar.h.

◆ ath_hal_hastkipsplit

#define ath_hal_hastkipsplit (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_TKIP_SPLIT, 0, NULL) == HAL_OK)

Definition at line 1224 of file if_athvar.h.

◆ ath_hal_hastpc

#define ath_hal_hastpc (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_TPC, 0, NULL) == HAL_OK)

Definition at line 1264 of file if_athvar.h.

◆ ath_hal_hastsfadjust

#define ath_hal_hastsfadjust (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_TSF_ADJUST, 0, NULL) == HAL_OK)

Definition at line 1284 of file if_athvar.h.

◆ ath_hal_hastxpowlimit

#define ath_hal_hastxpowlimit (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_TXPOW, 0, NULL) == HAL_OK)

Definition at line 1252 of file if_athvar.h.

◆ ath_hal_hasveol

#define ath_hal_hasveol (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_VEOL, 0, NULL) == HAL_OK)

Definition at line 1250 of file if_athvar.h.

◆ ath_hal_haswmetkipmic

#define ath_hal_haswmetkipmic (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_WME_TKIPMIC, 0, NULL) == HAL_OK)

Definition at line 1230 of file if_athvar.h.

◆ ath_hal_hwphycounters

#define ath_hal_hwphycounters (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_PHYCOUNTERS, 0, NULL) == HAL_OK)

Definition at line 1232 of file if_athvar.h.

◆ ath_hal_intrget

#define ath_hal_intrget (   _ah)     ((*(_ah)->ah_getInterrupts)((_ah)))

Definition at line 1077 of file if_athvar.h.

◆ ath_hal_intrpend

#define ath_hal_intrpend (   _ah)     ((*(_ah)->ah_isInterruptPending)((_ah)))

Definition at line 1079 of file if_athvar.h.

◆ ath_hal_intrset

#define ath_hal_intrset (   _ah,
  _mask 
)     ((*(_ah)->ah_setInterrupts)((_ah), (_mask)))

Definition at line 1075 of file if_athvar.h.

◆ ath_hal_is_fast_clock_enabled

#define ath_hal_is_fast_clock_enabled (   _ah)     ((*(_ah)->ah_isFastClockEnabled)((_ah)))

Definition at line 1483 of file if_athvar.h.

◆ ath_hal_keycachesize

#define ath_hal_keycachesize (   _ah)     ((*(_ah)->ah_getKeyCacheSize)((_ah)))

Definition at line 1089 of file if_athvar.h.

◆ ath_hal_keyisvalid

#define ath_hal_keyisvalid (   _ah,
  _ix 
)     (((*(_ah)->ah_isKeyCacheEntryValid)((_ah), (_ix))))

Definition at line 1095 of file if_athvar.h.

◆ ath_hal_keyreset

#define ath_hal_keyreset (   _ah,
  _ix 
)     ((*(_ah)->ah_resetKeyCacheEntry)((_ah), (_ix)))

Definition at line 1091 of file if_athvar.h.

◆ ath_hal_keyset

#define ath_hal_keyset (   _ah,
  _ix,
  _pk,
  _mac 
)     ((*(_ah)->ah_setKeyCacheEntry)((_ah), (_ix), (_pk), (_mac), AH_FALSE))

Definition at line 1093 of file if_athvar.h.

◆ ath_hal_keysetmac

#define ath_hal_keysetmac (   _ah,
  _ix,
  _mac 
)     ((*(_ah)->ah_setKeyCacheEntryMac)((_ah), (_ix), (_mac)))

Definition at line 1097 of file if_athvar.h.

◆ ath_hal_macversion

#define ath_hal_macversion (   _ah)     (((_ah)->ah_macVersion << 4) | ((_ah)->ah_macRev))

Definition at line 1063 of file if_athvar.h.

◆ ath_hal_mibevent

#define ath_hal_mibevent (   _ah,
  _stats 
)     ((*(_ah)->ah_procMibEvent)((_ah), (_stats)))

Definition at line 1194 of file if_athvar.h.

◆ ath_hal_numtxpending

#define ath_hal_numtxpending (   _ah,
  _q 
)     ((*(_ah)->ah_numTxPending)((_ah), (_q)))

Definition at line 1125 of file if_athvar.h.

◆ ath_hal_phydisable

#define ath_hal_phydisable (   _ah)     ((*(_ah)->ah_phyDisable)((_ah)))

Definition at line 1153 of file if_athvar.h.

◆ ath_hal_procradarevent

#define ath_hal_procradarevent (   _ah,
  _rxs,
  _fulltsf,
  _buf,
  _event 
)
Value:
((*(_ah)->ah_procRadarEvent)((_ah), (_rxs), (_fulltsf), \
(_buf), (_event)))

Definition at line 1480 of file if_athvar.h.

◆ ath_hal_putrxbuf

#define ath_hal_putrxbuf (   _ah,
  _bufaddr,
  _rxq 
)     ((*(_ah)->ah_setRxDP)((_ah), (_bufaddr), (_rxq)))

Definition at line 1107 of file if_athvar.h.

◆ ath_hal_puttxbuf

#define ath_hal_puttxbuf (   _ah,
  _q,
  _bufaddr 
)     ((*(_ah)->ah_setTxDP)((_ah), (_q), (_bufaddr)))

Definition at line 1121 of file if_athvar.h.

◆ ath_hal_radar_wait

#define ath_hal_radar_wait (   _ah,
  _chan 
)     ((*(_ah)->ah_radarWait)((_ah), (_chan)))

Definition at line 1485 of file if_athvar.h.

◆ ath_hal_releasetxqueue

#define ath_hal_releasetxqueue (   _ah,
  _q 
)     ((*(_ah)->ah_releaseTxQueue)((_ah), (_q)))

Definition at line 1174 of file if_athvar.h.

◆ ath_hal_reset

#define ath_hal_reset (   _ah,
  _opmode,
  _chan,
  _fullreset,
  _resettype,
  _pstatus 
)
Value:
((*(_ah)->ah_reset)((_ah), (_opmode), (_chan), (_fullreset), \
(_resettype), (_pstatus)))

Definition at line 1060 of file if_athvar.h.

◆ ath_hal_resettsf

#define ath_hal_resettsf (   _ah)     ((*(_ah)->ah_resetTsf)((_ah)))

Definition at line 1117 of file if_athvar.h.

◆ ath_hal_resettxqueue

#define ath_hal_resettxqueue (   _ah,
  _q 
)     ((*(_ah)->ah_resetTxQueue)((_ah), (_q)))

Definition at line 1172 of file if_athvar.h.

◆ ath_hal_rxena

#define ath_hal_rxena (   _ah)     ((*(_ah)->ah_enableReceive)((_ah)))

Definition at line 1119 of file if_athvar.h.

◆ ath_hal_rxmonitor

#define ath_hal_rxmonitor (   _ah,
  _arg,
  _chan 
)     ((*(_ah)->ah_rxMonitor)((_ah), (_arg), (_chan)))

Definition at line 1190 of file if_athvar.h.

◆ ath_hal_rxprocdesc

#define ath_hal_rxprocdesc (   _ah,
  _ds,
  _dspa,
  _dsnext,
  _rs 
)     ((*(_ah)->ah_procRxDesc)((_ah), (_ds), (_dspa), (_dsnext), 0, (_rs)))

Definition at line 1388 of file if_athvar.h.

◆ ath_hal_self_linked_final_rxdesc

#define ath_hal_self_linked_final_rxdesc (   _ah)
Value:
0, NULL) == HAL_OK)
@ HAL_CAP_RXDESC_SELFLINK
Definition: ah.h:210

Definition at line 1375 of file if_athvar.h.

◆ ath_hal_set11n_aggr_first

#define ath_hal_set11n_aggr_first (   _ah,
  _ds,
  _len,
  _num 
)     ((*(_ah)->ah_set11nAggrFirst)((_ah), (_ds), (_len), (_num)))

Definition at line 1437 of file if_athvar.h.

◆ ath_hal_set11n_aggr_last

#define ath_hal_set11n_aggr_last (   _ah,
  _ds 
)     ((*(_ah)->ah_set11nAggrLast)((_ah), (_ds)))

Definition at line 1441 of file if_athvar.h.

◆ ath_hal_set11n_aggr_middle

#define ath_hal_set11n_aggr_middle (   _ah,
  _ds,
  _num 
)     ((*(_ah)->ah_set11nAggrMiddle)((_ah), (_ds), (_num)))

Definition at line 1439 of file if_athvar.h.

◆ ath_hal_set11n_virtmorefrag

#define ath_hal_set11n_virtmorefrag (   _ah,
  _ds,
  _v 
)     ((*(_ah)->ah_set11nVirtMoreFrag)((_ah), (_ds), (_v)))

Definition at line 1448 of file if_athvar.h.

◆ ath_hal_set11nburstduration

#define ath_hal_set11nburstduration (   _ah,
  _ds,
  _dur 
)     ((*(_ah)->ah_set11nBurstDuration)((_ah), (_ds), (_dur)))

Definition at line 1444 of file if_athvar.h.

◆ ath_hal_set11nratescenario

#define ath_hal_set11nratescenario (   _ah,
  _ds,
  _dur,
  _rt,
  _series,
  _ns,
  _flags 
)
Value:
((*(_ah)->ah_set11nRateScenario)((_ah), (_ds), (_dur), (_rt), \
(_series), (_ns), (_flags)))

Definition at line 1433 of file if_athvar.h.

◆ ath_hal_set_quiet

#define ath_hal_set_quiet (   _ah,
  _p,
  _d,
  _o,
  _f 
)     ((*(_ah)->ah_setQuiet)((_ah), (_p), (_d), (_o), (_f)))

Definition at line 1493 of file if_athvar.h.

◆ ath_hal_setacktimeout

#define ath_hal_setacktimeout (   _ah,
  _us 
)     ((*(_ah)->ah_setAckTimeout)((_ah), (_us)))

Definition at line 1200 of file if_athvar.h.

◆ ath_hal_setantennaswitch

#define ath_hal_setantennaswitch (   _ah,
  _v 
)     ((*(_ah)->ah_setAntennaSwitch)((_ah), (_v)))

Definition at line 1242 of file if_athvar.h.

◆ ath_hal_setassocid

#define ath_hal_setassocid (   _ah,
  _bss,
  _associd 
)     ((*(_ah)->ah_writeAssocid)((_ah), (_bss), (_associd)))

Definition at line 1151 of file if_athvar.h.

◆ ath_hal_setbssidmask

#define ath_hal_setbssidmask (   _ah,
  _mask 
)     ((*(_ah)->ah_setBssIdMask)((_ah), (_mask)))

Definition at line 1073 of file if_athvar.h.

◆ ath_hal_setcapability

#define ath_hal_setcapability (   _ah,
  _cap,
  _param,
  _v,
  _status 
)     ((*(_ah)->ah_setCapability)((_ah), (_cap), (_param), (_v), (_status)))

Definition at line 1210 of file if_athvar.h.

◆ ath_hal_setchainmasks

#define ath_hal_setchainmasks (   _ah,
  _txchainmask,
  _rxchainmask 
)     ((*(_ah)->ah_setChainMasks)((_ah), (_txchainmask), (_rxchainmask)))

Definition at line 1491 of file if_athvar.h.

◆ ath_hal_setchannel

#define ath_hal_setchannel (   _ah,
  _chan 
)     ((*(_ah)->ah_setChannel)((_ah), (_chan)))

Definition at line 1131 of file if_athvar.h.

◆ ath_hal_setctstimeout

#define ath_hal_setctstimeout (   _ah,
  _us 
)     ((*(_ah)->ah_setCTSTimeout)((_ah), (_us)))

Definition at line 1204 of file if_athvar.h.

◆ ath_hal_setdefantenna

#define ath_hal_setdefantenna (   _ah,
  _ant 
)     ((*(_ah)->ah_setDefAntenna)((_ah), (_ant)))

Definition at line 1188 of file if_athvar.h.

◆ ath_hal_setdiag

#define ath_hal_setdiag (   _ah,
  _v 
)     ath_hal_setcapability(_ah, HAL_CAP_DIAG, 0, _v, NULL)

Definition at line 1246 of file if_athvar.h.

◆ ath_hal_setdiversity

#define ath_hal_setdiversity (   _ah,
  _v 
)     ath_hal_setcapability(_ah, HAL_CAP_DIVERSITY, 1, _v, NULL)

Definition at line 1238 of file if_athvar.h.

◆ ath_hal_setenforcetxop

#define ath_hal_setenforcetxop (   _ah,
  _v 
)     ath_hal_setcapability(_ah, HAL_CAP_ENFORCE_TXOP, 1, _v, NULL)

Definition at line 1324 of file if_athvar.h.

◆ ath_hal_setintmit

#define ath_hal_setintmit (   _ah,
  _v 
)
Value:
#define ath_hal_setcapability(_ah, _cap, _param, _v, _status)
Definition: if_athvar.h:1210

Definition at line 1314 of file if_athvar.h.

◆ ath_hal_setledstate

#define ath_hal_setledstate (   _ah,
  _state 
)     ((*(_ah)->ah_setLedState)((_ah), (_state)))

Definition at line 1139 of file if_athvar.h.

◆ ath_hal_setmac

#define ath_hal_setmac (   _ah,
  _mac 
)     ((*(_ah)->ah_setMacAddress)((_ah), (_mac)))

Definition at line 1069 of file if_athvar.h.

◆ ath_hal_setmcastfilter

#define ath_hal_setmcastfilter (   _ah,
  _mfilt0,
  _mfilt1 
)     ((*(_ah)->ah_setMulticastFilter)((_ah), (_mfilt0), (_mfilt1)))

Definition at line 1103 of file if_athvar.h.

◆ ath_hal_setmcastkeysearch

#define ath_hal_setmcastkeysearch (   _ah,
  _v 
)     ath_hal_setcapability(_ah, HAL_CAP_MCAST_KEYSRCH, 0, _v, NULL)

Definition at line 1272 of file if_athvar.h.

◆ ath_hal_setnav

#define ath_hal_setnav (   _ah,
  _val 
)     ((*(_ah)->ah_setNav)((_ah), (_val)))

Definition at line 1497 of file if_athvar.h.

◆ ath_hal_setopmode

#define ath_hal_setopmode (   _ah)     ((*(_ah)->ah_setPCUConfig)((_ah)))

Definition at line 1155 of file if_athvar.h.

◆ ath_hal_setpower

#define ath_hal_setpower (   _ah,
  _mode 
)     ((*(_ah)->ah_setPowerMode)((_ah), (_mode), AH_TRUE))

Definition at line 1085 of file if_athvar.h.

◆ ath_hal_setregdomain

#define ath_hal_setregdomain (   _ah,
  _rd 
)     ath_hal_setcapability(_ah, HAL_CAP_REG_DMN, 0, _rd, NULL)

Definition at line 1216 of file if_athvar.h.

◆ ath_hal_setrfkill

#define ath_hal_setrfkill (   _ah,
  _onoff 
)     ath_hal_setcapability(_ah, HAL_CAP_RFSILENT, 1, _onoff, NULL)

Definition at line 1294 of file if_athvar.h.

◆ ath_hal_setrfsilent

#define ath_hal_setrfsilent (   _ah,
  _rfsilent 
)     ath_hal_setcapability(_ah, HAL_CAP_RFSILENT, 2, _rfsilent, NULL)

Definition at line 1298 of file if_athvar.h.

◆ ath_hal_setrxbufsize

#define ath_hal_setrxbufsize (   _ah,
  _req 
)
Value:
(ath_hal_setcapability(_ah, HAL_CAP_RXBUFSIZE, 0, _req, NULL) \
== AH_TRUE)
@ HAL_CAP_RXBUFSIZE
Definition: ah.h:173
@ AH_TRUE
Definition: ah.h:95

Definition at line 1356 of file if_athvar.h.

◆ ath_hal_setrxchainmask

#define ath_hal_setrxchainmask (   _ah,
  _rx 
)     (ath_hal_setcapability(_ah, HAL_CAP_RX_CHAINMASK, 1, _rx, NULL))

Definition at line 1368 of file if_athvar.h.

◆ ath_hal_setrxfilter

#define ath_hal_setrxfilter (   _ah,
  _filter 
)     ((*(_ah)->ah_setRxFilter)((_ah), (_filter)))

Definition at line 1101 of file if_athvar.h.

◆ ath_hal_setselfgenpower

#define ath_hal_setselfgenpower (   _ah,
  _mode 
)     ((*(_ah)->ah_setPowerMode)((_ah), (_mode), AH_FALSE))

Definition at line 1087 of file if_athvar.h.

◆ ath_hal_setslottime

#define ath_hal_setslottime (   _ah,
  _us 
)     ((*(_ah)->ah_setSlotTime)((_ah), (_us)))

Definition at line 1196 of file if_athvar.h.

◆ ath_hal_settkipmic

#define ath_hal_settkipmic (   _ah,
  _v 
)     ath_hal_setcapability(_ah, HAL_CAP_TKIP_MIC, 1, _v, NULL)

Definition at line 1222 of file if_athvar.h.

◆ ath_hal_settkipsplit

#define ath_hal_settkipsplit (   _ah,
  _v 
)     ath_hal_setcapability(_ah, HAL_CAP_TKIP_SPLIT, 1, _v, NULL)

Definition at line 1228 of file if_athvar.h.

◆ ath_hal_settpack

#define ath_hal_settpack (   _ah,
  _tpack 
)     ath_hal_setcapability(_ah, HAL_CAP_TPC_ACK, 0, _tpack, NULL)

Definition at line 1302 of file if_athvar.h.

◆ ath_hal_settpc

#define ath_hal_settpc (   _ah,
  _v 
)     ath_hal_setcapability(_ah, HAL_CAP_TPC, 1, _v, NULL)

Definition at line 1268 of file if_athvar.h.

◆ ath_hal_settpcts

#define ath_hal_settpcts (   _ah,
  _tpcts 
)     ath_hal_setcapability(_ah, HAL_CAP_TPC_CTS, 0, _tpcts, NULL)

Definition at line 1306 of file if_athvar.h.

◆ ath_hal_settpscale

#define ath_hal_settpscale (   _ah,
  _v 
)     ath_hal_setcapability(_ah, HAL_CAP_TXPOW, 3, _v, NULL)

Definition at line 1262 of file if_athvar.h.

◆ ath_hal_settsf64

#define ath_hal_settsf64 (   _ah,
  _val 
)     ((*(_ah)->ah_setTsf64)((_ah), (_val)))

Definition at line 1115 of file if_athvar.h.

◆ ath_hal_settsfadjust

#define ath_hal_settsfadjust (   _ah,
  _onoff 
)     ath_hal_setcapability(_ah, HAL_CAP_TSF_ADJUST, 1, _onoff, NULL)

Definition at line 1288 of file if_athvar.h.

◆ ath_hal_settxchainmask

#define ath_hal_settxchainmask (   _ah,
  _tx 
)     (ath_hal_setcapability(_ah, HAL_CAP_TX_CHAINMASK, 1, _tx, NULL))

Definition at line 1370 of file if_athvar.h.

◆ ath_hal_settxdesclink

#define ath_hal_settxdesclink (   _ah,
  _ds,
  _link 
)     ((*(_ah)->ah_setTxDescLink)((_ah), (_ds), (_link)))

Definition at line 1409 of file if_athvar.h.

◆ ath_hal_settxpowlimit

#define ath_hal_settxpowlimit (   _ah,
  _pow 
)     ((*(_ah)->ah_setTxPowerLimit)((_ah), (_pow)))

Definition at line 1254 of file if_athvar.h.

◆ ath_hal_settxqueueprops

#define ath_hal_settxqueueprops (   _ah,
  _q,
  _qi 
)     ((*(_ah)->ah_setTxQueueProps)((_ah), (_q), (_qi)))

Definition at line 1178 of file if_athvar.h.

◆ ath_hal_setupfirsttxdesc

#define ath_hal_setupfirsttxdesc (   _ah,
  _ds,
  _aggrlen,
  _flags,
  _txpower,
  _txr0,
  _txtr0,
  _antm,
  _rcr,
  _rcd 
)
Value:
((*(_ah)->ah_setupFirstTxDesc)((_ah), (_ds), (_aggrlen), (_flags), \
(_txpower), (_txr0), (_txtr0), (_antm), (_rcr), (_rcd)))

Definition at line 1421 of file if_athvar.h.

◆ ath_hal_setuplasttxdesc

#define ath_hal_setuplasttxdesc (   _ah,
  _ds,
  _ds0 
)     ((*(_ah)->ah_setupLastTxDesc)((_ah), (_ds), (_ds0)))

Definition at line 1430 of file if_athvar.h.

◆ ath_hal_setuprxdesc

#define ath_hal_setuprxdesc (   _ah,
  _ds,
  _size,
  _intreq 
)     ((*(_ah)->ah_setupRxDesc)((_ah), (_ds), (_size), (_intreq)))

Definition at line 1386 of file if_athvar.h.

◆ ath_hal_setuptxdesc

#define ath_hal_setuptxdesc (   _ah,
  _ds,
  _plen,
  _hlen,
  _atype,
  _txpow,
  _txr0,
  _txtr0,
  _keyix,
  _ant,
  _flags,
  _rtsrate,
  _rtsdura 
)
Value:
((*(_ah)->ah_setupTxDesc)((_ah), (_ds), (_plen), (_hlen), (_atype), \
(_txpow), (_txr0), (_txtr0), (_keyix), (_ant), \
(_flags), (_rtsrate), (_rtsdura), 0, 0, 0))

Definition at line 1390 of file if_athvar.h.

◆ ath_hal_setuptxqueue

#define ath_hal_setuptxqueue (   _ah,
  _type,
  _irq 
)     ((*(_ah)->ah_setupTxQueue)((_ah), (_type), (_irq)))

Definition at line 1170 of file if_athvar.h.

◆ ath_hal_setuptxstatusring

#define ath_hal_setuptxstatusring (   _ah,
  _tsstart,
  _tspstart,
  _size 
)
Value:
((*(_ah)->ah_setupTxStatusRing)((_ah), (_tsstart), (_tspstart), \
(_size)))

Definition at line 1415 of file if_athvar.h.

◆ ath_hal_setupxtxdesc

#define ath_hal_setupxtxdesc (   _ah,
  _ds,
  _txr1,
  _txtr1,
  _txr2,
  _txtr2,
  _txr3,
  _txtr3 
)
Value:
((*(_ah)->ah_setupXTxDesc)((_ah), (_ds), \
(_txr1), (_txtr1), (_txr2), (_txtr2), (_txr3), (_txtr3)))

Definition at line 1396 of file if_athvar.h.

◆ ath_hal_spectral_configure

#define ath_hal_spectral_configure (   _ah,
  _p 
)     ((*(_ah)->ah_spectralConfigure)((_ah), (_p)))

Definition at line 1504 of file if_athvar.h.

◆ ath_hal_spectral_get_config

#define ath_hal_spectral_get_config (   _ah,
  _p 
)     ((*(_ah)->ah_spectralGetConfig)((_ah), (_p)))

Definition at line 1502 of file if_athvar.h.

◆ ath_hal_spectral_start

#define ath_hal_spectral_start (   _ah)     ((*(_ah)->ah_spectralStart)((_ah)))

Definition at line 1506 of file if_athvar.h.

◆ ath_hal_spectral_stop

#define ath_hal_spectral_stop (   _ah)     ((*(_ah)->ah_spectralStop)((_ah)))

Definition at line 1508 of file if_athvar.h.

◆ ath_hal_spectral_supported

#define ath_hal_spectral_supported (   _ah)     (ath_hal_getcapability(_ah, HAL_CAP_SPECTRAL_SCAN, 0, NULL) == HAL_OK)

Definition at line 1500 of file if_athvar.h.

◆ ath_hal_split4ktrans

#define ath_hal_split4ktrans (   _ah)
Value:
0, NULL) == HAL_OK)
@ HAL_CAP_SPLIT_4KB_TRANS
Definition: ah.h:148

Definition at line 1372 of file if_athvar.h.

◆ ath_hal_startpcurecv

#define ath_hal_startpcurecv (   _ah,
  _is_scanning 
)     ((*(_ah)->ah_startPcuReceive)((_ah), (_is_scanning)))

Definition at line 1161 of file if_athvar.h.

◆ ath_hal_stopdmarecv

#define ath_hal_stopdmarecv (   _ah)     ((*(_ah)->ah_stopDmaReceive)((_ah)))

Definition at line 1163 of file if_athvar.h.

◆ ath_hal_stoppcurecv

#define ath_hal_stoppcurecv (   _ah)     ((*(_ah)->ah_stopPcuReceive)((_ah)))

Definition at line 1159 of file if_athvar.h.

◆ ath_hal_stoptxdma

#define ath_hal_stoptxdma (   _ah,
  _qnum 
)     ((*(_ah)->ah_stopTxDma)((_ah), (_qnum)))

Definition at line 1157 of file if_athvar.h.

◆ ath_hal_txprocdesc

#define ath_hal_txprocdesc (   _ah,
  _ds,
  _ts 
)     ((*(_ah)->ah_procTxDesc)((_ah), (_ds), (_ts)))

Definition at line 1403 of file if_athvar.h.

◆ ath_hal_txqenabled

#define ath_hal_txqenabled (   _ah,
  _qnum 
)     (OS_REG_READ(_ah, AR_Q_TXE) & (1<<(_qnum)))

Definition at line 1182 of file if_athvar.h.

◆ ath_hal_txstart

#define ath_hal_txstart (   _ah,
  _q 
)     ((*(_ah)->ah_startTxDma)((_ah), (_q)))

Definition at line 1129 of file if_athvar.h.

◆ ath_hal_updatetxtriglevel

#define ath_hal_updatetxtriglevel (   _ah,
  _inc 
)     ((*(_ah)->ah_updateTxTrigLevel)((_ah), (_inc)))

Definition at line 1083 of file if_athvar.h.

◆ ath_hal_waitforbeacon

#define ath_hal_waitforbeacon (   _ah,
  _bf 
)     ((*(_ah)->ah_waitForBeaconDone)((_ah), (_bf)->bf_daddr))

Definition at line 1105 of file if_athvar.h.

◆ ATH_KEYBYTES

#define ATH_KEYBYTES   (ATH_KEYMAX/NBBY) /* storage space in bytes */

Definition at line 114 of file if_athvar.h.

◆ ATH_KEYMAX

#define ATH_KEYMAX   128 /* max key cache size we handle */

Definition at line 113 of file if_athvar.h.

◆ ATH_LOCK

#define ATH_LOCK (   _sc)    mtx_lock(&(_sc)->sc_mtx)

Definition at line 938 of file if_athvar.h.

◆ ATH_LOCK_ASSERT

#define ATH_LOCK_ASSERT (   _sc)    mtx_assert(&(_sc)->sc_mtx, MA_OWNED)

Definition at line 940 of file if_athvar.h.

◆ ATH_LOCK_DESTROY

#define ATH_LOCK_DESTROY (   _sc)    mtx_destroy(&(_sc)->sc_mtx)

Definition at line 937 of file if_athvar.h.

◆ ATH_LOCK_INIT

#define ATH_LOCK_INIT (   _sc)
Value:
mtx_init(&(_sc)->sc_mtx, device_get_nameunit((_sc)->sc_dev), \
NULL, MTX_DEF | MTX_RECURSE)

Definition at line 934 of file if_athvar.h.

◆ ATH_LPF_RSSI

#define ATH_LPF_RSSI (   x,
  y,
  len 
)     ((x != ATH_RSSI_DUMMY_MARKER) ? (((x) * ((len) - 1) + (y)) / (len)) : (y))

Definition at line 217 of file if_athvar.h.

◆ ATH_MAX_SCATTER

#define ATH_MAX_SCATTER   ATH_TXDESC /* max(tx,rx,beacon) desc's */

Definition at line 248 of file if_athvar.h.

◆ ATH_MGMT_TXBUF

#define ATH_MGMT_TXBUF   32

Definition at line 59 of file if_athvar.h.

◆ ATH_NODE

#define ATH_NODE (   ni)    ((struct ath_node *)(ni))

Definition at line 210 of file if_athvar.h.

◆ ATH_NODE_CONST

#define ATH_NODE_CONST (   ni)    ((const struct ath_node *)(ni))

Definition at line 211 of file if_athvar.h.

◆ ATH_NODE_LOCK

#define ATH_NODE_LOCK (   _an)    mtx_lock(&(_an)->an_mtx)

Definition at line 414 of file if_athvar.h.

◆ ATH_NODE_LOCK_ASSERT

#define ATH_NODE_LOCK_ASSERT (   _an)    mtx_assert(&(_an)->an_mtx, MA_OWNED)

Definition at line 416 of file if_athvar.h.

◆ ATH_NODE_UNLOCK

#define ATH_NODE_UNLOCK (   _an)    mtx_unlock(&(_an)->an_mtx)

Definition at line 415 of file if_athvar.h.

◆ ATH_NODE_UNLOCK_ASSERT

#define ATH_NODE_UNLOCK_ASSERT (   _an)
Value:
mtx_assert(&(_an)->an_mtx, \
MA_NOTOWNED)

Definition at line 417 of file if_athvar.h.

◆ ATH_PCI_AR9565_1ANT

#define ATH_PCI_AR9565_1ANT   0x0080

Definition at line 100 of file if_athvar.h.

◆ ATH_PCI_AR9565_2ANT

#define ATH_PCI_AR9565_2ANT   0x0100

Definition at line 101 of file if_athvar.h.

◆ ATH_PCI_BT_ANT_DIV

#define ATH_PCI_BT_ANT_DIV   0x0020

Definition at line 98 of file if_athvar.h.

◆ ATH_PCI_CUS198

#define ATH_PCI_CUS198   0x0001

Definition at line 93 of file if_athvar.h.

◆ ATH_PCI_CUS217

#define ATH_PCI_CUS217   0x0004

Definition at line 95 of file if_athvar.h.

◆ ATH_PCI_CUS230

#define ATH_PCI_CUS230   0x0002

Definition at line 94 of file if_athvar.h.

◆ ATH_PCI_CUS252

#define ATH_PCI_CUS252   0x0008

Definition at line 96 of file if_athvar.h.

◆ ATH_PCI_D3_L1_WAR

#define ATH_PCI_D3_L1_WAR   0x0040

Definition at line 99 of file if_athvar.h.

◆ ATH_PCI_KILLER

#define ATH_PCI_KILLER   0x0400

Definition at line 103 of file if_athvar.h.

◆ ATH_PCI_NO_PLL_PWRSAVE

#define ATH_PCI_NO_PLL_PWRSAVE   0x0200

Definition at line 102 of file if_athvar.h.

◆ ATH_PCI_WOW

#define ATH_PCI_WOW   0x0010

Definition at line 97 of file if_athvar.h.

◆ ATH_PCU_LOCK

#define ATH_PCU_LOCK (   _sc)    mtx_lock(&(_sc)->sc_pcu_mtx)

Definition at line 991 of file if_athvar.h.

◆ ATH_PCU_LOCK_ASSERT

#define ATH_PCU_LOCK_ASSERT (   _sc)
Value:
mtx_assert(&(_sc)->sc_pcu_mtx, \
MA_OWNED)

Definition at line 993 of file if_athvar.h.

◆ ATH_PCU_LOCK_DESTROY

#define ATH_PCU_LOCK_DESTROY (   _sc)    mtx_destroy(&(_sc)->sc_pcu_mtx)

Definition at line 990 of file if_athvar.h.

◆ ATH_PCU_LOCK_INIT

#define ATH_PCU_LOCK_INIT (   _sc)
Value:
do {\
snprintf((_sc)->sc_pcu_mtx_name, \
sizeof((_sc)->sc_pcu_mtx_name), \
"%s PCU lock", \
device_get_nameunit((_sc)->sc_dev)); \
mtx_init(&(_sc)->sc_pcu_mtx, (_sc)->sc_pcu_mtx_name, \
NULL, MTX_DEF); \
} while (0)

Definition at line 982 of file if_athvar.h.

◆ ATH_PCU_UNLOCK

#define ATH_PCU_UNLOCK (   _sc)    mtx_unlock(&(_sc)->sc_pcu_mtx)

Definition at line 992 of file if_athvar.h.

◆ ATH_PCU_UNLOCK_ASSERT

#define ATH_PCU_UNLOCK_ASSERT (   _sc)
Value:
mtx_assert(&(_sc)->sc_pcu_mtx, \
MA_NOTOWNED)

Definition at line 995 of file if_athvar.h.

◆ ATH_RSSI

#define ATH_RSSI (   x)    ATH_EP_RND(x, HAL_RSSI_EP_MULTIPLIER)

Definition at line 225 of file if_athvar.h.

◆ ATH_RSSI_DUMMY_MARKER

#define ATH_RSSI_DUMMY_MARKER   0x127

Definition at line 214 of file if_athvar.h.

◆ ATH_RSSI_IN

#define ATH_RSSI_IN (   x)    (ATH_EP_MUL((x), HAL_RSSI_EP_MULTIPLIER))

Definition at line 216 of file if_athvar.h.

◆ ATH_RSSI_LPF

#define ATH_RSSI_LPF (   x,
 
)
Value:
do { \
if ((y) >= -20) \
} while (0)
#define ATH_RSSI_IN(x)
Definition: if_athvar.h:216
#define ATH_RSSI_LPF_LEN
Definition: if_athvar.h:213
#define ATH_LPF_RSSI(x, y, len)
Definition: if_athvar.h:217

Definition at line 219 of file if_athvar.h.

◆ ATH_RSSI_LPF_LEN

#define ATH_RSSI_LPF_LEN   10

Definition at line 213 of file if_athvar.h.

◆ ATH_RX_LOCK

#define ATH_RX_LOCK (   _sc)    mtx_lock(&(_sc)->sc_rx_mtx)

Definition at line 1013 of file if_athvar.h.

◆ ATH_RX_LOCK_ASSERT

#define ATH_RX_LOCK_ASSERT (   _sc)
Value:
mtx_assert(&(_sc)->sc_rx_mtx, \
MA_OWNED)

Definition at line 1015 of file if_athvar.h.

◆ ATH_RX_LOCK_DESTROY

#define ATH_RX_LOCK_DESTROY (   _sc)    mtx_destroy(&(_sc)->sc_rx_mtx)

Definition at line 1012 of file if_athvar.h.

◆ ATH_RX_LOCK_INIT

#define ATH_RX_LOCK_INIT (   _sc)
Value:
do {\
snprintf((_sc)->sc_rx_mtx_name, \
sizeof((_sc)->sc_rx_mtx_name), \
"%s RX lock", \
device_get_nameunit((_sc)->sc_dev)); \
mtx_init(&(_sc)->sc_rx_mtx, (_sc)->sc_rx_mtx_name, \
NULL, MTX_DEF); \
} while (0)

Definition at line 1004 of file if_athvar.h.

◆ ATH_RX_UNLOCK

#define ATH_RX_UNLOCK (   _sc)    mtx_unlock(&(_sc)->sc_rx_mtx)

Definition at line 1014 of file if_athvar.h.

◆ ATH_RX_UNLOCK_ASSERT

#define ATH_RX_UNLOCK_ASSERT (   _sc)
Value:
mtx_assert(&(_sc)->sc_rx_mtx, \
MA_NOTOWNED)

Definition at line 1017 of file if_athvar.h.

◆ ATH_RXBUF

#define ATH_RXBUF   40 /* number of RX buffers */

Definition at line 70 of file if_athvar.h.

◆ ATH_TID_FILT_FIRST

#define ATH_TID_FILT_FIRST (   _tq)    TAILQ_FIRST(&(_tq)->filtq.tid_q)

Definition at line 477 of file if_athvar.h.

◆ ATH_TID_FILT_INSERT_HEAD

#define ATH_TID_FILT_INSERT_HEAD (   _tq,
  _elm,
  _field 
)
Value:
do { \
TAILQ_INSERT_HEAD(&(_tq)->filtq.tid_q, (_elm), _field); \
(_tq)->axq_depth++; \
(_tq)->an->an_swq_depth++; \
} while (0)

Definition at line 462 of file if_athvar.h.

◆ ATH_TID_FILT_INSERT_TAIL

#define ATH_TID_FILT_INSERT_TAIL (   _tq,
  _elm,
  _field 
)
Value:
do { \
TAILQ_INSERT_TAIL(&(_tq)->filtq.tid_q, (_elm), _field); \
(_tq)->axq_depth++; \
(_tq)->an->an_swq_depth++; \
} while (0)

Definition at line 467 of file if_athvar.h.

◆ ATH_TID_FILT_LAST

#define ATH_TID_FILT_LAST (   _tq,
  _field 
)    TAILQ_LAST(&(_tq)->filtq.tid_q,_field)

Definition at line 478 of file if_athvar.h.

◆ ATH_TID_FILT_REMOVE

#define ATH_TID_FILT_REMOVE (   _tq,
  _elm,
  _field 
)
Value:
do { \
TAILQ_REMOVE(&(_tq)->filtq.tid_q, _elm, _field); \
(_tq)->axq_depth--; \
(_tq)->an->an_swq_depth--; \
} while (0)

Definition at line 472 of file if_athvar.h.

◆ ATH_TID_FIRST

#define ATH_TID_FIRST (   _tq)    TAILQ_FIRST(&(_tq)->tid_q)

Definition at line 456 of file if_athvar.h.

◆ ATH_TID_INSERT_HEAD

#define ATH_TID_INSERT_HEAD (   _tq,
  _elm,
  _field 
)
Value:
do { \
TAILQ_INSERT_HEAD(&(_tq)->tid_q, (_elm), _field); \
(_tq)->axq_depth++; \
(_tq)->an->an_swq_depth++; \
} while (0)

Definition at line 441 of file if_athvar.h.

◆ ATH_TID_INSERT_TAIL

#define ATH_TID_INSERT_TAIL (   _tq,
  _elm,
  _field 
)
Value:
do { \
TAILQ_INSERT_TAIL(&(_tq)->tid_q, (_elm), _field); \
(_tq)->axq_depth++; \
(_tq)->an->an_swq_depth++; \
} while (0)

Definition at line 446 of file if_athvar.h.

◆ ATH_TID_LAST

#define ATH_TID_LAST (   _tq,
  _field 
)    TAILQ_LAST(&(_tq)->tid_q, _field)

Definition at line 457 of file if_athvar.h.

◆ ATH_TID_MAX_BUFS

#define ATH_TID_MAX_BUFS   (2 * IEEE80211_AGGR_BAWMAX)

Definition at line 120 of file if_athvar.h.

◆ ATH_TID_REMOVE

#define ATH_TID_REMOVE (   _tq,
  _elm,
  _field 
)
Value:
do { \
TAILQ_REMOVE(&(_tq)->tid_q, _elm, _field); \
(_tq)->axq_depth--; \
(_tq)->an->an_swq_depth--; \
} while (0)

Definition at line 451 of file if_athvar.h.

◆ ATH_TIMEOUT

#define ATH_TIMEOUT   1000

Definition at line 51 of file if_athvar.h.

◆ ATH_TX_LOCK

#define ATH_TX_LOCK (   _sc)    mtx_lock(&(_sc)->sc_tx_mtx)

Definition at line 956 of file if_athvar.h.

◆ ATH_TX_LOCK_ASSERT

#define ATH_TX_LOCK_ASSERT (   _sc)
Value:
mtx_assert(&(_sc)->sc_tx_mtx, \
MA_OWNED)

Definition at line 958 of file if_athvar.h.

◆ ATH_TX_LOCK_DESTROY

#define ATH_TX_LOCK_DESTROY (   _sc)    mtx_destroy(&(_sc)->sc_tx_mtx)

Definition at line 955 of file if_athvar.h.

◆ ATH_TX_LOCK_INIT

#define ATH_TX_LOCK_INIT (   _sc)
Value:
do {\
snprintf((_sc)->sc_tx_mtx_name, \
sizeof((_sc)->sc_tx_mtx_name), \
"%s TX lock", \
device_get_nameunit((_sc)->sc_dev)); \
mtx_init(&(_sc)->sc_tx_mtx, (_sc)->sc_tx_mtx_name, \
NULL, MTX_DEF); \
} while (0)

Definition at line 947 of file if_athvar.h.

◆ ATH_TX_TRYLOCK

#define ATH_TX_TRYLOCK (   _sc)
Value:
(mtx_owned(&(_sc)->sc_tx_mtx) != 0 && \
mtx_trylock(&(_sc)->sc_tx_mtx))

Definition at line 962 of file if_athvar.h.

◆ ATH_TX_UNLOCK

#define ATH_TX_UNLOCK (   _sc)    mtx_unlock(&(_sc)->sc_tx_mtx)

Definition at line 957 of file if_athvar.h.

◆ ATH_TX_UNLOCK_ASSERT

#define ATH_TX_UNLOCK_ASSERT (   _sc)
Value:
mtx_assert(&(_sc)->sc_tx_mtx, \
MA_NOTOWNED)

Definition at line 960 of file if_athvar.h.

◆ ATH_TXBUF

#define ATH_TXBUF   200 /* number of TX buffers */

Definition at line 73 of file if_athvar.h.

◆ ATH_TXBUF_LOCK

#define ATH_TXBUF_LOCK (   _sc)    mtx_lock(&(_sc)->sc_txbuflock)

Definition at line 1028 of file if_athvar.h.

◆ ATH_TXBUF_LOCK_ASSERT

#define ATH_TXBUF_LOCK_ASSERT (   _sc)     mtx_assert(&(_sc)->sc_txbuflock, MA_OWNED)

Definition at line 1030 of file if_athvar.h.

◆ ATH_TXBUF_LOCK_DESTROY

#define ATH_TXBUF_LOCK_DESTROY (   _sc)    mtx_destroy(&(_sc)->sc_txbuflock)

Definition at line 1027 of file if_athvar.h.

◆ ATH_TXBUF_LOCK_INIT

#define ATH_TXBUF_LOCK_INIT (   _sc)
Value:
do { \
snprintf((_sc)->sc_txname, sizeof((_sc)->sc_txname), "%s_buf", \
device_get_nameunit((_sc)->sc_dev)); \
mtx_init(&(_sc)->sc_txbuflock, (_sc)->sc_txname, NULL, MTX_DEF); \
} while (0)

Definition at line 1022 of file if_athvar.h.

◆ ATH_TXBUF_UNLOCK

#define ATH_TXBUF_UNLOCK (   _sc)    mtx_unlock(&(_sc)->sc_txbuflock)

Definition at line 1029 of file if_athvar.h.

◆ ATH_TXBUF_UNLOCK_ASSERT

#define ATH_TXBUF_UNLOCK_ASSERT (   _sc)     mtx_assert(&(_sc)->sc_txbuflock, MA_NOTOWNED)

Definition at line 1032 of file if_athvar.h.

◆ ATH_TXDESC

#define ATH_TXDESC   10 /* number of descriptors per buffer */

Definition at line 77 of file if_athvar.h.

◆ ATH_TXINTR_PERIOD

#define ATH_TXINTR_PERIOD   5 /* max number of batched tx descriptors */

Definition at line 80 of file if_athvar.h.

◆ ATH_TXMAXTRY

#define ATH_TXMAXTRY   11 /* max number of transmit attempts */

Definition at line 78 of file if_athvar.h.

◆ ATH_TXMGTTRY

#define ATH_TXMGTTRY   4 /* xmit attempts for mgt/ctl frames */

Definition at line 79 of file if_athvar.h.

◆ ATH_TXQ_FIRST

#define ATH_TXQ_FIRST (   _tq)    TAILQ_FIRST(&(_tq)->axq_q)

Definition at line 435 of file if_athvar.h.

◆ ATH_TXQ_INSERT_HEAD

#define ATH_TXQ_INSERT_HEAD (   _tq,
  _elm,
  _field 
)
Value:
do { \
TAILQ_INSERT_HEAD(&(_tq)->axq_q, (_elm), _field); \
(_tq)->axq_depth++; \
} while (0)

Definition at line 423 of file if_athvar.h.

◆ ATH_TXQ_INSERT_TAIL

#define ATH_TXQ_INSERT_TAIL (   _tq,
  _elm,
  _field 
)
Value:
do { \
TAILQ_INSERT_TAIL(&(_tq)->axq_q, (_elm), _field); \
(_tq)->axq_depth++; \
} while (0)

Definition at line 427 of file if_athvar.h.

◆ ATH_TXQ_LAST

#define ATH_TXQ_LAST (   _tq,
  _field 
)    TAILQ_LAST(&(_tq)->axq_q, _field)

Definition at line 436 of file if_athvar.h.

◆ ATH_TXQ_LOCK

#define ATH_TXQ_LOCK (   _tq)    mtx_lock(&(_tq)->axq_lock)

Definition at line 408 of file if_athvar.h.

◆ ATH_TXQ_LOCK_ASSERT

#define ATH_TXQ_LOCK_ASSERT (   _tq)    mtx_assert(&(_tq)->axq_lock, MA_OWNED)

Definition at line 410 of file if_athvar.h.

◆ ATH_TXQ_LOCK_DESTROY

#define ATH_TXQ_LOCK_DESTROY (   _tq)    mtx_destroy(&(_tq)->axq_lock)

Definition at line 407 of file if_athvar.h.

◆ ATH_TXQ_LOCK_INIT

#define ATH_TXQ_LOCK_INIT (   _sc,
  _tq 
)
Value:
do { \
snprintf((_tq)->axq_name, sizeof((_tq)->axq_name), "%s_txq%u", \
device_get_nameunit((_sc)->sc_dev), (_tq)->axq_qnum); \
mtx_init(&(_tq)->axq_lock, (_tq)->axq_name, NULL, MTX_DEF); \
} while (0)

Definition at line 402 of file if_athvar.h.

◆ ATH_TXQ_PUTRUNNING

#define ATH_TXQ_PUTRUNNING   0x0002 /* ath_hal_puttxbuf has been called */

Definition at line 356 of file if_athvar.h.

◆ ATH_TXQ_REMOVE

#define ATH_TXQ_REMOVE (   _tq,
  _elm,
  _field 
)
Value:
do { \
TAILQ_REMOVE(&(_tq)->axq_q, _elm, _field); \
(_tq)->axq_depth--; \
} while (0)

Definition at line 431 of file if_athvar.h.

◆ ATH_TXQ_SETUP

#define ATH_TXQ_SETUP (   sc,
 
)    ((sc)->sc_txqsetup & (1<<i))

Definition at line 1020 of file if_athvar.h.

◆ ATH_TXQ_SWQ

#define ATH_TXQ_SWQ   (HAL_NUM_TX_QUEUES+1) /* qnum for s/w only queue */

Definition at line 352 of file if_athvar.h.

◆ ATH_TXQ_UNLOCK

#define ATH_TXQ_UNLOCK (   _tq)    mtx_unlock(&(_tq)->axq_lock)

Definition at line 409 of file if_athvar.h.

◆ ATH_TXQ_UNLOCK_ASSERT

#define ATH_TXQ_UNLOCK_ASSERT (   _tq)
Value:
mtx_assert(&(_tq)->axq_lock, \
MA_NOTOWNED)

Definition at line 411 of file if_athvar.h.

◆ ATH_TXSTATUS_LOCK

#define ATH_TXSTATUS_LOCK (   _sc)    mtx_lock(&(_sc)->sc_txcomplock)

Definition at line 1043 of file if_athvar.h.

◆ ATH_TXSTATUS_LOCK_ASSERT

#define ATH_TXSTATUS_LOCK_ASSERT (   _sc)     mtx_assert(&(_sc)->sc_txcomplock, MA_OWNED)

Definition at line 1045 of file if_athvar.h.

◆ ATH_TXSTATUS_LOCK_DESTROY

#define ATH_TXSTATUS_LOCK_DESTROY (   _sc)    mtx_destroy(&(_sc)->sc_txcomplock)

Definition at line 1042 of file if_athvar.h.

◆ ATH_TXSTATUS_LOCK_INIT

#define ATH_TXSTATUS_LOCK_INIT (   _sc)
Value:
do { \
snprintf((_sc)->sc_txcompname, sizeof((_sc)->sc_txcompname), \
"%s_buf", \
device_get_nameunit((_sc)->sc_dev)); \
mtx_init(&(_sc)->sc_txcomplock, (_sc)->sc_txcompname, NULL, \
MTX_DEF); \
} while (0)

Definition at line 1035 of file if_athvar.h.

◆ ATH_TXSTATUS_UNLOCK

#define ATH_TXSTATUS_UNLOCK (   _sc)    mtx_unlock(&(_sc)->sc_txcomplock)

Definition at line 1044 of file if_athvar.h.

◆ ATH_UNLOCK

#define ATH_UNLOCK (   _sc)    mtx_unlock(&(_sc)->sc_mtx)

Definition at line 939 of file if_athvar.h.

◆ ATH_UNLOCK_ASSERT

#define ATH_UNLOCK_ASSERT (   _sc)    mtx_assert(&(_sc)->sc_mtx, MA_NOTOWNED)

Definition at line 941 of file if_athvar.h.

◆ ATH_VAP

#define ATH_VAP (   vap)    ((struct ath_vap *)(vap))

Definition at line 498 of file if_athvar.h.

Enumeration Type Documentation

◆ ath_buf_type_t

Enumerator
ATH_BUFTYPE_NORMAL 
ATH_BUFTYPE_MGMT 

Definition at line 227 of file if_athvar.h.

◆ ATH_RESET_TYPE

Enumerator
ATH_RESET_DEFAULT 
ATH_RESET_NOLOSS 
ATH_RESET_FULL 

Definition at line 507 of file if_athvar.h.

Function Documentation

◆ ath_attach()

int ath_attach ( u_int16_t  devid,
struct ath_softc sc 
)

Definition at line 601 of file if_ath.c.

References ath_hal::ah_config, AH_FALSE, ath_hal::ah_macRev, ath_hal::ah_macVersion, ath_hal::ah_magic, ath_hal::ah_phyRev, HAL_OPS_CONFIG::ah_serialise_reg_war, AR5211_DEVID, AR5212_DEVID_IBM, ath_addba_request(), ath_addba_response(), ath_addba_response_timeout(), ath_addba_stop(), ATH_AGGR_MAXSIZE, ATH_AGGR_MIN_QDEPTH, ATH_AGGR_SCHED_HIGH, ATH_AGGR_SCHED_LOW, ath_announce(), ath_bar_response(), ath_beaconq_setup(), ath_bmiss_proc(), ath_bstuck_proc(), ath_btcoex_attach(), ath_desc_alloc(), ath_desc_free(), ath_dfs_attach(), ath_dfs_tasklet(), ath_fatal_proc(), ath_fetch_mac_kenv(), ath_getchannels(), ath_getradiocaps(), ath_hal_attach(), ath_hal_ciphersupported, ath_hal_detach, ath_hal_get_rx_tsf_prec, ath_hal_get_tx_tsf_prec, ath_hal_getbssidmask, ath_hal_getcapability, ath_hal_getdefantenna, ath_hal_getmac, ath_hal_getmcastkeysearch, ath_hal_getrxchainmask, ath_hal_gettxchainmask, ath_hal_getwirelessmodes(), ath_hal_hasbssidmask, ath_hal_hasbssidmatch, ath_hal_hasbursting, ath_hal_hasdivantcomb, ath_hal_hasedma, ath_hal_hasenforcetxop, ath_hal_hasfastframes, ath_hal_hasmcastkeysearch, ath_hal_hasmybeacon, ath_hal_hasrxlnamixer, ath_hal_hastkipsplit, ath_hal_hastpc, ath_hal_hastsfadjust, ath_hal_hastxpowlimit, ath_hal_hasveol, ath_hal_haswmetkipmic, ath_hal_hwphycounters, ath_hal_keycachesize, ath_hal_keyreset, ath_hal_macversion, ath_hal_self_linked_final_rxdesc, ath_hal_setledstate, ath_hal_setmac, ath_hal_setmcastkeysearch, ath_hal_setrxchainmask, ath_hal_settkipsplit, ath_hal_settxchainmask, ath_hal_setupxtxdesc, ath_ioctl(), ATH_KEYMAX, ath_led_config(), ath_lna_div_attach(), ATH_LOCK, ath_newassoc(), ath_node_alloc(), ath_node_cleanup(), ath_node_free(), ath_node_getsignal(), ATH_NONAGGR_MIN_QDEPTH, ath_parent(), ath_power_setpower, ath_rate_attach(), ath_rate_setup(), ath_raw_xmit(), ath_recv_setup_edma(), ath_recv_setup_legacy(), ath_reset_proc(), ATH_RX_RADIOTAP_PRESENT, ath_rxdma_setup, ath_rxdma_teardown, ath_scan_end(), ath_scan_start(), ath_set_channel(), ath_set_quiet_ie(), ath_setcurmode(), ath_setdefantenna(), ath_setregdomain(), ath_setup_hal_config(), ath_spectral_attach(), ath_sysctl_hal_attach(), ath_sysctl_stats_attach(), ath_sysctlattach(), ath_tdma_update(), ath_transmit(), ath_tsfoor_proc(), ath_tx_cleanup(), ath_tx_cleanupq(), ATH_TX_RADIOTAP_PRESENT, ath_tx_setup(), ath_txbuf, ATH_TXBUF_LOCK_INIT, ath_txdma_setup, ath_txdma_teardown, ath_txq_sched_tasklet(), ath_txq_setup(), ATH_UNLOCK, ath_update_mcast(), ath_update_promisc(), ath_updateslot(), ath_vap_create(), ath_vap_delete(), ath_wme_update(), ath_xmit_setup_edma(), ath_xmit_setup_legacy(), DPRINTF, HAL_CAP_ENTERPRISE_MODE, HAL_CAP_HT, HAL_CAP_HT20_SGI, HAL_CAP_LDPC, HAL_CAP_RTS_AGGR_LIMIT, HAL_CAP_RX_STBC, HAL_CAP_SERIALISE_WAR, HAL_CAP_STREAMS, HAL_CAP_TX_STBC, HAL_CIPHER_AES_CCM, HAL_CIPHER_AES_OCB, HAL_CIPHER_CKIP, HAL_CIPHER_CLR, HAL_CIPHER_MIC, HAL_CIPHER_TKIP, HAL_CIPHER_WEP, HAL_LED_INIT, HAL_M_STA, HAL_MODE_108G, HAL_MODE_HT20, HAL_MODE_HT40, HAL_MODE_TURBO, HAL_OK, HAL_PM_AWAKE, HAL_PM_FULL_SLEEP, HAL_RX_QUEUE_HP, HAL_RX_QUEUE_LP, HAL_TX_QUEUE_CAB, HAL_WME_AC_BE, HAL_WME_AC_BK, HAL_WME_AC_VI, HAL_WME_AC_VO, if_ath_alq_init(), if_ath_alq_setcfg(), MIN, ath_rx_methods::recv_tasklet, ath_softc::sc_ac2q, ath_softc::sc_addba_request, ath_softc::sc_addba_response, ath_softc::sc_addba_response_timeout, ath_softc::sc_addba_stop, ath_softc::sc_aggr_limit, ath_softc::sc_ah, ath_softc::sc_bar_response, ath_softc::sc_bhalq, ath_softc::sc_blinking, ath_softc::sc_bmisstask, ath_softc::sc_bstucktask, ath_softc::sc_cabq, ath_softc::sc_cabq_enable, ath_softc::sc_cal_ch, ath_softc::sc_debug, ath_softc::sc_defant, ath_softc::sc_delim_min_pad, ath_softc::sc_dev, ath_softc::sc_dfstask, ath_softc::sc_do_mybeacon, ath_softc::sc_dolnadiv, ath_softc::sc_eepromdata, ath_softc::sc_ent_cfg, ath_softc::sc_fataltask, ath_softc::sc_hardled, ath_softc::sc_has_ldpc, ath_softc::sc_hasbmask, ath_softc::sc_hasbmatch, ath_softc::sc_hasclrkey, ath_softc::sc_hasdivcomb, ath_softc::sc_hasenforcetxop, ath_softc::sc_hastsfadd, ath_softc::sc_hasveol, ath_softc::sc_hwbssidmask, ath_softc::sc_hwq_limit_aggr, ath_softc::sc_hwq_limit_nonaggr, ath_softc::sc_ic, ath_softc::sc_invalid, ath_softc::sc_isedma, ath_softc::sc_keymap, ath_softc::sc_keymax, ath_softc::sc_led_net_pin, ath_softc::sc_led_pwr_pin, ath_softc::sc_ledidle, ath_softc::sc_ledon, ath_softc::sc_ledstate, ath_softc::sc_ledtimer, ath_softc::sc_mcastkey, ath_softc::sc_mrretry, ath_softc::sc_mrrprot, ath_softc::sc_mtx, ath_softc::sc_needmib, ath_softc::sc_node_cleanup, ath_softc::sc_node_free, ath_softc::sc_opmode, ath_softc::sc_pci_devinfo, ath_softc::sc_rc, ath_softc::sc_resettask, ath_softc::sc_rts_aggr_limit, ath_softc::sc_rx, ath_softc::sc_rx_lnamixer, ath_softc::sc_rx_rxlist, ath_softc::sc_rx_stbc, ath_softc::sc_rx_th, ath_softc::sc_rxchainmask, ath_softc::sc_rxslink, ath_softc::sc_rxtask, ath_softc::sc_rxtsf32, ath_softc::sc_setdefantenna, ath_softc::sc_sh, ath_softc::sc_softled, ath_softc::sc_splitmic, ath_softc::sc_st, ath_softc::sc_tid_hwq_hi, ath_softc::sc_tid_hwq_lo, ath_softc::sc_tq, ath_softc::sc_tsfoortask, ath_softc::sc_tx, ath_softc::sc_tx_stbc, ath_softc::sc_tx_th, ath_softc::sc_txchainmask, ath_softc::sc_txq_data_minfree, ath_softc::sc_txq_mcastq_maxdepth, ath_softc::sc_txq_node_maxdepth, ath_softc::sc_txq_node_psq_maxdepth, ath_softc::sc_txqtask, ath_softc::sc_use_ent, ath_softc::sc_wd_ch, ath_softc::sc_wmetkipmic, ath_rx_radiotap_header::wr_ihdr, ath_tx_radiotap_header::wt_ihdr, and ath_tx_methods::xmit_attach_comp_func.

Referenced by ath_ahb_attach(), and ath_pci_attach().

Here is the caller graph for this function:

◆ ath_detach()

◆ ath_intr()

void ath_intr ( void *  arg)

Definition at line 2079 of file if_ath.c.

References ath_hal::ah_intrstate, ath_hal::ah_syncstate, AH_TRUE, ath_stats::ast_bmiss, ath_stats::ast_hardware, ath_stats::ast_mib, ath_stats::ast_rx_intr, ath_stats::ast_rxeol, ath_stats::ast_rxorn, ath_stats::ast_tsfoor, ath_stats::ast_tx_cst, ath_stats::ast_tx_intr, ath_stats::ast_tx_timeout, ath_stats::ast_txurn, ath_beacon_proc(), ath_btcoex_mci_intr(), ath_hal_getisr, ath_hal_gettxintrtxqs, ath_hal_intrpend, ath_hal_intrset, ath_hal_mibevent, ath_hal_updatetxtriglevel, ATH_KTR, ATH_LOCK, ATH_PCU_LOCK, ATH_PCU_UNLOCK, ath_power_restore_power_state, ath_power_set_power_state, ath_power_setpower, ath_tdma_beacon_send(), ATH_UNLOCK, DPRINTF, HAL_INT_BMISS, HAL_INT_CST, HAL_INT_FATAL, HAL_INT_GTT, HAL_INT_MCI, HAL_INT_MIB, HAL_INT_RX, HAL_INT_RXEOL, HAL_INT_RXHP, HAL_INT_RXLP, HAL_INT_RXORN, HAL_INT_SWBA, HAL_INT_TSFOOR, HAL_INT_TX, HAL_INT_TXURN, HAL_PM_AWAKE, if_ath_alq_post_intr(), ath_rx_methods::recv_sched, ath_softc::sc_ah, ath_softc::sc_bmisstask, ath_softc::sc_dev, ath_softc::sc_fataltask, ath_softc::sc_halstats, ath_softc::sc_ic, ath_softc::sc_imask, ath_softc::sc_inreset_cnt, ath_softc::sc_intr_cnt, ath_softc::sc_intr_stats, ath_softc::sc_invalid, ath_softc::sc_isedma, ath_softc::sc_kickpcu, ath_softc::sc_running, ath_softc::sc_rx, ath_softc::sc_rxlink, ath_softc::sc_stats, ath_softc::sc_tdma, ath_softc::sc_tdmaswba, ath_softc::sc_tq, ath_softc::sc_tsfoortask, ath_softc::sc_txq_active, ath_softc::sc_txtask, and ath_intr_stats::sync_intr.

Referenced by ath_ahb_intr(), and ath_pci_attach().

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

◆ ath_resume()

◆ ath_shutdown()

void ath_shutdown ( struct ath_softc sc)

Definition at line 2066 of file if_ath.c.

References ATH_LOCK, ath_stop(), and ATH_UNLOCK.

Referenced by ath_ahb_shutdown(), and ath_pci_shutdown().

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

◆ ath_suspend()

void ath_suspend ( struct ath_softc sc)

Definition at line 1912 of file if_ath.c.

References ath_hal_enablepcie, ath_hal_intrset, ATH_LOCK, ATH_UNLOCK, ath_softc::sc_ah, ath_softc::sc_cal_ch, ath_softc::sc_ic, ath_softc::sc_resume_up, and ath_softc::sc_tq.

Referenced by ath_ahb_suspend(), and ath_pci_suspend().

Here is the caller graph for this function:

◆ TAILQ_HEAD()

typedef TAILQ_HEAD ( ath_bufhead_s  ,
ath_buf   
)