Main Page | Data Structures | Directories | File List | Data Fields | Globals

if_athvar.h File Reference

#include "if_ieee80211.h"
#include "ah.h"
#include "if_ath_ioctl.h"
#include <linux/interrupt.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.

Defines

#define ATH_INIT_TQUEUE(a, b, c)   INIT_TQUEUE(a,b,c)
#define ATH_SCHEDULE_TQUEUE(a, b)
#define tasklet_disable(t)   do { (void) t; local_bh_disable(); } while (0)
#define tasklet_enable(t)   do { (void) t; local_bh_enable(); } while (0)
#define IRQ_NONE
#define IRQ_HANDLED
#define SET_MODULE_OWNER(dev)
#define SET_NETDEV_DEV(ndev, pdev)
#define ATH_SYSCTL_DECL(f, ctl, write, filp, buffer, lenp, ppos)
#define ATH_SYSCTL_PROC_DOINTVEC(ctl, write, filp, buffer, lenp, ppos)   proc_dointvec(ctl, write, filp, buffer, lenp, ppos)
#define ATH_TIMEOUT   1000
#define ATH_MAX_MTU   5000
#define ATH_MIN_MTU   32
#define ATH_TPC_MAX   63
#define ATH_RXBUF   40
#define ATH_TXBUF   1
#define ATH_TXDESC   1
#define ATH_TXMAXTRY   16
#define ATH_TXQ_LOCK_INIT(_tq)   spin_lock_init(&(_tq)->axq_lock)
#define ATH_TXQ_LOCK_DESTROY(_tq)
#define ATH_TXQ_LOCK(_tq)   spin_lock(&(_tq)->axq_lock)
#define ATH_TXQ_UNLOCK(_tq)   spin_unlock(&(_tq)->axq_lock)
#define ATH_TXQ_LOCK_BH(_tq)   spin_lock_bh(&(_tq)->axq_lock)
#define ATH_TXQ_UNLOCK_BH(_tq)   spin_unlock_bh(&(_tq)->axq_lock)
#define ATH_TXQ_LOCK_ASSERT(_tq)   KASSERT(spin_is_locked(&(_tq)->axq_lock), ("txq not locked!"))
#define ATH_TXQ_INSERT_TAIL(_tq, _elm, _field)
#define ATH_TXQ_REMOVE_HEAD(_tq, _field)
#define ATH_TXQ_SETUP(sc, i)   ((sc)->sc_txqsetup & (1<<i))
#define ATH_TXBUF_LOCK_INIT(_sc)   spin_lock_init(&(_sc)->sc_txbuflock)
#define ATH_TXBUF_LOCK_DESTROY(_sc)
#define ATH_TXBUF_LOCK(_sc)   spin_lock(&(_sc)->sc_txbuflock)
#define ATH_TXBUF_UNLOCK(_sc)   spin_unlock(&(_sc)->sc_txbuflock)
#define ATH_TXBUF_LOCK_BH(_sc)   spin_lock_bh(&(_sc)->sc_txbuflock)
#define ATH_TXBUF_UNLOCK_BH(_sc)   spin_unlock_bh(&(_sc)->sc_txbuflock)
#define ATH_TXBUF_LOCK_ASSERT(_sc)   KASSERT(spin_is_locked(&(_sc)->sc_txbuflock), ("txbuf not locked!"))
#define ATH_LOCK_INIT(_sc)   init_MUTEX(&(_sc)->sc_lock)
#define ATH_LOCK_DESTROY(_sc)
#define ATH_LOCK(_sc)   down(&(_sc)->sc_lock)
#define ATH_UNLOCK(_sc)   up(&(_sc)->sc_lock)
#define ath_hal_reset(_ah, _opmode, _chan, _outdoor, _pstatus)   ((*(_ah)->ah_reset)((_ah), (_opmode), (_chan), (_outdoor), (_pstatus)))
#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_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, _sleepduration)   ((*(_ah)->ah_setPowerMode)((_ah), (_mode), AH_TRUE, (_sleepduration)))
#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)   ((*(_ah)->ah_setRxDP)((_ah), (_bufaddr)))
#define ath_hal_gettsf32(_ah)   ((*(_ah)->ah_getTsf32)((_ah)))
#define ath_hal_gettsf64(_ah)   ((*(_ah)->ah_getTsf64)((_ah)))
#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_getrxbuf(_ah)   ((*(_ah)->ah_getRxDP)((_ah)))
#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)   ((*(_ah)->ah_perCalibration)((_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_beacontimers(_ah, _bs)   ((*(_ah)->ah_setStationBeaconTimers)((_ah), (_bs)))
#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)   ((*(_ah)->ah_startPcuReceive)((_ah)))
#define ath_hal_stopdmarecv(_ah)   ((*(_ah)->ah_stopDmaReceive)((_ah)))
#define ath_hal_getdiagstate(_ah, _id, _indata, _insize, _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_hasveol(_ah)   ((*(_ah)->ah_hasVEOL)((_ah)))
#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)   ((*(_ah)->ah_rxMonitor)((_ah), (_arg)))
#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))
#define ath_hal_getcountrycode(_ah, _pcc)   (*(_pcc) = (_ah)->ah_countryCode)
#define ath_hal_tkipsplit(_ah)   (ath_hal_getcapability(_ah, HAL_CAP_TKIP_SPLIT, 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_setuprxdesc(_ah, _ds, _size, _intreq)   ((*(_ah)->ah_setupRxDesc)((_ah), (_ds), (_size), (_intreq)))
#define ath_hal_rxprocdesc(_ah, _ds, _dspa, _dsnext)   ((*(_ah)->ah_procRxDesc)((_ah), (_ds), (_dspa), (_dsnext)))
#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, _l, _first, _last, _ds0)   ((*(_ah)->ah_fillTxDesc)((_ah), (_ds), (_l), (_first), (_last), (_ds0)))
#define ath_hal_txprocdesc(_ah, _ds)   ((*(_ah)->ah_procTxDesc)((_ah), (_ds)))
#define ath_hal_gpioCfgOutput(_ah, _gpio)   ((*(_ah)->ah_gpioCfgOutput)((_ah), (_gpio)))
#define ath_hal_gpioset(_ah, _gpio, _b)   ((*(_ah)->ah_gpioSet)((_ah), (_gpio), (_b)))
#define ath_hal_settxpowerlimit(_ah, _int)   ((*(_ah)->ah_setTxPowerLimit)((_ah), (_int)))

Typedefs

typedef void * TQUEUE_ARG
typedef void irqreturn_t

Functions

int ath_attach (u_int16_t, struct net_device *)
int ath_detach (struct net_device *)
void ath_resume (struct net_device *)
void ath_suspend (struct net_device *)
void ath_shutdown (struct net_device *)
irqreturn_t ath_intr (int irq, void *dev_id, struct pt_regs *regs)

Variables

int ath_debug


Define Documentation

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

Definition at line 385 of file if_athvar.h.

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

Definition at line 387 of file if_athvar.h.

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

Definition at line 389 of file if_athvar.h.

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

Definition at line 381 of file if_athvar.h.

Referenced by ath_calibrate().

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

Definition at line 442 of file if_athvar.h.

#define ath_hal_filltxdesc _ah,
_ds,
_l,
_first,
_last,
_ds0  )    ((*(_ah)->ah_fillTxDesc)((_ah), (_ds), (_l), (_first), (_last), (_ds0)))
 

Definition at line 473 of file if_athvar.h.

Referenced by ath_tx_start().

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

Definition at line 432 of file if_athvar.h.

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

Definition at line 438 of file if_athvar.h.

Referenced by ath_attach().

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

Definition at line 446 of file if_athvar.h.

Referenced by ath_attach().

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

Definition at line 436 of file if_athvar.h.

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

Definition at line 418 of file if_athvar.h.

Referenced by ath_attach().

#define ath_hal_getdiagstate _ah,
_id,
_indata,
_insize,
_outdata,
_outsize  ) 
 

Value:

((*(_ah)->ah_getDiagState)((_ah), (_id), \
                (_indata), (_insize), (_outdata), (_outsize)))

Definition at line 405 of file if_athvar.h.

Referenced by ath_ioctl_diag().

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

Definition at line 454 of file if_athvar.h.

Referenced by ath_attach().

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

Definition at line 337 of file if_athvar.h.

Referenced by ath_intr().

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

Definition at line 327 of file if_athvar.h.

Referenced by ath_attach().

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

Definition at line 325 of file if_athvar.h.

Referenced by ath_rate_setup().

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

Definition at line 444 of file if_athvar.h.

Referenced by ath_attach(), and ath_getchannels().

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

Definition at line 416 of file if_athvar.h.

Referenced by ath_calibrate().

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

Definition at line 375 of file if_athvar.h.

Referenced by ath_stoprecv().

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

Definition at line 353 of file if_athvar.h.

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

Definition at line 428 of file if_athvar.h.

#define ath_hal_gettsf32 _ah  )    ((*(_ah)->ah_getTsf32)((_ah)))
 

Definition at line 363 of file if_athvar.h.

Referenced by ath_rx_tasklet(), and get_stamp().

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

Definition at line 365 of file if_athvar.h.

Referenced by ath_tx_start().

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

Definition at line 373 of file if_athvar.h.

Referenced by ath_tx_processq(), and ath_tx_stopdma().

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

Definition at line 478 of file if_athvar.h.

Referenced by ath_attach(), and ath_update_led().

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

Definition at line 480 of file if_athvar.h.

Referenced by ath_attach(), ath_stop_locked(), and ath_update_led().

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

Definition at line 452 of file if_athvar.h.

Referenced by ath_attach().

#define ath_hal_hasveol _ah  )    ((*(_ah)->ah_hasVEOL)((_ah)))
 

Definition at line 414 of file if_athvar.h.

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

Definition at line 450 of file if_athvar.h.

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

Definition at line 333 of file if_athvar.h.

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

Definition at line 335 of file if_athvar.h.

Referenced by ath_intr(), and ath_tx_timeout().

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

Definition at line 331 of file if_athvar.h.

Referenced by ath_init(), ath_intr(), ath_reset(), and ath_stop_locked().

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

Definition at line 343 of file if_athvar.h.

Referenced by ath_attach().

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

Definition at line 349 of file if_athvar.h.

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

Definition at line 345 of file if_athvar.h.

Referenced by ath_attach(), and ath_initkeytable().

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

Definition at line 347 of file if_athvar.h.

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

Definition at line 351 of file if_athvar.h.

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

Definition at line 424 of file if_athvar.h.

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

Definition at line 393 of file if_athvar.h.

Referenced by ath_stop_locked().

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

Definition at line 361 of file if_athvar.h.

Referenced by ath_startrecv().

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

Definition at line 371 of file if_athvar.h.

Referenced by ath_tx_start().

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

Definition at line 412 of file if_athvar.h.

#define ath_hal_reset _ah,
_opmode,
_chan,
_outdoor,
_pstatus  )    ((*(_ah)->ah_reset)((_ah), (_opmode), (_chan), (_outdoor), (_pstatus)))
 

Definition at line 323 of file if_athvar.h.

Referenced by ath_init(), and ath_reset().

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

Definition at line 367 of file if_athvar.h.

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

Definition at line 410 of file if_athvar.h.

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

Definition at line 369 of file if_athvar.h.

Referenced by ath_startrecv().

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

Definition at line 422 of file if_athvar.h.

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

Definition at line 461 of file if_athvar.h.

Referenced by ath_rx_tasklet(), and ath_stoprecv().

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

Definition at line 430 of file if_athvar.h.

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

Definition at line 391 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 440 of file if_athvar.h.

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

Definition at line 379 of file if_athvar.h.

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

Definition at line 434 of file if_athvar.h.

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

Definition at line 420 of file if_athvar.h.

Referenced by ath_setdefantenna().

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

Definition at line 456 of file if_athvar.h.

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

Definition at line 383 of file if_athvar.h.

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

Definition at line 329 of file if_athvar.h.

Referenced by ath_set_mac_address().

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

Definition at line 357 of file if_athvar.h.

Referenced by ath_mode_init().

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

Definition at line 395 of file if_athvar.h.

Referenced by ath_mode_init().

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

Definition at line 341 of file if_athvar.h.

Referenced by ath_stop().

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

Definition at line 355 of file if_athvar.h.

Referenced by ath_mode_init(), and ath_stoprecv().

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

Definition at line 426 of file if_athvar.h.

#define ath_hal_settxpowerlimit _ah,
_int  )    ((*(_ah)->ah_setTxPowerLimit)((_ah), (_int)))
 

Definition at line 483 of file if_athvar.h.

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

Definition at line 459 of file if_athvar.h.

Referenced by ath_rxbuf_init().

#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)))

Definition at line 465 of file if_athvar.h.

Referenced by ath_tx_start().

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

Definition at line 408 of file if_athvar.h.

Referenced by ath_tx_setup().

#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 470 of file if_athvar.h.

Referenced by ath_attach(), and ath_tx_start().

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

Definition at line 401 of file if_athvar.h.

Referenced by ath_startrecv().

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

Definition at line 403 of file if_athvar.h.

Referenced by ath_stoprecv().

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

Definition at line 399 of file if_athvar.h.

Referenced by ath_stoprecv().

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

Definition at line 397 of file if_athvar.h.

Referenced by ath_tx_stopdma().

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

Definition at line 448 of file if_athvar.h.

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

Definition at line 475 of file if_athvar.h.

Referenced by ath_tx_draintxq(), and ath_tx_processq().

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

Definition at line 377 of file if_athvar.h.

Referenced by ath_tx_start().

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

Definition at line 339 of file if_athvar.h.

Referenced by ath_intr().

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

Definition at line 359 of file if_athvar.h.

#define ATH_INIT_TQUEUE a,
b,
 )    INIT_TQUEUE(a,b,c)
 

Definition at line 69 of file if_athvar.h.

Referenced by ath_attach().

#define ATH_LOCK _sc  )    down(&(_sc)->sc_lock)
 

Definition at line 303 of file if_athvar.h.

Referenced by ath_stop().

#define ATH_LOCK_DESTROY _sc  ) 
 

Definition at line 302 of file if_athvar.h.

Referenced by ath_attach(), and ath_detach().

#define ATH_LOCK_INIT _sc  )    init_MUTEX(&(_sc)->sc_lock)
 

Definition at line 301 of file if_athvar.h.

Referenced by ath_attach().

#define ATH_MAX_MTU   5000
 

Definition at line 122 of file if_athvar.h.

Referenced by ath_change_mtu().

#define ATH_MIN_MTU   32
 

Definition at line 123 of file if_athvar.h.

Referenced by ath_change_mtu().

#define ATH_RXBUF   40
 

Definition at line 127 of file if_athvar.h.

Referenced by ath_desc_alloc().

#define ATH_SCHEDULE_TQUEUE a,
 ) 
 

Value:

do {            \
        *(b) |= queue_task((a), &tq_immediate); \
} while(0)

Definition at line 70 of file if_athvar.h.

Referenced by ath_intr().

#define ATH_SYSCTL_DECL f,
ctl,
write,
filp,
buffer,
lenp,
ppos  ) 
 

Value:

f(ctl_table *ctl, int write, struct file *filp, void *buffer,\
                size_t *lenp, loff_t *ppos)

Definition at line 107 of file if_athvar.h.

#define ATH_SYSCTL_PROC_DOINTVEC ctl,
write,
filp,
buffer,
lenp,
ppos  )    proc_dointvec(ctl, write, filp, buffer, lenp, ppos)
 

Definition at line 110 of file if_athvar.h.

#define ATH_TIMEOUT   1000
 

Definition at line 114 of file if_athvar.h.

#define ATH_TPC_MAX   63
 

Definition at line 125 of file if_athvar.h.

Referenced by ath_tx_start().

#define ATH_TXBUF   1
 

Definition at line 128 of file if_athvar.h.

Referenced by ath_attach(), and ath_desc_alloc().

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

Definition at line 294 of file if_athvar.h.

Referenced by ath_tx_draintxq(), and ath_tx_processq().

#define ATH_TXBUF_LOCK_ASSERT _sc  )    KASSERT(spin_is_locked(&(_sc)->sc_txbuflock), ("txbuf not locked!"))
 

Definition at line 298 of file if_athvar.h.

#define ATH_TXBUF_LOCK_BH _sc  )    spin_lock_bh(&(_sc)->sc_txbuflock)
 

Definition at line 296 of file if_athvar.h.

Referenced by ath_hardstart().

#define ATH_TXBUF_LOCK_DESTROY _sc  ) 
 

Definition at line 293 of file if_athvar.h.

Referenced by ath_attach(), and ath_detach().

#define ATH_TXBUF_LOCK_INIT _sc  )    spin_lock_init(&(_sc)->sc_txbuflock)
 

Definition at line 292 of file if_athvar.h.

Referenced by ath_attach().

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

Definition at line 295 of file if_athvar.h.

Referenced by ath_tx_draintxq(), and ath_tx_processq().

#define ATH_TXBUF_UNLOCK_BH _sc  )    spin_unlock_bh(&(_sc)->sc_txbuflock)
 

Definition at line 297 of file if_athvar.h.

Referenced by ath_hardstart().

#define ATH_TXDESC   1
 

Definition at line 129 of file if_athvar.h.

Referenced by ath_desc_alloc().

#define ATH_TXMAXTRY   16
 

Definition at line 130 of file if_athvar.h.

Referenced by ath_tx_start().

#define ATH_TXQ_INSERT_TAIL _tq,
_elm,
_field  ) 
 

Value:

do { \
STAILQ_INSERT_TAIL(&(_tq)->axq_q, (_elm), _field); \
        (_tq)->axq_depth++; \
} while (0)

Definition at line 174 of file if_athvar.h.

Referenced by ath_tx_start().

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

Definition at line 167 of file if_athvar.h.

Referenced by ath_tx_draintxq(), and ath_tx_processq().

#define ATH_TXQ_LOCK_ASSERT _tq  )    KASSERT(spin_is_locked(&(_tq)->axq_lock), ("txq not locked!"))
 

Definition at line 171 of file if_athvar.h.

#define ATH_TXQ_LOCK_BH _tq  )    spin_lock_bh(&(_tq)->axq_lock)
 

Definition at line 169 of file if_athvar.h.

Referenced by ath_tx_start().

#define ATH_TXQ_LOCK_DESTROY _tq  ) 
 

Definition at line 166 of file if_athvar.h.

Referenced by ath_attach(), and ath_detach().

#define ATH_TXQ_LOCK_INIT _tq  )    spin_lock_init(&(_tq)->axq_lock)
 

Definition at line 165 of file if_athvar.h.

Referenced by ath_tx_setup().

#define ATH_TXQ_REMOVE_HEAD _tq,
_field  ) 
 

Value:

do { \
STAILQ_REMOVE_HEAD(&(_tq)->axq_q, _field); \
        (_tq)->axq_depth--; \
} while (0)

Definition at line 178 of file if_athvar.h.

Referenced by ath_tx_draintxq(), and ath_tx_processq().

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

Definition at line 290 of file if_athvar.h.

Referenced by ath_detach(), ath_draintxq(), ath_tx_setup(), and ath_tx_tasklet().

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

Definition at line 168 of file if_athvar.h.

Referenced by ath_tx_draintxq(), and ath_tx_processq().

#define ATH_TXQ_UNLOCK_BH _tq  )    spin_unlock_bh(&(_tq)->axq_lock)
 

Definition at line 170 of file if_athvar.h.

Referenced by ath_tx_start().

#define ATH_UNLOCK _sc  )    up(&(_sc)->sc_lock)
 

Definition at line 304 of file if_athvar.h.

Referenced by ath_stop().

#define IRQ_HANDLED
 

Definition at line 84 of file if_athvar.h.

#define IRQ_NONE
 

Definition at line 83 of file if_athvar.h.

Referenced by ath_intr().

#define SET_MODULE_OWNER dev  ) 
 

Value:

do {            \
        dev->owner = THIS_MODULE;               \
} while (0)

Definition at line 88 of file if_athvar.h.

Referenced by ath_bus_getsc(), and ath_pci_probe().

#define SET_NETDEV_DEV ndev,
pdev  ) 
 

Definition at line 94 of file if_athvar.h.

Referenced by ath_pci_probe().

#define tasklet_disable  )    do { (void) t; local_bh_disable(); } while (0)
 

Definition at line 74 of file if_athvar.h.

#define tasklet_enable  )    do { (void) t; local_bh_enable(); } while (0)
 

Definition at line 75 of file if_athvar.h.


Typedef Documentation

typedef void irqreturn_t
 

Definition at line 82 of file if_athvar.h.

typedef void* TQUEUE_ARG
 

Definition at line 73 of file if_athvar.h.


Function Documentation

int ath_attach u_int16_t ,
struct net_device * 
 

Definition at line 453 of file if_ath.c.

References _ath_hal_attach(), ath_hal::ah_abi, AH_TRUE, AR5211_DEVID, AR5212_DEVID_IBM, ath_announce(), ath_calibrate(), ath_change_mtu(), ath_countrycode, ath_debug, ATH_DEBUG_ANY, ath_desc_alloc(), ath_desc_free(), ath_fatal_tasklet(), ath_getchannels(), ath_getstats(), ath_hal_detach(), ath_hal_getcapability, ath_hal_getcountrycode, ath_hal_getdefantenna, ath_hal_getdiversity, ath_hal_getmac, ath_hal_getregdomain, ath_hal_getwirelessmodes(), ath_hal_gpioCfgOutput, ath_hal_gpioset, ath_hal_hasdiversity, ath_hal_keycachesize, ath_hal_keyreset, ath_hal_setupxtxdesc, ath_hardstart(), ath_init(), ATH_INIT_TQUEUE, ath_ioctl(), ath_iw_getstats(), ath_iw_handler_def, ATH_LOCK_DESTROY, ATH_LOCK_INIT, ath_mode_init(), ath_outdoor, ath_rate_setup(), ath_regdomain, ath_rx_tasklet(), ath_rxorn_tasklet(), ath_set_mac_address(), ath_stop(), ath_tx_setup(), ath_tx_tasklet(), ath_tx_timeout(), ATH_TXBUF, ATH_TXBUF_LOCK_DESTROY, ATH_TXBUF_LOCK_INIT, ATH_TXQ_LOCK_DESTROY, ath_xchanmode, ath_txq::axq_qnum, bus_read_cachesize(), chan2ieee(), countrycode, ath_softc::current_channel, ath_softc::dev, ath_softc::dev_type, DPRINTF, ether_sprintf(), HAL_ABI_VERSION, HAL_CAP_TPC, HAL_CAP_TXPOW, HAL_OK, HAL_WME_AC_BE, HAL_WME_AC_BK, HAL_WME_AC_VI, HAL_WME_AC_VO, ath_softc::ic_caps, ath_softc::ic_chan_avail, ath_softc::ic_channels, ath_softc::ic_flags, ath_softc::ic_modecaps, ath_softc::ic_opmode, ath_softc::ic_phytype, ath_softc::ic_rts_threshold, IEEE80211_CHAN_MAX, IEEE80211_IS_CHAN_A, IEEE80211_IS_CHAN_B, IEEE80211_IS_CHAN_PUREG, IEEE80211_IS_CHAN_T, IEEE80211_M_STA, IEEE80211_MODE_11A, IEEE80211_MODE_11B, IEEE80211_MODE_11G, IEEE80211_MODE_AUTO, IEEE80211_RTS_MAX, IEEE80211_T_OFDM, outdoor, ath_softc::sc_ah, ath_softc::sc_cachelsz, ath_softc::sc_cal_ch, ath_softc::sc_debug, ath_softc::sc_defant, ath_softc::sc_diversity, ath_softc::sc_fataltq, ath_softc::sc_hasdiversity, ath_softc::sc_invalid, ath_softc::sc_keymax, ath_softc::sc_ledpin, ath_softc::sc_ledstate, ath_softc::sc_rxorntq, ath_softc::sc_rxotherant, ath_softc::sc_rxtq, ath_softc::sc_softled, ath_softc::sc_txantenna, ath_softc::sc_txq, ath_softc::sc_txtq, setbit, WME_AC_BE, WME_AC_BK, WME_AC_VI, WME_AC_VO, and xchanmode.

Referenced by ath_pci_probe().

Here is the call graph for this function:

int ath_detach struct net_device *  ) 
 

Definition at line 790 of file if_ath.c.

References ATH_DEBUG_ANY, ath_desc_free(), ath_hal_detach(), ATH_LOCK_DESTROY, ath_stop(), ATH_TXBUF_LOCK_DESTROY, ATH_TXQ_LOCK_DESTROY, ATH_TXQ_SETUP, ath_softc::dev, DPRINTF, HAL_NUM_TX_QUEUES, ath_softc::sc_ah, ath_softc::sc_invalid, and ath_softc::sc_txq.

Referenced by ath_pci_remove().

Here is the call graph for this function:

irqreturn_t ath_intr int irq,
void * dev_id,
struct pt_regs * regs
 

Definition at line 846 of file if_ath.c.

References AH_TRUE, ath_stats::ast_bmiss, ath_stats::ast_hardware, ath_stats::ast_rxeol, ath_stats::ast_rxorn, ath_stats::ast_txurn, ath_debug, ATH_DEBUG_ANY, ath_hal_getisr, ath_hal_intrpend, ath_hal_intrset, ath_hal_updatetxtriglevel, ATH_SCHEDULE_TQUEUE, DPRINTF, HAL_INT_BMISS, HAL_INT_FATAL, HAL_INT_RX, HAL_INT_RXEOL, HAL_INT_RXORN, HAL_INT_SWBA, HAL_INT_TX, HAL_INT_TXURN, IRQ_HANDLED, IRQ_NONE, ath_softc::sc_ah, ath_softc::sc_fataltq, ath_softc::sc_imask, ath_softc::sc_invalid, ath_softc::sc_rxlink, ath_softc::sc_rxorntq, ath_softc::sc_rxtq, ath_softc::sc_stats, and ath_softc::sc_txtq.

Referenced by ath_pci_probe(), and ath_tx_timeout().

void ath_resume struct net_device *  ) 
 

Definition at line 826 of file if_ath.c.

References ATH_DEBUG_ANY, ath_init(), and DPRINTF.

Here is the call graph for this function:

void ath_shutdown struct net_device *  ) 
 

Definition at line 834 of file if_ath.c.

References ATH_DEBUG_ANY, ath_stop(), and DPRINTF.

Here is the call graph for this function:

void ath_suspend struct net_device *  ) 
 

Definition at line 818 of file if_ath.c.

References ATH_DEBUG_ANY, ath_stop(), and DPRINTF.

Here is the call graph for this function:


Variable Documentation

int ath_debug
 

Definition at line 167 of file if_ath.c.

Referenced by ath_attach(), ath_intr(), ath_rx_tasklet(), ath_stoprecv(), and ath_tx_processq().


Generated on Mon Nov 21 16:02:36 2005 for openwifi by  doxygen 1.4.1