FreeBSD kernel ATH device code
|
#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>
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 *) |
#define AR_Q_TXE 0x0840 /* MAC Transmit Queue enable */ |
Definition at line 1181 of file if_athvar.h.
#define AR_TSF_L32 0x804c /* MAC local clock lower 32 bits */ |
Definition at line 1110 of file if_athvar.h.
#define ATH_BCBUF 4 /* number of beacon buffers */ |
Definition at line 75 of file if_athvar.h.
#define ATH_BEACON_AIFS_DEFAULT 1 /* default aifs for ap beacon q */ |
Definition at line 82 of file if_athvar.h.
#define ATH_BEACON_CWMAX_DEFAULT 0 /* default cwmax for ap beacon q */ |
Definition at line 84 of file if_athvar.h.
#define ATH_BEACON_CWMIN_DEFAULT 0 /* default cwmin for ap beacon q */ |
Definition at line 83 of file if_athvar.h.
#define ATH_BUF_BUSY 0x00000002 /* (tx) desc owned by h/w */ |
Definition at line 318 of file if_athvar.h.
#define ATH_BUF_FIFOEND 0x00000004 |
Definition at line 319 of file if_athvar.h.
#define ATH_BUF_FIFOPTR 0x00000008 |
Definition at line 320 of file if_athvar.h.
#define ATH_BUF_FLAGS_CLONE (ATH_BUF_MGMT | ATH_BUF_TOA_PROBE) |
Definition at line 323 of file if_athvar.h.
#define ATH_BUF_MGMT 0x00000001 /* (tx) desc is a mgmt desc */ |
Definition at line 317 of file if_athvar.h.
#define ATH_BUF_TOA_PROBE 0x00000010 /* ToD/ToA exchange probe */ |
Definition at line 321 of file if_athvar.h.
#define ATH_EP_MUL | ( | x, | |
mul | |||
) | ((x) * (mul)) |
Definition at line 215 of file if_athvar.h.
#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.
#define ath_hal_ani_poll | ( | _ah, | |
_chan | |||
) | ((*(_ah)->ah_aniPoll)((_ah), (_chan))) |
Definition at line 1192 of file if_athvar.h.
#define ath_hal_beaconinit | ( | _ah, | |
_nextb, | |||
_bperiod | |||
) | ((*(_ah)->ah_beaconInit)((_ah), (_nextb), (_bperiod))) |
Definition at line 1141 of file if_athvar.h.
#define ath_hal_beaconreset | ( | _ah | ) | ((*(_ah)->ah_resetStationBeaconTimers)((_ah))) |
Definition at line 1143 of file if_athvar.h.
#define ath_hal_beaconsettimers | ( | _ah, | |
_bt | |||
) | ((*(_ah)->ah_setBeaconTimers)((_ah), (_bt))) |
Definition at line 1145 of file if_athvar.h.
#define ath_hal_beacontimers | ( | _ah, | |
_bs | |||
) | ((*(_ah)->ah_setStationBeaconTimers)((_ah), (_bs))) |
Definition at line 1147 of file if_athvar.h.
#define ath_hal_btcoex_disable | ( | _ah | ) | ((*(_ah)->ah_btCoexDisable)((_ah))) |
Definition at line 1527 of file if_athvar.h.
#define ath_hal_btcoex_enable | ( | _ah | ) | ((*(_ah)->ah_btCoexEnable)((_ah))) |
Definition at line 1525 of file if_athvar.h.
#define ath_hal_btcoex_mci_detach | ( | _ah | ) | ((*(_ah)->ah_btMciDetach)((_ah))) |
Definition at line 1538 of file if_athvar.h.
#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.
#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.
#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.
#define ath_hal_btcoex_mci_state | ( | _ah, | |
_st, | |||
_pd | |||
) | ((*(_ah)->ah_btMciState)((_ah), (_st), (_pd))) |
Definition at line 1536 of file if_athvar.h.
#define ath_hal_btcoex_set_bmiss_thresh | ( | _ah, | |
_thr | |||
) | ((*(_ah)->ah_btCoexSetBmissThresh)((_ah), (_thr))) |
Definition at line 1521 of file if_athvar.h.
#define ath_hal_btcoex_set_config | ( | _ah, | |
_cfg | |||
) | ((*(_ah)->ah_btCoexSetConfig)((_ah), (_cfg))) |
Definition at line 1515 of file if_athvar.h.
#define ath_hal_btcoex_set_info | ( | _ah, | |
_info | |||
) | ((*(_ah)->ah_btCoexSetInfo)((_ah), (_info))) |
Definition at line 1513 of file if_athvar.h.
#define ath_hal_btcoex_set_parameter | ( | _ah, | |
_attrib, | |||
_val | |||
) | ((*(_ah)->ah_btCoexSetParameter)((_ah), (_attrib), (_val))) |
Definition at line 1523 of file if_athvar.h.
#define ath_hal_btcoex_set_qcu_thresh | ( | _ah, | |
_qcuid | |||
) | ((*(_ah)->ah_btCoexSetQcuThresh)((_ah), (_qcuid))) |
Definition at line 1517 of file if_athvar.h.
#define ath_hal_btcoex_set_weights | ( | _ah, | |
_weight | |||
) | ((*(_ah)->ah_btCoexSetWeights)((_ah), (_weight))) |
Definition at line 1519 of file if_athvar.h.
#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.
#define ath_hal_calibrate | ( | _ah, | |
_chan, | |||
_iqcal | |||
) | ((*(_ah)->ah_perCalibration)((_ah), (_chan), (_iqcal))) |
Definition at line 1133 of file if_athvar.h.
#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.
#define ath_hal_calreset | ( | _ah, | |
_chan | |||
) | ((*(_ah)->ah_resetCalValid)((_ah), (_chan))) |
Definition at line 1137 of file if_athvar.h.
#define ath_hal_chaintxdesc | ( | _ah, | |
_ds, | |||
_bl, | |||
_sl, | |||
_pktlen, | |||
_hdrlen, | |||
_type, | |||
_keyix, | |||
_cipher, | |||
_delims, | |||
_first, | |||
_last, | |||
_lastaggr | |||
) |
Definition at line 1425 of file if_athvar.h.
#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.
#define ath_hal_clr11n_aggr | ( | _ah, | |
_ds | |||
) | ((*(_ah)->ah_clr11nAggr)((_ah), (_ds))) |
Definition at line 1446 of file if_athvar.h.
#define ath_hal_detach | ( | _ah | ) | ((*(_ah)->ah_detach)((_ah))) |
Definition at line 1058 of file if_athvar.h.
#define ath_hal_disablepcie | ( | _ah | ) | ((*(_ah)->ah_disablePCIE)((_ah))) |
Definition at line 1465 of file if_athvar.h.
#define ath_hal_div_comb_conf_get | ( | _ah, | |
_conf | |||
) | ((*(_ah)->ah_divLnaConfGet)((_ah), (_conf))) |
Definition at line 1541 of file if_athvar.h.
#define ath_hal_div_comb_conf_set | ( | _ah, | |
_conf | |||
) | ((*(_ah)->ah_divLnaConfSet)((_ah), (_conf))) |
Definition at line 1543 of file if_athvar.h.
#define ath_hal_enabledfs | ( | _ah, | |
_param | |||
) | ((*(_ah)->ah_enableDfs)((_ah), (_param))) |
Definition at line 1474 of file if_athvar.h.
#define ath_hal_enablepcie | ( | _ah, | |
_restore, | |||
_poweroff | |||
) | ((*(_ah)->ah_configPCIE)((_ah), (_restore), (_poweroff))) |
Definition at line 1463 of file if_athvar.h.
#define ath_hal_filltxdesc | ( | _ah, | |
_ds, | |||
_b, | |||
_l, | |||
_did, | |||
_qid, | |||
_first, | |||
_last, | |||
_ds0 | |||
) |
Definition at line 1400 of file if_athvar.h.
#define ath_hal_get_chan_ext_busy | ( | _ah | ) | ((*(_ah)->ah_get11nExtBusy)((_ah))) |
Definition at line 1489 of file if_athvar.h.
#define ath_hal_get_mib_cycle_counts | ( | _ah, | |
_sample | |||
) | ((*(_ah)->ah_getMibCycleCounts)((_ah), (_sample))) |
Definition at line 1487 of file if_athvar.h.
#define ath_hal_get_rx_tsf_prec | ( | _ah, | |
_pr | |||
) |
Definition at line 1380 of file if_athvar.h.
#define ath_hal_get_tx_tsf_prec | ( | _ah, | |
_pr | |||
) |
Definition at line 1383 of file if_athvar.h.
#define ath_hal_getacktimeout | ( | _ah | ) | ((*(_ah)->ah_getAckTimeout)((_ah))) |
Definition at line 1202 of file if_athvar.h.
#define ath_hal_getantennaswitch | ( | _ah | ) | ((*(_ah)->ah_getAntennaSwitch)((_ah))) |
Definition at line 1240 of file if_athvar.h.
#define ath_hal_getbssidmask | ( | _ah, | |
_mask | |||
) | ((*(_ah)->ah_getBssIdMask)((_ah), (_mask))) |
Definition at line 1071 of file if_athvar.h.
#define ath_hal_getcapability | ( | _ah, | |
_cap, | |||
_param, | |||
_result | |||
) | ((*(_ah)->ah_getCapability)((_ah), (_cap), (_param), (_result))) |
Definition at line 1208 of file if_athvar.h.
#define ath_hal_getchannoise | ( | _ah, | |
_c | |||
) | ((*(_ah)->ah_getChanNoise)((_ah), (_c))) |
Definition at line 1360 of file if_athvar.h.
#define ath_hal_getcountrycode | ( | _ah, | |
_pcc | |||
) | (*(_pcc) = (_ah)->ah_countryCode) |
Definition at line 1218 of file if_athvar.h.
#define ath_hal_getctstimeout | ( | _ah | ) | ((*(_ah)->ah_getCTSTimeout)((_ah))) |
Definition at line 1206 of file if_athvar.h.
#define ath_hal_getdefantenna | ( | _ah | ) | ((*(_ah)->ah_getDefAntenna)((_ah))) |
Definition at line 1186 of file if_athvar.h.
#define ath_hal_getdfsdefaultthresh | ( | _ah, | |
_param | |||
) | ((*(_ah)->ah_getDfsDefaultThresh)((_ah), (_param))) |
Definition at line 1478 of file if_athvar.h.
#define ath_hal_getdfsthresh | ( | _ah, | |
_param | |||
) | ((*(_ah)->ah_getDfsThresh)((_ah), (_param))) |
Definition at line 1476 of file if_athvar.h.
#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.
#define ath_hal_getdiagstate | ( | _ah, | |
_id, | |||
_indata, | |||
_insize, | |||
_outdata, | |||
_outsize | |||
) |
Definition at line 1165 of file if_athvar.h.
#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.
#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.
#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.
#define ath_hal_getintmit | ( | _ah | ) |
Definition at line 1311 of file if_athvar.h.
#define ath_hal_getisr | ( | _ah, | |
_pmask | |||
) | ((*(_ah)->ah_getPendingInterrupts)((_ah), (_pmask))) |
Definition at line 1081 of file if_athvar.h.
#define ath_hal_getmac | ( | _ah, | |
_mac | |||
) | ((*(_ah)->ah_getMacAddress)((_ah), (_mac))) |
Definition at line 1067 of file if_athvar.h.
#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.
#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.
#define ath_hal_getnav | ( | _ah | ) | ((*(_ah)->ah_getNav)((_ah))) |
Definition at line 1495 of file if_athvar.h.
#define ath_hal_getnexttbtt | ( | _ah | ) | ((*(_ah)->ah_getNextTBTT)((_ah))) |
Definition at line 1149 of file if_athvar.h.
#define ath_hal_getntxmaps | ( | _ah, | |
_req | |||
) |
Definition at line 1344 of file if_athvar.h.
#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.
#define ath_hal_getratetable | ( | _ah, | |
_mode | |||
) | ((*(_ah)->ah_getRateTable)((_ah), (_mode))) |
Definition at line 1065 of file if_athvar.h.
#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.
#define ath_hal_getrfgain | ( | _ah | ) | ((*(_ah)->ah_getRfGain)((_ah))) |
Definition at line 1184 of file if_athvar.h.
#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.
#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.
#define ath_hal_getrxbuf | ( | _ah, | |
_rxq | |||
) | ((*(_ah)->ah_getRxDP)((_ah), (_rxq))) |
Definition at line 1127 of file if_athvar.h.
#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.
#define ath_hal_getrxfifodepth | ( | _ah, | |
_qtype, | |||
_req | |||
) |
Definition at line 1341 of file if_athvar.h.
#define ath_hal_getrxfilter | ( | _ah | ) | ((*(_ah)->ah_getRxFilter)((_ah))) |
Definition at line 1099 of file if_athvar.h.
#define ath_hal_getrxstatuslen | ( | _ah, | |
_req | |||
) |
Definition at line 1353 of file if_athvar.h.
#define ath_hal_getslottime | ( | _ah | ) | ((*(_ah)->ah_getSlotTime)((_ah))) |
Definition at line 1198 of file if_athvar.h.
#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.
#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.
#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.
#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.
#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.
#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.
#define ath_hal_gettsf32 | ( | _ah | ) | OS_REG_READ(_ah, AR_TSF_L32) |
Definition at line 1111 of file if_athvar.h.
#define ath_hal_gettsf64 | ( | _ah | ) | ((*(_ah)->ah_getTsf64)((_ah))) |
Definition at line 1113 of file if_athvar.h.
#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.
#define ath_hal_gettxbuf | ( | _ah, | |
_q | |||
) | ((*(_ah)->ah_getTxDP)((_ah), (_q))) |
Definition at line 1123 of file if_athvar.h.
#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.
#define ath_hal_gettxcompletionrates | ( | _ah, | |
_ds, | |||
_rates, | |||
_tries | |||
) | ((*(_ah)->ah_getTxCompletionRates)((_ah), (_ds), (_rates), (_tries))) |
Definition at line 1407 of file if_athvar.h.
#define ath_hal_gettxdesclen | ( | _ah, | |
_req | |||
) |
Definition at line 1347 of file if_athvar.h.
#define ath_hal_gettxdesclink | ( | _ah, | |
_ds, | |||
_link | |||
) | ((*(_ah)->ah_getTxDescLink)((_ah), (_ds), (_link))) |
Definition at line 1411 of file if_athvar.h.
#define ath_hal_gettxdesclinkptr | ( | _ah, | |
_ds, | |||
_linkptr | |||
) | ((*(_ah)->ah_getTxDescLinkPtr)((_ah), (_ds), (_linkptr))) |
Definition at line 1413 of file if_athvar.h.
#define ath_hal_gettxintrtxqs | ( | _ah, | |
_txqs | |||
) | ((*(_ah)->ah_getTxIntrQueue)((_ah), (_txqs))) |
Definition at line 1405 of file if_athvar.h.
#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.
#define ath_hal_gettxqueueprops | ( | _ah, | |
_q, | |||
_qi | |||
) | ((*(_ah)->ah_getTxQueueProps)((_ah), (_q), (_qi))) |
Definition at line 1176 of file if_athvar.h.
#define ath_hal_gettxrawtxdesc | ( | _ah, | |
_txstatus | |||
) | ((*(_ah)->ah_getTxRawTxDesc)((_ah), (_txstatus))) |
Definition at line 1418 of file if_athvar.h.
#define ath_hal_gettxstatuslen | ( | _ah, | |
_req | |||
) |
Definition at line 1350 of file if_athvar.h.
#define ath_hal_gpioCfgOutput | ( | _ah, | |
_gpio, | |||
_type | |||
) | ((*(_ah)->ah_gpioCfgOutput)((_ah), (_gpio), (_type))) |
Definition at line 1451 of file if_athvar.h.
#define ath_hal_gpioget | ( | _ah, | |
_gpio | |||
) | ((*(_ah)->ah_gpioGet)((_ah), (_gpio))) |
Definition at line 1455 of file if_athvar.h.
#define ath_hal_gpioset | ( | _ah, | |
_gpio, | |||
_b | |||
) | ((*(_ah)->ah_gpioSet)((_ah), (_gpio), (_b))) |
Definition at line 1453 of file if_athvar.h.
#define ath_hal_gpiosetintr | ( | _ah, | |
_gpio, | |||
_b | |||
) | ((*(_ah)->ah_gpioSetIntr)((_ah), (_gpio), (_b))) |
Definition at line 1457 of file if_athvar.h.
#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.
#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.
#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.
#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.
#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.
#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.
#define ath_hal_hasedma | ( | _ah | ) |
Definition at line 1338 of file if_athvar.h.
#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.
#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.
#define ath_hal_hasintmit | ( | _ah | ) |
Definition at line 1308 of file if_athvar.h.
#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.
#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.
#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.
#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.
#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.
#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.
#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.
#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.
#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.
#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.
#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.
#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.
#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.
#define ath_hal_intrget | ( | _ah | ) | ((*(_ah)->ah_getInterrupts)((_ah))) |
Definition at line 1077 of file if_athvar.h.
#define ath_hal_intrpend | ( | _ah | ) | ((*(_ah)->ah_isInterruptPending)((_ah))) |
Definition at line 1079 of file if_athvar.h.
#define ath_hal_intrset | ( | _ah, | |
_mask | |||
) | ((*(_ah)->ah_setInterrupts)((_ah), (_mask))) |
Definition at line 1075 of file if_athvar.h.
#define ath_hal_is_fast_clock_enabled | ( | _ah | ) | ((*(_ah)->ah_isFastClockEnabled)((_ah))) |
Definition at line 1483 of file if_athvar.h.
#define ath_hal_keycachesize | ( | _ah | ) | ((*(_ah)->ah_getKeyCacheSize)((_ah))) |
Definition at line 1089 of file if_athvar.h.
#define ath_hal_keyisvalid | ( | _ah, | |
_ix | |||
) | (((*(_ah)->ah_isKeyCacheEntryValid)((_ah), (_ix)))) |
Definition at line 1095 of file if_athvar.h.
#define ath_hal_keyreset | ( | _ah, | |
_ix | |||
) | ((*(_ah)->ah_resetKeyCacheEntry)((_ah), (_ix))) |
Definition at line 1091 of file if_athvar.h.
#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.
#define ath_hal_keysetmac | ( | _ah, | |
_ix, | |||
_mac | |||
) | ((*(_ah)->ah_setKeyCacheEntryMac)((_ah), (_ix), (_mac))) |
Definition at line 1097 of file if_athvar.h.
#define ath_hal_macversion | ( | _ah | ) | (((_ah)->ah_macVersion << 4) | ((_ah)->ah_macRev)) |
Definition at line 1063 of file if_athvar.h.
#define ath_hal_mibevent | ( | _ah, | |
_stats | |||
) | ((*(_ah)->ah_procMibEvent)((_ah), (_stats))) |
Definition at line 1194 of file if_athvar.h.
#define ath_hal_numtxpending | ( | _ah, | |
_q | |||
) | ((*(_ah)->ah_numTxPending)((_ah), (_q))) |
Definition at line 1125 of file if_athvar.h.
#define ath_hal_phydisable | ( | _ah | ) | ((*(_ah)->ah_phyDisable)((_ah))) |
Definition at line 1153 of file if_athvar.h.
#define ath_hal_procradarevent | ( | _ah, | |
_rxs, | |||
_fulltsf, | |||
_buf, | |||
_event | |||
) |
Definition at line 1480 of file if_athvar.h.
#define ath_hal_putrxbuf | ( | _ah, | |
_bufaddr, | |||
_rxq | |||
) | ((*(_ah)->ah_setRxDP)((_ah), (_bufaddr), (_rxq))) |
Definition at line 1107 of file if_athvar.h.
#define ath_hal_puttxbuf | ( | _ah, | |
_q, | |||
_bufaddr | |||
) | ((*(_ah)->ah_setTxDP)((_ah), (_q), (_bufaddr))) |
Definition at line 1121 of file if_athvar.h.
#define ath_hal_radar_wait | ( | _ah, | |
_chan | |||
) | ((*(_ah)->ah_radarWait)((_ah), (_chan))) |
Definition at line 1485 of file if_athvar.h.
#define ath_hal_releasetxqueue | ( | _ah, | |
_q | |||
) | ((*(_ah)->ah_releaseTxQueue)((_ah), (_q))) |
Definition at line 1174 of file if_athvar.h.
#define ath_hal_reset | ( | _ah, | |
_opmode, | |||
_chan, | |||
_fullreset, | |||
_resettype, | |||
_pstatus | |||
) |
Definition at line 1060 of file if_athvar.h.
#define ath_hal_resettsf | ( | _ah | ) | ((*(_ah)->ah_resetTsf)((_ah))) |
Definition at line 1117 of file if_athvar.h.
#define ath_hal_resettxqueue | ( | _ah, | |
_q | |||
) | ((*(_ah)->ah_resetTxQueue)((_ah), (_q))) |
Definition at line 1172 of file if_athvar.h.
#define ath_hal_rxena | ( | _ah | ) | ((*(_ah)->ah_enableReceive)((_ah))) |
Definition at line 1119 of file if_athvar.h.
#define ath_hal_rxmonitor | ( | _ah, | |
_arg, | |||
_chan | |||
) | ((*(_ah)->ah_rxMonitor)((_ah), (_arg), (_chan))) |
Definition at line 1190 of file if_athvar.h.
#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.
#define ath_hal_self_linked_final_rxdesc | ( | _ah | ) |
Definition at line 1375 of file if_athvar.h.
#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.
#define ath_hal_set11n_aggr_last | ( | _ah, | |
_ds | |||
) | ((*(_ah)->ah_set11nAggrLast)((_ah), (_ds))) |
Definition at line 1441 of file if_athvar.h.
#define ath_hal_set11n_aggr_middle | ( | _ah, | |
_ds, | |||
_num | |||
) | ((*(_ah)->ah_set11nAggrMiddle)((_ah), (_ds), (_num))) |
Definition at line 1439 of file if_athvar.h.
#define ath_hal_set11n_virtmorefrag | ( | _ah, | |
_ds, | |||
_v | |||
) | ((*(_ah)->ah_set11nVirtMoreFrag)((_ah), (_ds), (_v))) |
Definition at line 1448 of file if_athvar.h.
#define ath_hal_set11nburstduration | ( | _ah, | |
_ds, | |||
_dur | |||
) | ((*(_ah)->ah_set11nBurstDuration)((_ah), (_ds), (_dur))) |
Definition at line 1444 of file if_athvar.h.
#define ath_hal_set11nratescenario | ( | _ah, | |
_ds, | |||
_dur, | |||
_rt, | |||
_series, | |||
_ns, | |||
_flags | |||
) |
Definition at line 1433 of file if_athvar.h.
#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.
#define ath_hal_setacktimeout | ( | _ah, | |
_us | |||
) | ((*(_ah)->ah_setAckTimeout)((_ah), (_us))) |
Definition at line 1200 of file if_athvar.h.
#define ath_hal_setantennaswitch | ( | _ah, | |
_v | |||
) | ((*(_ah)->ah_setAntennaSwitch)((_ah), (_v))) |
Definition at line 1242 of file if_athvar.h.
#define ath_hal_setassocid | ( | _ah, | |
_bss, | |||
_associd | |||
) | ((*(_ah)->ah_writeAssocid)((_ah), (_bss), (_associd))) |
Definition at line 1151 of file if_athvar.h.
#define ath_hal_setbssidmask | ( | _ah, | |
_mask | |||
) | ((*(_ah)->ah_setBssIdMask)((_ah), (_mask))) |
Definition at line 1073 of file if_athvar.h.
#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.
#define ath_hal_setchainmasks | ( | _ah, | |
_txchainmask, | |||
_rxchainmask | |||
) | ((*(_ah)->ah_setChainMasks)((_ah), (_txchainmask), (_rxchainmask))) |
Definition at line 1491 of file if_athvar.h.
#define ath_hal_setchannel | ( | _ah, | |
_chan | |||
) | ((*(_ah)->ah_setChannel)((_ah), (_chan))) |
Definition at line 1131 of file if_athvar.h.
#define ath_hal_setctstimeout | ( | _ah, | |
_us | |||
) | ((*(_ah)->ah_setCTSTimeout)((_ah), (_us))) |
Definition at line 1204 of file if_athvar.h.
#define ath_hal_setdefantenna | ( | _ah, | |
_ant | |||
) | ((*(_ah)->ah_setDefAntenna)((_ah), (_ant))) |
Definition at line 1188 of file if_athvar.h.
#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.
#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.
#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.
#define ath_hal_setintmit | ( | _ah, | |
_v | |||
) |
Definition at line 1314 of file if_athvar.h.
#define ath_hal_setledstate | ( | _ah, | |
_state | |||
) | ((*(_ah)->ah_setLedState)((_ah), (_state))) |
Definition at line 1139 of file if_athvar.h.
#define ath_hal_setmac | ( | _ah, | |
_mac | |||
) | ((*(_ah)->ah_setMacAddress)((_ah), (_mac))) |
Definition at line 1069 of file if_athvar.h.
#define ath_hal_setmcastfilter | ( | _ah, | |
_mfilt0, | |||
_mfilt1 | |||
) | ((*(_ah)->ah_setMulticastFilter)((_ah), (_mfilt0), (_mfilt1))) |
Definition at line 1103 of file if_athvar.h.
#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.
#define ath_hal_setnav | ( | _ah, | |
_val | |||
) | ((*(_ah)->ah_setNav)((_ah), (_val))) |
Definition at line 1497 of file if_athvar.h.
#define ath_hal_setopmode | ( | _ah | ) | ((*(_ah)->ah_setPCUConfig)((_ah))) |
Definition at line 1155 of file if_athvar.h.
#define ath_hal_setpower | ( | _ah, | |
_mode | |||
) | ((*(_ah)->ah_setPowerMode)((_ah), (_mode), AH_TRUE)) |
Definition at line 1085 of file if_athvar.h.
#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.
#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.
#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.
#define ath_hal_setrxbufsize | ( | _ah, | |
_req | |||
) |
Definition at line 1356 of file if_athvar.h.
#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.
#define ath_hal_setrxfilter | ( | _ah, | |
_filter | |||
) | ((*(_ah)->ah_setRxFilter)((_ah), (_filter))) |
Definition at line 1101 of file if_athvar.h.
#define ath_hal_setselfgenpower | ( | _ah, | |
_mode | |||
) | ((*(_ah)->ah_setPowerMode)((_ah), (_mode), AH_FALSE)) |
Definition at line 1087 of file if_athvar.h.
#define ath_hal_setslottime | ( | _ah, | |
_us | |||
) | ((*(_ah)->ah_setSlotTime)((_ah), (_us))) |
Definition at line 1196 of file if_athvar.h.
#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.
#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.
#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.
#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.
#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.
#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.
#define ath_hal_settsf64 | ( | _ah, | |
_val | |||
) | ((*(_ah)->ah_setTsf64)((_ah), (_val))) |
Definition at line 1115 of file if_athvar.h.
#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.
#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.
#define ath_hal_settxdesclink | ( | _ah, | |
_ds, | |||
_link | |||
) | ((*(_ah)->ah_setTxDescLink)((_ah), (_ds), (_link))) |
Definition at line 1409 of file if_athvar.h.
#define ath_hal_settxpowlimit | ( | _ah, | |
_pow | |||
) | ((*(_ah)->ah_setTxPowerLimit)((_ah), (_pow))) |
Definition at line 1254 of file if_athvar.h.
#define ath_hal_settxqueueprops | ( | _ah, | |
_q, | |||
_qi | |||
) | ((*(_ah)->ah_setTxQueueProps)((_ah), (_q), (_qi))) |
Definition at line 1178 of file if_athvar.h.
#define ath_hal_setupfirsttxdesc | ( | _ah, | |
_ds, | |||
_aggrlen, | |||
_flags, | |||
_txpower, | |||
_txr0, | |||
_txtr0, | |||
_antm, | |||
_rcr, | |||
_rcd | |||
) |
Definition at line 1421 of file if_athvar.h.
#define ath_hal_setuplasttxdesc | ( | _ah, | |
_ds, | |||
_ds0 | |||
) | ((*(_ah)->ah_setupLastTxDesc)((_ah), (_ds), (_ds0))) |
Definition at line 1430 of file if_athvar.h.
#define ath_hal_setuprxdesc | ( | _ah, | |
_ds, | |||
_size, | |||
_intreq | |||
) | ((*(_ah)->ah_setupRxDesc)((_ah), (_ds), (_size), (_intreq))) |
Definition at line 1386 of file if_athvar.h.
#define ath_hal_setuptxdesc | ( | _ah, | |
_ds, | |||
_plen, | |||
_hlen, | |||
_atype, | |||
_txpow, | |||
_txr0, | |||
_txtr0, | |||
_keyix, | |||
_ant, | |||
_flags, | |||
_rtsrate, | |||
_rtsdura | |||
) |
Definition at line 1390 of file if_athvar.h.
#define ath_hal_setuptxqueue | ( | _ah, | |
_type, | |||
_irq | |||
) | ((*(_ah)->ah_setupTxQueue)((_ah), (_type), (_irq))) |
Definition at line 1170 of file if_athvar.h.
#define ath_hal_setuptxstatusring | ( | _ah, | |
_tsstart, | |||
_tspstart, | |||
_size | |||
) |
Definition at line 1415 of file if_athvar.h.
#define ath_hal_setupxtxdesc | ( | _ah, | |
_ds, | |||
_txr1, | |||
_txtr1, | |||
_txr2, | |||
_txtr2, | |||
_txr3, | |||
_txtr3 | |||
) |
Definition at line 1396 of file if_athvar.h.
#define ath_hal_spectral_configure | ( | _ah, | |
_p | |||
) | ((*(_ah)->ah_spectralConfigure)((_ah), (_p))) |
Definition at line 1504 of file if_athvar.h.
#define ath_hal_spectral_get_config | ( | _ah, | |
_p | |||
) | ((*(_ah)->ah_spectralGetConfig)((_ah), (_p))) |
Definition at line 1502 of file if_athvar.h.
#define ath_hal_spectral_start | ( | _ah | ) | ((*(_ah)->ah_spectralStart)((_ah))) |
Definition at line 1506 of file if_athvar.h.
#define ath_hal_spectral_stop | ( | _ah | ) | ((*(_ah)->ah_spectralStop)((_ah))) |
Definition at line 1508 of file if_athvar.h.
#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.
#define ath_hal_split4ktrans | ( | _ah | ) |
Definition at line 1372 of file if_athvar.h.
#define ath_hal_startpcurecv | ( | _ah, | |
_is_scanning | |||
) | ((*(_ah)->ah_startPcuReceive)((_ah), (_is_scanning))) |
Definition at line 1161 of file if_athvar.h.
#define ath_hal_stopdmarecv | ( | _ah | ) | ((*(_ah)->ah_stopDmaReceive)((_ah))) |
Definition at line 1163 of file if_athvar.h.
#define ath_hal_stoppcurecv | ( | _ah | ) | ((*(_ah)->ah_stopPcuReceive)((_ah))) |
Definition at line 1159 of file if_athvar.h.
#define ath_hal_stoptxdma | ( | _ah, | |
_qnum | |||
) | ((*(_ah)->ah_stopTxDma)((_ah), (_qnum))) |
Definition at line 1157 of file if_athvar.h.
#define ath_hal_txprocdesc | ( | _ah, | |
_ds, | |||
_ts | |||
) | ((*(_ah)->ah_procTxDesc)((_ah), (_ds), (_ts))) |
Definition at line 1403 of file if_athvar.h.
#define ath_hal_txqenabled | ( | _ah, | |
_qnum | |||
) | (OS_REG_READ(_ah, AR_Q_TXE) & (1<<(_qnum))) |
Definition at line 1182 of file if_athvar.h.
#define ath_hal_txstart | ( | _ah, | |
_q | |||
) | ((*(_ah)->ah_startTxDma)((_ah), (_q))) |
Definition at line 1129 of file if_athvar.h.
#define ath_hal_updatetxtriglevel | ( | _ah, | |
_inc | |||
) | ((*(_ah)->ah_updateTxTrigLevel)((_ah), (_inc))) |
Definition at line 1083 of file if_athvar.h.
#define ath_hal_waitforbeacon | ( | _ah, | |
_bf | |||
) | ((*(_ah)->ah_waitForBeaconDone)((_ah), (_bf)->bf_daddr)) |
Definition at line 1105 of file if_athvar.h.
#define ATH_KEYBYTES (ATH_KEYMAX/NBBY) /* storage space in bytes */ |
Definition at line 114 of file if_athvar.h.
#define ATH_KEYMAX 128 /* max key cache size we handle */ |
Definition at line 113 of file if_athvar.h.
#define ATH_LOCK | ( | _sc | ) | mtx_lock(&(_sc)->sc_mtx) |
Definition at line 938 of file if_athvar.h.
#define ATH_LOCK_ASSERT | ( | _sc | ) | mtx_assert(&(_sc)->sc_mtx, MA_OWNED) |
Definition at line 940 of file if_athvar.h.
#define ATH_LOCK_DESTROY | ( | _sc | ) | mtx_destroy(&(_sc)->sc_mtx) |
Definition at line 937 of file if_athvar.h.
#define ATH_LOCK_INIT | ( | _sc | ) |
Definition at line 934 of file if_athvar.h.
#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.
#define ATH_MAX_SCATTER ATH_TXDESC /* max(tx,rx,beacon) desc's */ |
Definition at line 248 of file if_athvar.h.
#define ATH_MGMT_TXBUF 32 |
Definition at line 59 of file if_athvar.h.
#define ATH_NODE | ( | ni | ) | ((struct ath_node *)(ni)) |
Definition at line 210 of file if_athvar.h.
#define ATH_NODE_CONST | ( | ni | ) | ((const struct ath_node *)(ni)) |
Definition at line 211 of file if_athvar.h.
#define ATH_NODE_LOCK | ( | _an | ) | mtx_lock(&(_an)->an_mtx) |
Definition at line 414 of file if_athvar.h.
#define ATH_NODE_LOCK_ASSERT | ( | _an | ) | mtx_assert(&(_an)->an_mtx, MA_OWNED) |
Definition at line 416 of file if_athvar.h.
#define ATH_NODE_UNLOCK | ( | _an | ) | mtx_unlock(&(_an)->an_mtx) |
Definition at line 415 of file if_athvar.h.
#define ATH_NODE_UNLOCK_ASSERT | ( | _an | ) |
Definition at line 417 of file if_athvar.h.
#define ATH_PCI_AR9565_1ANT 0x0080 |
Definition at line 100 of file if_athvar.h.
#define ATH_PCI_AR9565_2ANT 0x0100 |
Definition at line 101 of file if_athvar.h.
#define ATH_PCI_BT_ANT_DIV 0x0020 |
Definition at line 98 of file if_athvar.h.
#define ATH_PCI_CUS198 0x0001 |
Definition at line 93 of file if_athvar.h.
#define ATH_PCI_CUS217 0x0004 |
Definition at line 95 of file if_athvar.h.
#define ATH_PCI_CUS230 0x0002 |
Definition at line 94 of file if_athvar.h.
#define ATH_PCI_CUS252 0x0008 |
Definition at line 96 of file if_athvar.h.
#define ATH_PCI_D3_L1_WAR 0x0040 |
Definition at line 99 of file if_athvar.h.
#define ATH_PCI_KILLER 0x0400 |
Definition at line 103 of file if_athvar.h.
#define ATH_PCI_NO_PLL_PWRSAVE 0x0200 |
Definition at line 102 of file if_athvar.h.
#define ATH_PCI_WOW 0x0010 |
Definition at line 97 of file if_athvar.h.
#define ATH_PCU_LOCK | ( | _sc | ) | mtx_lock(&(_sc)->sc_pcu_mtx) |
Definition at line 991 of file if_athvar.h.
#define ATH_PCU_LOCK_ASSERT | ( | _sc | ) |
Definition at line 993 of file if_athvar.h.
#define ATH_PCU_LOCK_DESTROY | ( | _sc | ) | mtx_destroy(&(_sc)->sc_pcu_mtx) |
Definition at line 990 of file if_athvar.h.
#define ATH_PCU_LOCK_INIT | ( | _sc | ) |
Definition at line 982 of file if_athvar.h.
#define ATH_PCU_UNLOCK | ( | _sc | ) | mtx_unlock(&(_sc)->sc_pcu_mtx) |
Definition at line 992 of file if_athvar.h.
#define ATH_PCU_UNLOCK_ASSERT | ( | _sc | ) |
Definition at line 995 of file if_athvar.h.
#define ATH_RSSI | ( | x | ) | ATH_EP_RND(x, HAL_RSSI_EP_MULTIPLIER) |
Definition at line 225 of file if_athvar.h.
#define ATH_RSSI_DUMMY_MARKER 0x127 |
Definition at line 214 of file if_athvar.h.
#define ATH_RSSI_IN | ( | x | ) | (ATH_EP_MUL((x), HAL_RSSI_EP_MULTIPLIER)) |
Definition at line 216 of file if_athvar.h.
#define ATH_RSSI_LPF | ( | x, | |
y | |||
) |
Definition at line 219 of file if_athvar.h.
#define ATH_RSSI_LPF_LEN 10 |
Definition at line 213 of file if_athvar.h.
#define ATH_RX_LOCK | ( | _sc | ) | mtx_lock(&(_sc)->sc_rx_mtx) |
Definition at line 1013 of file if_athvar.h.
#define ATH_RX_LOCK_ASSERT | ( | _sc | ) |
Definition at line 1015 of file if_athvar.h.
#define ATH_RX_LOCK_DESTROY | ( | _sc | ) | mtx_destroy(&(_sc)->sc_rx_mtx) |
Definition at line 1012 of file if_athvar.h.
#define ATH_RX_LOCK_INIT | ( | _sc | ) |
Definition at line 1004 of file if_athvar.h.
#define ATH_RX_UNLOCK | ( | _sc | ) | mtx_unlock(&(_sc)->sc_rx_mtx) |
Definition at line 1014 of file if_athvar.h.
#define ATH_RX_UNLOCK_ASSERT | ( | _sc | ) |
Definition at line 1017 of file if_athvar.h.
#define ATH_RXBUF 40 /* number of RX buffers */ |
Definition at line 70 of file if_athvar.h.
#define ATH_TID_FILT_FIRST | ( | _tq | ) | TAILQ_FIRST(&(_tq)->filtq.tid_q) |
Definition at line 477 of file if_athvar.h.
#define ATH_TID_FILT_INSERT_HEAD | ( | _tq, | |
_elm, | |||
_field | |||
) |
Definition at line 462 of file if_athvar.h.
#define ATH_TID_FILT_INSERT_TAIL | ( | _tq, | |
_elm, | |||
_field | |||
) |
Definition at line 467 of file if_athvar.h.
#define ATH_TID_FILT_LAST | ( | _tq, | |
_field | |||
) | TAILQ_LAST(&(_tq)->filtq.tid_q,_field) |
Definition at line 478 of file if_athvar.h.
#define ATH_TID_FILT_REMOVE | ( | _tq, | |
_elm, | |||
_field | |||
) |
Definition at line 472 of file if_athvar.h.
#define ATH_TID_FIRST | ( | _tq | ) | TAILQ_FIRST(&(_tq)->tid_q) |
Definition at line 456 of file if_athvar.h.
#define ATH_TID_INSERT_HEAD | ( | _tq, | |
_elm, | |||
_field | |||
) |
Definition at line 441 of file if_athvar.h.
#define ATH_TID_INSERT_TAIL | ( | _tq, | |
_elm, | |||
_field | |||
) |
Definition at line 446 of file if_athvar.h.
#define ATH_TID_LAST | ( | _tq, | |
_field | |||
) | TAILQ_LAST(&(_tq)->tid_q, _field) |
Definition at line 457 of file if_athvar.h.
#define ATH_TID_MAX_BUFS (2 * IEEE80211_AGGR_BAWMAX) |
Definition at line 120 of file if_athvar.h.
#define ATH_TID_REMOVE | ( | _tq, | |
_elm, | |||
_field | |||
) |
Definition at line 451 of file if_athvar.h.
#define ATH_TIMEOUT 1000 |
Definition at line 51 of file if_athvar.h.
#define ATH_TX_LOCK | ( | _sc | ) | mtx_lock(&(_sc)->sc_tx_mtx) |
Definition at line 956 of file if_athvar.h.
#define ATH_TX_LOCK_ASSERT | ( | _sc | ) |
Definition at line 958 of file if_athvar.h.
#define ATH_TX_LOCK_DESTROY | ( | _sc | ) | mtx_destroy(&(_sc)->sc_tx_mtx) |
Definition at line 955 of file if_athvar.h.
#define ATH_TX_LOCK_INIT | ( | _sc | ) |
Definition at line 947 of file if_athvar.h.
#define ATH_TX_TRYLOCK | ( | _sc | ) |
Definition at line 962 of file if_athvar.h.
#define ATH_TX_UNLOCK | ( | _sc | ) | mtx_unlock(&(_sc)->sc_tx_mtx) |
Definition at line 957 of file if_athvar.h.
#define ATH_TX_UNLOCK_ASSERT | ( | _sc | ) |
Definition at line 960 of file if_athvar.h.
#define ATH_TXBUF 200 /* number of TX buffers */ |
Definition at line 73 of file if_athvar.h.
#define ATH_TXBUF_LOCK | ( | _sc | ) | mtx_lock(&(_sc)->sc_txbuflock) |
Definition at line 1028 of file if_athvar.h.
#define ATH_TXBUF_LOCK_ASSERT | ( | _sc | ) | mtx_assert(&(_sc)->sc_txbuflock, MA_OWNED) |
Definition at line 1030 of file if_athvar.h.
#define ATH_TXBUF_LOCK_DESTROY | ( | _sc | ) | mtx_destroy(&(_sc)->sc_txbuflock) |
Definition at line 1027 of file if_athvar.h.
#define ATH_TXBUF_LOCK_INIT | ( | _sc | ) |
Definition at line 1022 of file if_athvar.h.
#define ATH_TXBUF_UNLOCK | ( | _sc | ) | mtx_unlock(&(_sc)->sc_txbuflock) |
Definition at line 1029 of file if_athvar.h.
#define ATH_TXBUF_UNLOCK_ASSERT | ( | _sc | ) | mtx_assert(&(_sc)->sc_txbuflock, MA_NOTOWNED) |
Definition at line 1032 of file if_athvar.h.
#define ATH_TXDESC 10 /* number of descriptors per buffer */ |
Definition at line 77 of file if_athvar.h.
#define ATH_TXINTR_PERIOD 5 /* max number of batched tx descriptors */ |
Definition at line 80 of file if_athvar.h.
#define ATH_TXMAXTRY 11 /* max number of transmit attempts */ |
Definition at line 78 of file if_athvar.h.
#define ATH_TXMGTTRY 4 /* xmit attempts for mgt/ctl frames */ |
Definition at line 79 of file if_athvar.h.
#define ATH_TXQ_FIRST | ( | _tq | ) | TAILQ_FIRST(&(_tq)->axq_q) |
Definition at line 435 of file if_athvar.h.
#define ATH_TXQ_INSERT_HEAD | ( | _tq, | |
_elm, | |||
_field | |||
) |
Definition at line 423 of file if_athvar.h.
#define ATH_TXQ_INSERT_TAIL | ( | _tq, | |
_elm, | |||
_field | |||
) |
Definition at line 427 of file if_athvar.h.
#define ATH_TXQ_LAST | ( | _tq, | |
_field | |||
) | TAILQ_LAST(&(_tq)->axq_q, _field) |
Definition at line 436 of file if_athvar.h.
#define ATH_TXQ_LOCK | ( | _tq | ) | mtx_lock(&(_tq)->axq_lock) |
Definition at line 408 of file if_athvar.h.
#define ATH_TXQ_LOCK_ASSERT | ( | _tq | ) | mtx_assert(&(_tq)->axq_lock, MA_OWNED) |
Definition at line 410 of file if_athvar.h.
#define ATH_TXQ_LOCK_DESTROY | ( | _tq | ) | mtx_destroy(&(_tq)->axq_lock) |
Definition at line 407 of file if_athvar.h.
#define ATH_TXQ_LOCK_INIT | ( | _sc, | |
_tq | |||
) |
Definition at line 402 of file if_athvar.h.
#define ATH_TXQ_PUTRUNNING 0x0002 /* ath_hal_puttxbuf has been called */ |
Definition at line 356 of file if_athvar.h.
#define ATH_TXQ_REMOVE | ( | _tq, | |
_elm, | |||
_field | |||
) |
Definition at line 431 of file if_athvar.h.
#define ATH_TXQ_SETUP | ( | sc, | |
i | |||
) | ((sc)->sc_txqsetup & (1<<i)) |
Definition at line 1020 of file if_athvar.h.
#define ATH_TXQ_SWQ (HAL_NUM_TX_QUEUES+1) /* qnum for s/w only queue */ |
Definition at line 352 of file if_athvar.h.
#define ATH_TXQ_UNLOCK | ( | _tq | ) | mtx_unlock(&(_tq)->axq_lock) |
Definition at line 409 of file if_athvar.h.
#define ATH_TXQ_UNLOCK_ASSERT | ( | _tq | ) |
Definition at line 411 of file if_athvar.h.
#define ATH_TXSTATUS_LOCK | ( | _sc | ) | mtx_lock(&(_sc)->sc_txcomplock) |
Definition at line 1043 of file if_athvar.h.
#define ATH_TXSTATUS_LOCK_ASSERT | ( | _sc | ) | mtx_assert(&(_sc)->sc_txcomplock, MA_OWNED) |
Definition at line 1045 of file if_athvar.h.
#define ATH_TXSTATUS_LOCK_DESTROY | ( | _sc | ) | mtx_destroy(&(_sc)->sc_txcomplock) |
Definition at line 1042 of file if_athvar.h.
#define ATH_TXSTATUS_LOCK_INIT | ( | _sc | ) |
Definition at line 1035 of file if_athvar.h.
#define ATH_TXSTATUS_UNLOCK | ( | _sc | ) | mtx_unlock(&(_sc)->sc_txcomplock) |
Definition at line 1044 of file if_athvar.h.
#define ATH_UNLOCK | ( | _sc | ) | mtx_unlock(&(_sc)->sc_mtx) |
Definition at line 939 of file if_athvar.h.
#define ATH_UNLOCK_ASSERT | ( | _sc | ) | mtx_assert(&(_sc)->sc_mtx, MA_NOTOWNED) |
Definition at line 941 of file if_athvar.h.
#define ATH_VAP | ( | vap | ) | ((struct ath_vap *)(vap)) |
Definition at line 498 of file if_athvar.h.
enum ath_buf_type_t |
Enumerator | |
---|---|
ATH_BUFTYPE_NORMAL | |
ATH_BUFTYPE_MGMT |
Definition at line 227 of file if_athvar.h.
enum ATH_RESET_TYPE |
Enumerator | |
---|---|
ATH_RESET_DEFAULT | |
ATH_RESET_NOLOSS | |
ATH_RESET_FULL |
Definition at line 507 of file if_athvar.h.
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().
int ath_detach | ( | struct ath_softc * | sc | ) |
Definition at line 1407 of file if_ath.c.
References ath_btcoex_detach(), ath_desc_free(), ath_dfs_detach(), ath_hal_detach, ath_lna_div_detach(), ATH_LOCK, ath_power_set_power_state, ath_power_setpower, ath_rate_detach(), ath_rxdma_teardown, ath_spectral_detach(), ath_stop(), ath_tx_cleanup(), ath_txdma_teardown, ATH_UNLOCK, HAL_PM_AWAKE, if_ath_alq_tidyup(), ath_softc::sc_ah, ath_softc::sc_ic, ath_softc::sc_rc, ath_softc::sc_tq, and ath_softc::sc_tx99.
Referenced by ath_ahb_detach(), and ath_pci_detach().
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().
void ath_resume | ( | struct ath_softc * | sc | ) |
Definition at line 1997 of file if_ath.c.
References AH_FALSE, ath_btcoex_enable(), ath_dfs_radar_enable(), ath_hal_enablepcie, ath_hal_reset, ath_hal_setchainmasks, ath_hal_setenforcetxop, ath_hal_setledstate, ath_led_config(), ATH_LOCK, ath_power_restore_power_state, ath_power_set_power_state, ath_power_setpower, ath_power_setselfgen, ath_reset_keycache(), ATH_RX_LOCK, ATH_RX_UNLOCK, ath_spectral_enable(), ATH_UNLOCK, ath_update_chainmasks(), HAL_LED_INIT, HAL_PM_AWAKE, HAL_RESET_NORMAL, ath_softc::sc_ah, ath_softc::sc_cur_rxchainmask, ath_softc::sc_cur_txchainmask, ath_softc::sc_curchan, ath_softc::sc_hasenforcetxop, ath_softc::sc_ic, ath_softc::sc_opmode, ath_softc::sc_resume_up, ath_softc::sc_rx_resetted, ath_softc::sc_rx_stopped, and ath_softc::sc_tdma.
Referenced by ath_ahb_resume(), and ath_pci_resume().
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().
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().
typedef TAILQ_HEAD | ( | ath_bufhead_s | , |
ath_buf | |||
) |