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

ah.h File Reference

#include "compat.h"

Include dependency graph for ah.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define IEEE80211_ADDR_LEN   6
#define HAL_OK   0
#define HAL_EINVAL   1
#define HAL_EINPROGRESS   EINPROGRESS
#define HAL_NUM_TX_QUEUES   10
#define TXQ_FLAG_TXINT_ENABLE   0x0001
#define TXQ_FLAG_TXDESCINT_ENABLE   0x0002
#define TXQ_FLAG_BACKOFF_DISABLE   0x0004
#define TXQ_FLAG_COMPRESSION_ENABLE   0x0008
#define TXQ_FLAG_RDYTIME_EXP_POLICY_ENABLE   0x0010
#define TXQ_FLAG_FRAG_BURST_BACKOFF_ENABLE   0x0020
#define TXQ_FLAG_POST_FR_BKOFF_DIS   0x0040
#define TXQ_FLAG_TXEOLINT_ENABLE   0x0080
#define AR5K_CCK_SIFS_TIME   10
#define AR5K_CCK_PREAMBLE_BITS   144
#define AR5K_CCK_PLCP_BITS   48
#define AR5K_CCK_NUM_BITS(_frmlen)   (_frmlen << 3)
#define AR5K_CCK_PHY_TIME(_sp)
#define AR5K_CCK_TX_TIME(_kbps, _frmlen, _sp)
#define AR5K_OFDM_SIFS_TIME   16
#define AR5K_OFDM_PREAMBLE_TIME   20
#define AR5K_OFDM_PLCP_BITS   22
#define AR5K_OFDM_SYMBOL_TIME   4
#define AR5K_OFDM_NUM_BITS(_frmlen)   (AR5K_OFDM_PLCP_BITS + (_frmlen << 3))
#define AR5K_OFDM_NUM_BITS_PER_SYM(_kbps)
#define AR5K_OFDM_NUM_BITS(_frmlen)   (AR5K_OFDM_PLCP_BITS + (_frmlen << 3))
#define AR5K_OFDM_NUM_SYMBOLS(_kbps, _frmlen)   howmany(AR5K_OFDM_NUM_BITS(_frmlen), AR5K_OFDM_NUM_BITS_PER_SYM(_kbps))
#define AR5K_OFDM_TX_TIME(_kbps, _frmlen)
#define AR5K_TURBO_SIFS_TIME   8
#define AR5K_TURBO_PREAMBLE_TIME   14
#define AR5K_TURBO_PLCP_BITS   22
#define AR5K_TURBO_SYMBOL_TIME   4
#define AR5K_TURBO_NUM_BITS(_frmlen)   (AR5K_TURBO_PLCP_BITS + (_frmlen << 3))
#define AR5K_TURBO_NUM_BITS_PER_SYM(_kbps)
#define AR5K_TURBO_NUM_BITS(_frmlen)   (AR5K_TURBO_PLCP_BITS + (_frmlen << 3))
#define AR5K_TURBO_NUM_SYMBOLS(_kbps, _frmlen)
#define AR5K_TURBO_TX_TIME(_kbps, _frmlen)
#define AR5K_XR_SIFS_TIME   16
#define AR5K_XR_PLCP_BITS   22
#define AR5K_XR_SYMBOL_TIME   4
#define AR5K_XR_PREAMBLE_TIME(_kbps)   (((_kbps) < 1000) ? 173 : 76)
#define AR5K_XR_NUM_BITS_PER_SYM(_kbps)
#define AR5K_XR_NUM_BITS(_frmlen)   (AR5K_XR_PLCP_BITS + (_frmlen << 3))
#define AR5K_XR_NUM_SYMBOLS(_kbps, _frmlen)   howmany(AR5K_XR_NUM_BITS(_frmlen), AR5K_XR_NUM_BITS_PER_SYM(_kbps))
#define AR5K_XR_TX_TIME(_kbps, _frmlen)
#define HAL_RX_FILTER_UCAST   0x00000001
#define HAL_RX_FILTER_MCAST   0x00000002
#define HAL_RX_FILTER_BCAST   0x00000004
#define HAL_RX_FILTER_CONTROL   0x00000008
#define HAL_RX_FILTER_BEACON   0x00000010
#define HAL_RX_FILTER_PROM   0x00000020
#define HAL_RX_FILTER_PROBEREQ   0x00000080
#define HAL_RX_FILTER_PHYERR   0x00000100
#define HAL_RX_FILTER_PHYRADAR   0x00000200
#define HAL_BEACON_PERIOD   0x0000ffff
#define HAL_BEACON_ENA   0x00800000
#define HAL_BEACON_RESET_TSF   0x01000000
#define bs_nexttbtt   bs_next_beacon
#define bs_intval   bs_interval
#define bs_nextdtim   bs_next_dtim
#define bs_bmissthreshold   bs_bmiss_threshold
#define bs_sleepduration   bs_sleep_duration
#define bs_dtimperiod   bs_dtim_period
#define CTRY_DEFAULT   0
#define CHANNEL_2GHZ   0x0080
#define CHANNEL_OFDM   0x0040
#define CHANNEL_TURBO   0x0010
#define CHANNEL_108G   (CHANNEL_2GHZ|CHANNEL_OFDM|CHANNEL_TURBO)
#define AR5K_KEYVAL_LENGTH_40   5
#define AR5K_KEYVAL_LENGTH_104   13
#define AR5K_KEYVAL_LENGTH_128   16
#define AR5K_KEYVAL_LENGTH_MAX   AR5K_KEYVAL_LENGTH_128
#define HAL_TXQ_USEDEFAULT   ((u_int32_t) -1)
#define HAL_RSSI_EP_MULTIPLIER   (1<<7)
#define AR5K_ASSERT_ENTRY(_e, _s)
#define AR5K_MAX_RATES   32
#define r_valid   valid
#define r_phy   phy
#define r_rate_kbps   rateKbps
#define r_rate_code   rateCode
#define r_short_preamble   shortPreamble
#define r_dot11_rate   dot11Rate
#define r_control_rate   controlRate
#define rt_rate_count   rateCount
#define rt_rate_code_index   rateCodeToIndex
#define rt_info   info
#define AR5K_RATES_11A
#define AR5K_RATES_11B
#define AR5K_RATES_11G
#define AR5K_RATES_TURBO
#define AR5K_RATES_XR
#define c_channel   channel
#define c_channel_flags   channelFlags
#define HAL_SLOT_TIME_9   396
#define HAL_SLOT_TIME_20   880
#define HAL_SLOT_TIME_MAX   0xffff
#define CHANNEL_A   (IEEE80211_CHAN_5GHZ | IEEE80211_CHAN_OFDM)
#define CHANNEL_B   (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK)
#define CHANNEL_G   (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_DYN)
#define CHANNEL_PUREG   (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_DYN)
#define CHANNEL_T   (CHANNEL_A | IEEE80211_CHAN_TURBO)
#define CHANNEL_TG   (CHANNEL_PUREG | IEEE80211_CHAN_TURBO)
#define CHANNEL_XR   (CHANNEL_A | IEEE80211_CHAN_XR)
#define HAL_INT_RX   0x00000001
#define HAL_INT_RXDESC   0x00000002
#define HAL_INT_RXNOFRM   0x00000008
#define HAL_INT_RXEOL   0x00000010
#define HAL_INT_RXORN   0x00000020
#define HAL_INT_TX   0x00000040
#define HAL_INT_TXDESC   0x00000080
#define HAL_INT_TXURN   0x00000800
#define HAL_INT_MIB   0x00001000
#define HAL_INT_RXPHY   0x00004000
#define HAL_INT_RXKCM   0x00008000
#define HAL_INT_SWBA   0x00010000
#define HAL_INT_BMISS   0x00040000
#define HAL_INT_BNR   0x00100000
#define HAL_INT_GPIO   0x01000000
#define HAL_INT_FATAL   0x40000000
#define HAL_INT_GLOBAL   0x80000000
#define HAL_INT_NOCARD   0xffffffff
#define HAL_INT_COMMON
#define HAL_LED_INIT   IEEE80211_S_INIT
#define HAL_LED_SCAN   IEEE80211_S_SCAN
#define HAL_LED_AUTH   IEEE80211_S_AUTH
#define HAL_LED_ASSOC   IEEE80211_S_ASSOC
#define HAL_LED_RUN   IEEE80211_S_RUN
#define AR5K_GAIN_CRN_FIX_BITS_5111   4
#define AR5K_GAIN_CRN_FIX_BITS_5112   7
#define AR5K_GAIN_CRN_MAX_FIX_BITS   AR5K_GAIN_CRN_FIX_BITS_5112
#define AR5K_GAIN_DYN_ADJUST_HI_MARGIN   15
#define AR5K_GAIN_DYN_ADJUST_LO_MARGIN   20
#define AR5K_GAIN_CCK_PROBE_CORR   5
#define AR5K_GAIN_CCK_OFDM_GAIN_DELTA   15
#define AR5K_GAIN_STEP_COUNT   10
#define AR5K_GAIN_PARAM_TX_CLIP   0
#define AR5K_GAIN_PARAM_PD_90   1
#define AR5K_GAIN_PARAM_PD_84   2
#define AR5K_GAIN_PARAM_GAIN_SEL   3
#define AR5K_GAIN_PARAM_MIX_ORN   0
#define AR5K_GAIN_PARAM_PD_138   1
#define AR5K_GAIN_PARAM_PD_137   2
#define AR5K_GAIN_PARAM_PD_136   3
#define AR5K_GAIN_PARAM_PD_132   4
#define AR5K_GAIN_PARAM_PD_131   5
#define AR5K_GAIN_PARAM_PD_130   6
#define AR5K_GAIN_CHECK_ADJUST(_g)   ((_g)->g_current <= (_g)->g_low || (_g)->g_current >= (_g)->g_high)
#define AR5K_AR5111_GAIN_OPT
#define AR5K_AR5112_GAIN_OPT
#define AR5K_EEPROM_MAGIC   0x003d
#define AR5K_EEPROM_MAGIC_VALUE   0x5aa5
#define AR5K_EEPROM_PROTECT   0x003f
#define AR5K_EEPROM_PROTECT_RD_0_31   0x0001
#define AR5K_EEPROM_PROTECT_WR_0_31   0x0002
#define AR5K_EEPROM_PROTECT_RD_32_63   0x0004
#define AR5K_EEPROM_PROTECT_WR_32_63   0x0008
#define AR5K_EEPROM_PROTECT_RD_64_127   0x0010
#define AR5K_EEPROM_PROTECT_WR_64_127   0x0020
#define AR5K_EEPROM_PROTECT_RD_128_191   0x0040
#define AR5K_EEPROM_PROTECT_WR_128_191   0x0080
#define AR5K_EEPROM_PROTECT_RD_192_207   0x0100
#define AR5K_EEPROM_PROTECT_WR_192_207   0x0200
#define AR5K_EEPROM_PROTECT_RD_208_223   0x0400
#define AR5K_EEPROM_PROTECT_WR_208_223   0x0800
#define AR5K_EEPROM_PROTECT_RD_224_239   0x1000
#define AR5K_EEPROM_PROTECT_WR_224_239   0x2000
#define AR5K_EEPROM_PROTECT_RD_240_255   0x4000
#define AR5K_EEPROM_PROTECT_WR_240_255   0x8000
#define AR5K_EEPROM_REG_DOMAIN   0x00bf
#define AR5K_EEPROM_INFO_BASE   0x00c0
#define AR5K_EEPROM_INFO_MAX   (0x400 - AR5K_EEPROM_INFO_BASE)
#define AR5K_EEPROM_INFO(_n)   (AR5K_EEPROM_INFO_BASE + (_n))
#define AR5K_EEPROM_VERSION   AR5K_EEPROM_INFO(1)
#define AR5K_EEPROM_VERSION_3_0   0x3000
#define AR5K_EEPROM_VERSION_3_1   0x3001
#define AR5K_EEPROM_VERSION_3_2   0x3002
#define AR5K_EEPROM_VERSION_3_3   0x3003
#define AR5K_EEPROM_VERSION_3_4   0x3004
#define AR5K_EEPROM_VERSION_4_0   0x4000
#define AR5K_EEPROM_VERSION_4_1   0x4001
#define AR5K_EEPROM_VERSION_4_2   0x4002
#define AR5K_EEPROM_VERSION_4_3   0x4003
#define AR5K_EEPROM_VERSION_4_6   0x4006
#define AR5K_EEPROM_VERSION_4_7   0x3007
#define AR5K_EEPROM_MODE_11A   0
#define AR5K_EEPROM_MODE_11B   1
#define AR5K_EEPROM_MODE_11G   2
#define AR5K_EEPROM_HDR   AR5K_EEPROM_INFO(2)
#define AR5K_EEPROM_HDR_11A(_v)   (((_v) >> AR5K_EEPROM_MODE_11A) & 0x1)
#define AR5K_EEPROM_HDR_11B(_v)   (((_v) >> AR5K_EEPROM_MODE_11B) & 0x1)
#define AR5K_EEPROM_HDR_11G(_v)   (((_v) >> AR5K_EEPROM_MODE_11G) & 0x1)
#define AR5K_EEPROM_HDR_T_2GHZ_DIS(_v)   (((_v) >> 3) & 0x1)
#define AR5K_EEPROM_HDR_T_5GHZ_DBM(_v)   (((_v) >> 4) & 0x7f)
#define AR5K_EEPROM_HDR_DEVICE(_v)   (((_v) >> 11) & 0x7)
#define AR5K_EEPROM_HDR_T_5GHZ_DIS(_v)   (((_v) >> 15) & 0x1)
#define AR5K_EEPROM_HDR_RFKILL(_v)   (((_v) >> 14) & 0x1)
#define AR5K_EEPROM_RFKILL_GPIO_SEL   0x0000001c
#define AR5K_EEPROM_RFKILL_GPIO_SEL_S   2
#define AR5K_EEPROM_RFKILL_POLARITY   0x00000002
#define AR5K_EEPROM_RFKILL_POLARITY_S   1
#define AR5K_EEPROM_OFF(_v, _v3_0, _v3_3)   (((_v) >= AR5K_EEPROM_VERSION_3_3) ? _v3_3 : _v3_0)
#define AR5K_EEPROM_ANT_GAIN(_v)   AR5K_EEPROM_OFF(_v, 0x00c4, 0x00c3)
#define AR5K_EEPROM_ANT_GAIN_5GHZ(_v)   ((int8_t)(((_v) >> 8) & 0xff))
#define AR5K_EEPROM_ANT_GAIN_2GHZ(_v)   ((int8_t)((_v) & 0xff))
#define AR5K_EEPROM_MODES_11A(_v)   AR5K_EEPROM_OFF(_v, 0x00c5, 0x00d4)
#define AR5K_EEPROM_MODES_11B(_v)   AR5K_EEPROM_OFF(_v, 0x00d0, 0x00f2)
#define AR5K_EEPROM_MODES_11G(_v)   AR5K_EEPROM_OFF(_v, 0x00da, 0x010d)
#define AR5K_EEPROM_CTL(_v)   AR5K_EEPROM_OFF(_v, 0x00e4, 0x0128)
#define AR5K_EEPROM_OBDB0_2GHZ   0x00ec
#define AR5K_EEPROM_OBDB1_2GHZ   0x00ed
#define AR5K_EEPROM_MISC0   0x00c4
#define AR5K_EEPROM_EARSTART(_v)   ((_v) & 0xfff)
#define AR5K_EEPROM_EEMAP(_v)   (((_v) >> 14) & 0x3)
#define AR5K_EEPROM_MISC1   0x00c5
#define AR5K_EEPROM_TARGET_PWRSTART(_v)   ((_v) & 0xfff)
#define AR5K_EEPROM_HAS32KHZCRYSTAL(_v)   (((_v) >> 14) & 0x1)
#define AR5K_EEPROM_EEP_SCALE   100
#define AR5K_EEPROM_EEP_DELTA   10
#define AR5K_EEPROM_N_MODES   3
#define AR5K_EEPROM_N_5GHZ_CHAN   10
#define AR5K_EEPROM_N_2GHZ_CHAN   3
#define AR5K_EEPROM_MAX_CHAN   10
#define AR5K_EEPROM_N_PCDAC   11
#define AR5K_EEPROM_N_TEST_FREQ   8
#define AR5K_EEPROM_N_EDGES   8
#define AR5K_EEPROM_N_INTERCEPTS   11
#define AR5K_EEPROM_FREQ_M(_v)   AR5K_EEPROM_OFF(_v, 0x7f, 0xff)
#define AR5K_EEPROM_PCDAC_M   0x3f
#define AR5K_EEPROM_PCDAC_START   1
#define AR5K_EEPROM_PCDAC_STOP   63
#define AR5K_EEPROM_PCDAC_STEP   1
#define AR5K_EEPROM_NON_EDGE_M   0x40
#define AR5K_EEPROM_CHANNEL_POWER   8
#define AR5K_EEPROM_N_OBDB   4
#define AR5K_EEPROM_OBDB_DIS   0xffff
#define AR5K_EEPROM_CHANNEL_DIS   0xff
#define AR5K_EEPROM_SCALE_OC_DELTA(_x)   (((_x) * 2) / 10)
#define AR5K_EEPROM_N_CTLS(_v)   AR5K_EEPROM_OFF(_v, 16, 32)
#define AR5K_EEPROM_MAX_CTLS   32
#define AR5K_EEPROM_N_XPD_PER_CHANNEL   4
#define AR5K_EEPROM_N_XPD0_POINTS   4
#define AR5K_EEPROM_N_XPD3_POINTS   3
#define AR5K_EEPROM_N_INTERCEPT_10_2GHZ   35
#define AR5K_EEPROM_N_INTERCEPT_10_5GHZ   55
#define AR5K_EEPROM_POWER_M   0x3f
#define AR5K_EEPROM_POWER_MIN   0
#define AR5K_EEPROM_POWER_MAX   3150
#define AR5K_EEPROM_POWER_STEP   50
#define AR5K_EEPROM_POWER_TABLE_SIZE   64
#define AR5K_EEPROM_N_POWER_LOC_11B   4
#define AR5K_EEPROM_N_POWER_LOC_11G   6
#define AR5K_EEPROM_I_GAIN   10
#define AR5K_EEPROM_CCK_OFDM_DELTA   15
#define AR5K_EEPROM_N_IQ_CAL   2
#define AR5K_TXPOWER_OFDM(_r, _v)
#define AR5K_TXPOWER_CCK(_r, _v)
#define HAL_TXSTAT_ALTRATE   0x80
#define HAL_TXERR_XRETRY   0x01
#define HAL_TXERR_FILT   0x02
#define HAL_TXERR_FIFO   0x04
#define HAL_RXERR_CRC   0x01
#define HAL_RXERR_PHY   0x02
#define HAL_RXERR_FIFO   0x04
#define HAL_RXERR_DECRYPT   0x08
#define HAL_RXERR_MIC   0x10
#define HAL_RXKEYIX_INVALID   ((u_int8_t) - 1)
#define HAL_TXKEYIX_INVALID   ((u_int32_t) - 1)
#define HAL_PHYERR_UNDERRUN   0x00
#define HAL_PHYERR_TIMING   0x01
#define HAL_PHYERR_PARITY   0x02
#define HAL_PHYERR_RATE   0x03
#define HAL_PHYERR_LENGTH   0x04
#define HAL_PHYERR_RADAR   0x05
#define HAL_PHYERR_SERVICE   0x06
#define HAL_PHYERR_TOR   0x07
#define HAL_PHYERR_OFDM_TIMING   0x11
#define HAL_PHYERR_OFDM_SIGNAL_PARITY   0x12
#define HAL_PHYERR_OFDM_RATE_ILLEGAL   0x13
#define HAL_PHYERR_OFDM_LENGTH_ILLEGAL   0x14
#define HAL_PHYERR_OFDM_POWER_DROP   0x15
#define HAL_PHYERR_OFDM_SERVICE   0x16
#define HAL_PHYERR_OFDM_RESTART   0x17
#define HAL_PHYERR_CCK_TIMING   0x19
#define HAL_PHYERR_CCK_HEADER_CRC   0x1a
#define HAL_PHYERR_CCK_RATE_ILLEGAL   0x1b
#define HAL_PHYERR_CCK_SERVICE   0x1e
#define HAL_PHYERR_CCK_RESTART   0x1f
#define ds_rxstat   ds_us.rx
#define ds_txstat   ds_us.tx
#define HAL_RXDESC_INTREQ   0x0020
#define HAL_TXDESC_CLRDMASK   0x0001
#define HAL_TXDESC_NOACK   0x0002
#define HAL_TXDESC_RTSENA   0x0004
#define HAL_TXDESC_CTSENA   0x0008
#define HAL_TXDESC_INTREQ   0x0010
#define HAL_TXDESC_VEOL   0x0020
#define AR5K_HAL_FUNCTION(_hal, _n, _f)   (_hal)->ah_##_f = ar5k_##_n##_##_f
#define AR5K_HAL_FUNCTIONS(_t, _n, _a)
#define AR5K_MAX_GPIO   10
#define AR5K_MAX_RF_BANKS   8
#define ah_getcountrycode   ah_country_code
#define ah_macVersion   ah_mac_version
#define ah_macRev   ah_mac_revision
#define ah_phyRev   ah_phy_revision
#define ah_analog5GhzRev   ah_radio_5ghz_revision
#define ah_analog2GhzRev   ah_radio_2ghz_revision
#define ah_regdomain   ah_capabilities.reg_current
#define ah_modes   ah_capabilities.cap_mode
#define ah_ee_version   ah_capabilities.cap_eeprom.ee_version
#define AR5K_SREV_NAME
#define AR5K_SREV_UNKNOWN   0xffff
#define AR5K_SREV_REV_FPGA   1
#define AR5K_SREV_REV_PROTO   2
#define AR5K_SREV_REV_PROTOA   3
#define AR5K_SREV_REV_AR5210   4
#define AR5K_SREV_REV_AR5210M   5
#define AR5K_SREV_REV_AR5210M23   7
#define AR5K_SREV_REV_AR521023   8
#define AR5K_SREV_VER_AR5210   0
#define AR5K_SREV_VER_AR5311   1
#define AR5K_SREV_VER_AR5311A   2
#define AR5K_SREV_VER_AR5311B   3
#define AR5K_SREV_VER_AR5211   4
#define AR5K_SREV_VER_AR5212   5
#define AR5K_SREV_RAD_5110   0x00
#define AR5K_SREV_RAD_5111   0x10
#define AR5K_SREV_RAD_5111A   0x15
#define AR5K_SREV_RAD_2111   0x20
#define AR5K_SREV_RAD_5112   0x30
#define AR5K_SREV_RAD_5112A   0x35
#define AR5K_SREV_RAD_2112   0x40
#define AR5K_SREV_RAD_2112A   0x45
#define HAL_ABI_VERSION   0x04090901
#define AR5K_PRINTF(fmt,)   printk("%s: " fmt, __func__, ##__VA_ARGS__)
#define AR5K_PRINT(fmt)   printk("%s: " fmt, __func__)
#define AR5K_TRACE
#define AR5K_DELAY(_n)   udelay(_n)
#define bcopy(_a, _b, _c)   memcpy(_b, _a, _c)
#define bzero(_a, _b)   memset(_a, 0, _b)
#define printf   AR5K_PRINT
#define AR5K_ELEMENTS(_array)   (sizeof(_array) / sizeof(_array[0]))
#define AR5K_TUNE_DMA_BEACON_RESP   2
#define AR5K_TUNE_SW_BEACON_RESP   10
#define AR5K_TUNE_ADDITIONAL_SWBA_BACKOFF   0
#define AR5K_TUNE_RADAR_ALERT   AH_FALSE
#define AR5K_TUNE_MIN_TX_FIFO_THRES   1
#define AR5K_TUNE_MAX_TX_FIFO_THRES   ((IEEE80211_MAX_LEN / 64) + 1)
#define AR5K_TUNE_RSSI_THRES   1792
#define AR5K_TUNE_REGISTER_TIMEOUT   20000
#define AR5K_TUNE_REGISTER_DWELL_TIME   20000
#define AR5K_TUNE_BEACON_INTERVAL   100
#define AR5K_TUNE_AIFS   2
#define AR5K_TUNE_AIFS_11B   2
#define AR5K_TUNE_AIFS_XR   0
#define AR5K_TUNE_CWMIN   15
#define AR5K_TUNE_CWMIN_11B   31
#define AR5K_TUNE_CWMIN_XR   3
#define AR5K_TUNE_CWMAX   1023
#define AR5K_TUNE_CWMAX_11B   1023
#define AR5K_TUNE_CWMAX_XR   7
#define AR5K_TUNE_NOISE_FLOOR   -72
#define AR5K_TUNE_MAX_TXPOWER   60
#define AR5K_TUNE_DEFAULT_TXPOWER   30
#define AR5K_TUNE_TPC_TXPOWER   AH_TRUE
#define AR5K_TUNE_ANT_DIVERSITY   AH_TRUE
#define AR5K_TUNE_HWTXTRIES   4
#define AR5K_TUNE_REGDOMAIN   DMN_FCC1_FCCA
#define AR5K_TUNE_CTRY   CTRY_DEFAULT
#define AR5K_INIT_MODE
#define AR5K_INIT_TX_LATENCY   502
#define AR5K_INIT_USEC   39
#define AR5K_INIT_USEC_TURBO   79
#define AR5K_INIT_USEC_32   31
#define AR5K_INIT_CARR_SENSE_EN   1
#define AR5K_INIT_PROG_IFS   920
#define AR5K_INIT_PROG_IFS_TURBO   960
#define AR5K_INIT_EIFS   3440
#define AR5K_INIT_EIFS_TURBO   6880
#define AR5K_INIT_SLOT_TIME   396
#define AR5K_INIT_SLOT_TIME_TURBO   480
#define AR5K_INIT_ACK_CTS_TIMEOUT   1024
#define AR5K_INIT_ACK_CTS_TIMEOUT_TURBO   0x08000800
#define AR5K_INIT_SIFS   560
#define AR5K_INIT_SIFS_TURBO   480
#define AR5K_INIT_SH_RETRY   10
#define AR5K_INIT_LG_RETRY   AR5K_INIT_SH_RETRY
#define AR5K_INIT_SSH_RETRY   32
#define AR5K_INIT_SLG_RETRY   AR5K_INIT_SSH_RETRY
#define AR5K_INIT_TX_RETRY   10
#define AR5K_INIT_TOPS   8
#define AR5K_INIT_RXNOFRM   8
#define AR5K_INIT_RPGTO   0
#define AR5K_INIT_TXNOFRM   0
#define AR5K_INIT_BEACON_PERIOD   65535
#define AR5K_INIT_TIM_OFFSET   0
#define AR5K_INIT_BEACON_EN   0
#define AR5K_INIT_RESET_TSF   0
#define AR5K_INIT_TRANSMIT_LATENCY
#define AR5K_INIT_TRANSMIT_LATENCY_TURBO
#define AR5K_INIT_PROTO_TIME_CNTRL
#define AR5K_INIT_PROTO_TIME_CNTRL_TURBO
#define AR5K_INIT_BEACON_CONTROL
#define __bswap32(_x)   (_x)
#define AR5K_REG_WRITE(_reg, _val)   (writel(cpu_to_le32(_val), hal->ah_sh + (_reg)))
#define AR5K_REG_READ(_reg)   (le32_to_cpu(readl(hal->ah_sh + (_reg))))
#define AR5K_REG_SM(_val, _flags)   (((_val) << _flags##_S) & (_flags))
#define AR5K_REG_MS(_val, _flags)   (((_val) & (_flags)) >> _flags##_S)
#define AR5K_REG_WRITE_BITS(_reg, _flags, _val)
#define AR5K_REG_MASKED_BITS(_reg, _flags, _mask)   AR5K_REG_WRITE(_reg, (AR5K_REG_READ(_reg) & (_mask)) | (_flags))
#define AR5K_REG_ENABLE_BITS(_reg, _flags)   AR5K_REG_WRITE(_reg, AR5K_REG_READ(_reg) | (_flags))
#define AR5K_REG_DISABLE_BITS(_reg, _flags)   AR5K_REG_WRITE(_reg, AR5K_REG_READ(_reg) &~ (_flags))
#define AR5K_PHY_WRITE(_reg, _val)   AR5K_REG_WRITE(hal->ah_phy + ((_reg) << 2), _val)
#define AR5K_PHY_READ(_reg)   AR5K_REG_READ(hal->ah_phy + ((_reg) << 2))
#define AR5K_REG_WAIT(_i)
#define AR5K_EEPROM_READ(_o, _v)
#define AR5K_EEPROM_READ_HDR(_o, _v)   AR5K_EEPROM_READ(_o, hal->ah_capabilities.cap_eeprom._v); \
#define AR5K_REG_READ_Q(_reg, _queue)   (AR5K_REG_READ(_reg) & (1 << _queue)) \
#define AR5K_REG_WRITE_Q(_reg, _queue)   AR5K_REG_WRITE(_reg, (1 << _queue))
#define AR5K_Q_ENABLE_BITS(_reg, _queue)
#define AR5K_Q_DISABLE_BITS(_reg, _queue)
#define AR5K_LE_READ_2(_p)   (((const u_int8_t *)(_p))[0] | (((const u_int8_t *)(_p))[1] << 8))
#define AR5K_LE_READ_4(_p)
#define AR5K_LE_WRITE_2(_p, _val)
#define AR5K_LE_WRITE_4(_p, _val)
#define AR5K_INI_VAL_11A   0
#define AR5K_INI_VAL_11A_TURBO   1
#define AR5K_INI_VAL_11B   2
#define AR5K_INI_VAL_11G   3
#define AR5K_INI_VAL_11G_TURBO   4
#define AR5K_INI_VAL_XR   0
#define AR5K_INI_VAL_MAX   5
#define AR5K_INI_PHY_5111   0
#define AR5K_INI_PHY_5112   1
#define AR5K_INI_PHY_511X   1
#define AR5K_AR5111_INI_RF_MAX_BANKS   AR5K_MAX_RF_BANKS
#define AR5K_AR5112_INI_RF_MAX_BANKS   AR5K_MAX_RF_BANKS
#define AR5K_AR5111_INI_RF
#define AR5K_AR5112_INI_RF
#define AR5K_INI_RFGAIN_5GHZ   0
#define AR5K_INI_RFGAIN_2GHZ   1
#define AR5K_INI_RFGAIN

Typedefs

typedef void * HAL_SOFTC
typedef int HAL_BUS_TAG
typedef void * HAL_BUS_HANDLE
typedef u_int32_t HAL_BUS_ADDR
typedef int HAL_STATUS
typedef uint32_t HAL_CTRY_CODE
typedef u_int32_t HAL_INT
typedef enum ieee80211_state HAL_LED_STATE
typedef ath_hal *() ar5k_attach_t (u_int16_t, void *, HAL_BUS_TAG, HAL_BUS_HANDLE, HAL_STATUS *)
typedef HAL_BOOL() ar5k_rfgain_t (struct ath_hal *, HAL_CHANNEL *, u_int)

Enumerations

enum  ar5k_version { AR5K_AR5210 = 0, AR5K_AR5211 = 1, AR5K_AR5212 = 2 }
enum  ar5k_radio { AR5K_AR5110 = 0, AR5K_AR5111 = 1, AR5K_AR5112 = 2 }
enum  HAL_BOOL { AH_FALSE = 0, AH_TRUE }
enum  HAL_MODE {
  HAL_MODE_11A = 0x001, HAL_MODE_TURBO = 0x002, HAL_MODE_11B = 0x004, HAL_MODE_PUREG = 0x008,
  HAL_MODE_11G = 0x008, HAL_MODE_108G = 0x020, HAL_MODE_XR = 0x040, HAL_MODE_ALL = 0xfff
}
enum  HAL_ANT_SETTING { HAL_ANT_VARIABLE = 0, HAL_ANT_FIXED_A = 1, HAL_ANT_FIXED_B = 2, HAL_ANT_MAX = 3 }
enum  HAL_OPMODE { HAL_M_STA = 1, HAL_M_IBSS = 0, HAL_M_HOSTAP = 6, HAL_M_MONITOR = 8 }
enum  HAL_TX_QUEUE {
  HAL_TX_QUEUE_INACTIVE = 0, HAL_TX_QUEUE_DATA, HAL_TX_QUEUE_BEACON, HAL_TX_QUEUE_CAB,
  HAL_TX_QUEUE_PSPOLL
}
enum  HAL_TX_QUEUE_ID {
  HAL_TX_QUEUE_ID_DATA_MIN = 0, HAL_TX_QUEUE_ID_DATA_MAX = 6, HAL_TX_QUEUE_ID_PSPOLL = 7, HAL_TX_QUEUE_ID_BEACON = 8,
  HAL_TX_QUEUE_ID_CAB = 9
}
enum  HAL_TX_QUEUE_SUBTYPE {
  HAL_WME_AC_BK = 0, HAL_WME_AC_BE = 1, HAL_WME_AC_VI = 2, HAL_WME_AC_VO = 3,
  HAL_WME_UPSD = 4
}
enum  HAL_PKT_TYPE {
  HAL_PKT_TYPE_NORMAL = 0, HAL_PKT_TYPE_ATIM = 1, HAL_PKT_TYPE_PSPOLL = 2, HAL_PKT_TYPE_BEACON = 3,
  HAL_PKT_TYPE_PROBE_RESP = 4, HAL_PKT_TYPE_PIFS = 5
}
enum  HAL_POWER_MODE {
  HAL_PM_UNDEFINED = 0, HAL_PM_AUTO, HAL_PM_AWAKE, HAL_PM_FULL_SLEEP,
  HAL_PM_NETWORK_SLEEP
}
enum  HAL_CIPHER {
  HAL_CIPHER_WEP = 0, HAL_CIPHER_AES_OCB, HAL_CIPHER_AES_CCM, HAL_CIPHER_CKIP,
  HAL_CIPHER_TKIP, HAL_CIPHER_CLR, HAL_CIPHER_MIC
}
enum  HAL_CAPABILITY_TYPE {
  HAL_CAP_PHYCOUNTERS, HAL_CAP_CIPHER, HAL_CAP_TKIP_SPLIT, HAL_CAP_TPC,
  HAL_CAP_TXPOW, HAL_CAP_BURST, HAL_CAP_DIVERSITY, HAL_CAP_VEOL,
  HAL_CAP_REG_DMN, HAL_CAP_NUM_TXQUEUES
}
enum  HAL_RFGAIN { HAL_RFGAIN_INACTIVE = 0, HAL_RFGAIN_READ_REQUESTED, HAL_RFGAIN_NEED_CHANGE }
enum  HAL_CHIP { HAL_CHIP_5GHZ = IEEE80211_CHAN_5GHZ, HAL_CHIP_2GHZ = IEEE80211_CHAN_2GHZ }
enum  ar5k_srev_type { AR5K_VERSION_VER, AR5K_VERSION_REV, AR5K_VERSION_RAD }

Functions

const char * ath_hal_probe (u_int16_t, u_int16_t)
ath_hal_ath_hal_attach (u_int16_t devid, HAL_SOFTC sc, HAL_BUS_TAG t, HAL_BUS_HANDLE h, void *s)
ath_halath_hal_attach (u_int16_t device, HAL_SOFTC sc, HAL_BUS_TAG, HAL_BUS_HANDLE, HAL_STATUS *)
void ath_hal_detach (struct ath_hal *ah)
u_int16_t ath_hal_computetxtime (struct ath_hal *, const HAL_RATE_TABLE *, u_int32_t, u_int16_t, HAL_BOOL)
u_int ath_hal_mhz2ieee (u_int, u_int)
u_int ath_hal_ieee2mhz (u_int, u_int)
HAL_BOOL ath_hal_init_channels (struct ath_hal *, HAL_CHANNEL *, u_int, u_int *, HAL_CTRY_CODE, u_int16_t, HAL_BOOL, HAL_BOOL)
u_int ath_hal_getwirelessmodes (struct ath_hal *, HAL_CTRY_CODE)
const char * ar5k_printver (enum ar5k_srev_type, u_int)
void ar5k_radar_alert (struct ath_hal *)
u_int32_t ar5k_regdomain_to_ieee (u_int16_t)
u_int16_t ar5k_regdomain_from_ieee (u_int32_t)
u_int16_t ar5k_get_regdomain (struct ath_hal *)
u_int32_t ar5k_bitswap (u_int32_t, u_int)
u_int ar5k_clocktoh (u_int, HAL_BOOL)
u_int ar5k_htoclock (u_int, HAL_BOOL)
void ar5k_rt_copy (HAL_RATE_TABLE *, const HAL_RATE_TABLE *)
HAL_BOOL ar5k_register_timeout (struct ath_hal *, u_int32_t, u_int32_t, u_int32_t, HAL_BOOL)
int ar5k_eeprom_init (struct ath_hal *)
int ar5k_eeprom_read_mac (struct ath_hal *, u_int8_t *)
HAL_BOOL ar5k_eeprom_regulation_domain (struct ath_hal *, HAL_BOOL, u_int32_t *)
HAL_BOOL ar5k_channel (struct ath_hal *, HAL_CHANNEL *)
HAL_BOOL ar5k_rfregs (struct ath_hal *, HAL_CHANNEL *, u_int)
u_int32_t ar5k_rfregs_gainf_corr (struct ath_hal *)
HAL_BOOL ar5k_rfregs_gain_readback (struct ath_hal *)
int32_t ar5k_rfregs_gain_adjust (struct ath_hal *)
HAL_BOOL ar5k_rfgain (struct ath_hal *, u_int, u_int)
void ar5k_txpower_table (struct ath_hal *, HAL_CHANNEL *, int16_t)

Variables

ath_desc __packed__


Define Documentation

#define __bswap32 _x  )    (_x)
 

Definition at line 1435 of file ah.h.

#define ah_analog2GhzRev   ah_radio_2ghz_revision
 

Definition at line 1010 of file ah.h.

#define ah_analog5GhzRev   ah_radio_5ghz_revision
 

Definition at line 1009 of file ah.h.

#define ah_ee_version   ah_capabilities.cap_eeprom.ee_version
 

Definition at line 1013 of file ah.h.

#define ah_getcountrycode   ah_country_code
 

Definition at line 985 of file ah.h.

#define ah_macRev   ah_mac_revision
 

Definition at line 1007 of file ah.h.

#define ah_macVersion   ah_mac_version
 

Definition at line 1006 of file ah.h.

#define ah_modes   ah_capabilities.cap_mode
 

Definition at line 1012 of file ah.h.

#define ah_phyRev   ah_phy_revision
 

Definition at line 1008 of file ah.h.

#define ah_regdomain   ah_capabilities.reg_current
 

Definition at line 1011 of file ah.h.

#define AR5K_AR5111_GAIN_OPT
 

Value:

{                                       \
        4,                                                              \
        9,                                                              \
        {                                                               \
                { { 4, 1, 1, 1 }, 6 },                                  \
                { { 4, 0, 1, 1 }, 4 },                                  \
                { { 3, 1, 1, 1 }, 3 },                                  \
                { { 4, 0, 0, 1 }, 1 },                                  \
                { { 4, 1, 1, 0 }, 0 },                                  \
                { { 4, 0, 1, 0 }, -2 },                                 \
                { { 3, 1, 1, 0 }, -3 },                                 \
                { { 4, 0, 0, 0 }, -4 },                                 \
                { { 2, 1, 1, 0 }, -6 }                                  \
        }                                                               \
}

Definition at line 605 of file ah.h.

#define AR5K_AR5111_INI_RF
 

Definition at line 1542 of file ah.h.

#define AR5K_AR5111_INI_RF_MAX_BANKS   AR5K_MAX_RF_BANKS
 

Definition at line 1533 of file ah.h.

Referenced by ar5k_ar5111_rfregs().

#define AR5K_AR5112_GAIN_OPT
 

Value:

{                                       \
        1,                                                              \
        8,                                                              \
        {                                                               \
                { { 3, 0, 0, 0, 0, 0, 0 }, 6 },                         \
                { { 2, 0, 0, 0, 0, 0, 0 }, 0 },                         \
                { { 1, 0, 0, 0, 0, 0, 0 }, -3 },                        \
                { { 0, 0, 0, 0, 0, 0, 0 }, -6 },                        \
                { { 0, 1, 1, 0, 0, 0, 0 }, -8 },                        \
                { { 0, 1, 1, 0, 1, 1, 0 }, -10 },                       \
                { { 0, 1, 0, 1, 1, 1, 0 }, -13 },                       \
                { { 0, 1, 0, 1, 1, 0, 1 }, -16 },                       \
        }                                                               \
}

Definition at line 621 of file ah.h.

#define AR5K_AR5112_INI_RF
 

Definition at line 1635 of file ah.h.

#define AR5K_AR5112_INI_RF_MAX_BANKS   AR5K_MAX_RF_BANKS
 

Definition at line 1534 of file ah.h.

Referenced by ar5k_ar5112_rfregs().

#define AR5K_ASSERT_ENTRY _e,
_s  ) 
 

Value:

do {                                    \
if (_e >= _s) {                                                 \
                printk("%s: assert failed\n", __func__); \
return (AH_FALSE);                                      \
        } \
} while (0)

Definition at line 346 of file ah.h.

Referenced by ar5k_ar5111_rfregs(), ar5k_ar5112_rfregs(), ar5k_ar5210_get_tx_buf(), ar5k_ar5210_is_key_valid(), ar5k_ar5210_put_tx_buf(), ar5k_ar5210_release_tx_queue(), ar5k_ar5210_reset_key(), ar5k_ar5210_reset_tx_queue(), ar5k_ar5210_set_key(), ar5k_ar5210_set_key_lladdr(), ar5k_ar5210_setup_tx_queueprops(), ar5k_ar5210_stop_tx_dma(), ar5k_ar5210_tx_start(), ar5k_ar5211_get_tx_buf(), ar5k_ar5211_is_key_valid(), ar5k_ar5211_put_tx_buf(), ar5k_ar5211_release_tx_queue(), ar5k_ar5211_reset_key(), ar5k_ar5211_reset_tx_queue(), ar5k_ar5211_set_key(), ar5k_ar5211_set_key_lladdr(), ar5k_ar5211_setup_tx_queueprops(), ar5k_ar5211_stop_tx_dma(), ar5k_ar5211_tx_start(), ar5k_ar5212_get_tx_buf(), ar5k_ar5212_is_key_valid(), ar5k_ar5212_num_tx_pending(), ar5k_ar5212_put_tx_buf(), ar5k_ar5212_release_tx_queue(), ar5k_ar5212_reset_key(), ar5k_ar5212_reset_tx_queue(), ar5k_ar5212_set_key(), ar5k_ar5212_set_key_lladdr(), ar5k_ar5212_setup_tx_queueprops(), ar5k_ar5212_stop_tx_dma(), ar5k_ar5212_tx_start(), and ath_hal_computetxtime().

#define AR5K_CCK_NUM_BITS _frmlen  )    (_frmlen << 3)
 

Definition at line 176 of file ah.h.

#define AR5K_CCK_PHY_TIME _sp  ) 
 

Value:

Definition at line 177 of file ah.h.

#define AR5K_CCK_PLCP_BITS   48
 

Definition at line 175 of file ah.h.

#define AR5K_CCK_PREAMBLE_BITS   144
 

Definition at line 174 of file ah.h.

#define AR5K_CCK_SIFS_TIME   10
 

Definition at line 173 of file ah.h.

#define AR5K_CCK_TX_TIME _kbps,
_frmlen,
_sp  ) 
 

Value:

AR5K_CCK_PHY_TIME(_sp) +                                        \
        ((AR5K_CCK_NUM_BITS(_frmlen) * 1000) / _kbps) +                 \
AR5K_CCK_SIFS_TIME

Definition at line 180 of file ah.h.

Referenced by ath_hal_computetxtime().

#define AR5K_DELAY _n  )    udelay(_n)
 

Definition at line 1328 of file ah.h.

Referenced by ar5k_ar5110_channel(), ar5k_ar5210_calibrate(), ar5k_ar5210_eeprom_read(), ar5k_ar5210_eeprom_write(), ar5k_ar5210_nic_reset(), ar5k_ar5210_nic_wakeup(), ar5k_ar5210_noise_floor(), ar5k_ar5210_reset(), ar5k_ar5210_set_power(), ar5k_ar5210_stop_rx_dma(), ar5k_ar5211_eeprom_read(), ar5k_ar5211_eeprom_write(), ar5k_ar5211_nic_reset(), ar5k_ar5211_nic_wakeup(), ar5k_ar5211_radio_revision(), ar5k_ar5211_reset(), ar5k_ar5211_set_power(), ar5k_ar5211_stop_rx_dma(), ar5k_ar5212_eeprom_read(), ar5k_ar5212_eeprom_write(), ar5k_ar5212_nic_reset(), ar5k_ar5212_nic_wakeup(), ar5k_ar5212_radio_revision(), ar5k_ar5212_reset(), ar5k_ar5212_set_power(), ar5k_ar5212_stop_rx_dma(), ar5k_ar5212_stop_tx_dma(), and ar5k_register_timeout().

#define AR5K_EEPROM_ANT_GAIN _v  )    AR5K_EEPROM_OFF(_v, 0x00c4, 0x00c3)
 

Definition at line 701 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_ANT_GAIN_2GHZ _v  )    ((int8_t)((_v) & 0xff))
 

Definition at line 703 of file ah.h.

#define AR5K_EEPROM_ANT_GAIN_5GHZ _v  )    ((int8_t)(((_v) >> 8) & 0xff))
 

Definition at line 702 of file ah.h.

#define AR5K_EEPROM_CCK_OFDM_DELTA   15
 

Definition at line 759 of file ah.h.

Referenced by ar5k_eeprom_read_modes().

#define AR5K_EEPROM_CHANNEL_DIS   0xff
 

Definition at line 742 of file ah.h.

Referenced by ar5k_eeprom_bin2freq().

#define AR5K_EEPROM_CHANNEL_POWER   8
 

Definition at line 739 of file ah.h.

#define AR5K_EEPROM_CTL _v  )    AR5K_EEPROM_OFF(_v, 0x00e4, 0x0128)
 

Definition at line 708 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_EARSTART _v  )    ((_v) & 0xfff)
 

Definition at line 716 of file ah.h.

#define AR5K_EEPROM_EEMAP _v  )    (((_v) >> 14) & 0x3)
 

Definition at line 717 of file ah.h.

#define AR5K_EEPROM_EEP_DELTA   10
 

Definition at line 724 of file ah.h.

#define AR5K_EEPROM_EEP_SCALE   100
 

Definition at line 723 of file ah.h.

#define AR5K_EEPROM_FREQ_M _v  )    AR5K_EEPROM_OFF(_v, 0x7f, 0xff)
 

Definition at line 733 of file ah.h.

#define AR5K_EEPROM_HAS32KHZCRYSTAL _v  )    (((_v) >> 14) & 0x1)
 

Definition at line 720 of file ah.h.

#define AR5K_EEPROM_HDR   AR5K_EEPROM_INFO(2)
 

Definition at line 682 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_HDR_11A _v  )    (((_v) >> AR5K_EEPROM_MODE_11A) & 0x1)
 

Definition at line 683 of file ah.h.

Referenced by ar5k_ar5211_get_capabilities(), and ar5k_ar5212_get_capabilities().

#define AR5K_EEPROM_HDR_11B _v  )    (((_v) >> AR5K_EEPROM_MODE_11B) & 0x1)
 

Definition at line 684 of file ah.h.

Referenced by ar5k_ar5211_get_capabilities(), and ar5k_ar5212_get_capabilities().

#define AR5K_EEPROM_HDR_11G _v  )    (((_v) >> AR5K_EEPROM_MODE_11G) & 0x1)
 

Definition at line 685 of file ah.h.

Referenced by ar5k_ar5211_get_capabilities(), and ar5k_ar5212_get_capabilities().

#define AR5K_EEPROM_HDR_DEVICE _v  )    (((_v) >> 11) & 0x7)
 

Definition at line 688 of file ah.h.

#define AR5K_EEPROM_HDR_RFKILL _v  )    (((_v) >> 14) & 0x1)
 

Definition at line 690 of file ah.h.

Referenced by ar5k_ar5210_reset(), ar5k_ar5211_reset(), and ar5k_ar5212_reset().

#define AR5K_EEPROM_HDR_T_2GHZ_DIS _v  )    (((_v) >> 3) & 0x1)
 

Definition at line 686 of file ah.h.

#define AR5K_EEPROM_HDR_T_5GHZ_DBM _v  )    (((_v) >> 4) & 0x7f)
 

Definition at line 687 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_HDR_T_5GHZ_DIS _v  )    (((_v) >> 15) & 0x1)
 

Definition at line 689 of file ah.h.

#define AR5K_EEPROM_I_GAIN   10
 

Definition at line 758 of file ah.h.

Referenced by ar5k_eeprom_read_modes().

#define AR5K_EEPROM_INFO _n  )    (AR5K_EEPROM_INFO_BASE + (_n))
 

Definition at line 663 of file ah.h.

#define AR5K_EEPROM_INFO_BASE   0x00c0
 

Definition at line 660 of file ah.h.

#define AR5K_EEPROM_INFO_MAX   (0x400 - AR5K_EEPROM_INFO_BASE)
 

Definition at line 661 of file ah.h.

#define AR5K_EEPROM_MAGIC   0x003d
 

Definition at line 640 of file ah.h.

Referenced by ar5k_ar5210_detect_card_present(), ar5k_ar5211_detect_card_present(), ar5k_ar5212_detect_card_present(), and ar5k_eeprom_init().

#define AR5K_EEPROM_MAGIC_VALUE   0x5aa5
 

Definition at line 641 of file ah.h.

Referenced by ar5k_ar5210_detect_card_present(), ar5k_ar5211_detect_card_present(), and ar5k_ar5212_detect_card_present().

#define AR5K_EEPROM_MAX_CHAN   10
 

Definition at line 728 of file ah.h.

#define AR5K_EEPROM_MAX_CTLS   32
 

Definition at line 745 of file ah.h.

#define AR5K_EEPROM_MISC0   0x00c4
 

Definition at line 715 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_MISC1   0x00c5
 

Definition at line 718 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_MODE_11A   0
 

Definition at line 678 of file ah.h.

Referenced by ar5k_ar5111_rfregs(), ar5k_ar5112_rfregs(), ar5k_ar5211_reset(), ar5k_ar5212_reset(), ar5k_eeprom_bin2freq(), ar5k_eeprom_init(), and ar5k_eeprom_read_modes().

#define AR5K_EEPROM_MODE_11B   1
 

Definition at line 679 of file ah.h.

Referenced by ar5k_ar5111_rfregs(), ar5k_ar5112_rfregs(), ar5k_ar5211_reset(), ar5k_ar5212_reset(), and ar5k_eeprom_init().

#define AR5K_EEPROM_MODE_11G   2
 

Definition at line 680 of file ah.h.

Referenced by ar5k_ar5111_rfregs(), ar5k_ar5112_rfregs(), ar5k_ar5211_reset(), ar5k_ar5212_reset(), ar5k_eeprom_init(), and ar5k_eeprom_read_modes().

#define AR5K_EEPROM_MODES_11A _v  )    AR5K_EEPROM_OFF(_v, 0x00c5, 0x00d4)
 

Definition at line 705 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_MODES_11B _v  )    AR5K_EEPROM_OFF(_v, 0x00d0, 0x00f2)
 

Definition at line 706 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_MODES_11G _v  )    AR5K_EEPROM_OFF(_v, 0x00da, 0x010d)
 

Definition at line 707 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_N_2GHZ_CHAN   3
 

Definition at line 727 of file ah.h.

#define AR5K_EEPROM_N_5GHZ_CHAN   10
 

Definition at line 726 of file ah.h.

#define AR5K_EEPROM_N_CTLS _v  )    AR5K_EEPROM_OFF(_v, 16, 32)
 

Definition at line 744 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_N_EDGES   8
 

Definition at line 731 of file ah.h.

#define AR5K_EEPROM_N_INTERCEPT_10_2GHZ   35
 

Definition at line 749 of file ah.h.

#define AR5K_EEPROM_N_INTERCEPT_10_5GHZ   55
 

Definition at line 750 of file ah.h.

#define AR5K_EEPROM_N_INTERCEPTS   11
 

Definition at line 732 of file ah.h.

#define AR5K_EEPROM_N_IQ_CAL   2
 

Definition at line 760 of file ah.h.

#define AR5K_EEPROM_N_MODES   3
 

Definition at line 725 of file ah.h.

#define AR5K_EEPROM_N_OBDB   4
 

Definition at line 740 of file ah.h.

#define AR5K_EEPROM_N_PCDAC   11
 

Definition at line 729 of file ah.h.

#define AR5K_EEPROM_N_POWER_LOC_11B   4
 

Definition at line 756 of file ah.h.

#define AR5K_EEPROM_N_POWER_LOC_11G   6
 

Definition at line 757 of file ah.h.

#define AR5K_EEPROM_N_TEST_FREQ   8
 

Definition at line 730 of file ah.h.

#define AR5K_EEPROM_N_XPD0_POINTS   4
 

Definition at line 747 of file ah.h.

#define AR5K_EEPROM_N_XPD3_POINTS   3
 

Definition at line 748 of file ah.h.

#define AR5K_EEPROM_N_XPD_PER_CHANNEL   4
 

Definition at line 746 of file ah.h.

#define AR5K_EEPROM_NON_EDGE_M   0x40
 

Definition at line 738 of file ah.h.

#define AR5K_EEPROM_OBDB0_2GHZ   0x00ec
 

Definition at line 711 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_OBDB1_2GHZ   0x00ed
 

Definition at line 712 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_OBDB_DIS   0xffff
 

Definition at line 741 of file ah.h.

#define AR5K_EEPROM_OFF _v,
_v3_0,
_v3_3  )    (((_v) >= AR5K_EEPROM_VERSION_3_3) ? _v3_3 : _v3_0)
 

Definition at line 698 of file ah.h.

#define AR5K_EEPROM_PCDAC_M   0x3f
 

Definition at line 734 of file ah.h.

#define AR5K_EEPROM_PCDAC_START   1
 

Definition at line 735 of file ah.h.

#define AR5K_EEPROM_PCDAC_STEP   1
 

Definition at line 737 of file ah.h.

#define AR5K_EEPROM_PCDAC_STOP   63
 

Definition at line 736 of file ah.h.

#define AR5K_EEPROM_POWER_M   0x3f
 

Definition at line 751 of file ah.h.

#define AR5K_EEPROM_POWER_MAX   3150
 

Definition at line 753 of file ah.h.

#define AR5K_EEPROM_POWER_MIN   0
 

Definition at line 752 of file ah.h.

#define AR5K_EEPROM_POWER_STEP   50
 

Definition at line 754 of file ah.h.

#define AR5K_EEPROM_POWER_TABLE_SIZE   64
 

Definition at line 755 of file ah.h.

Referenced by ar5k_ar5212_txpower().

#define AR5K_EEPROM_PROTECT   0x003f
 

Definition at line 642 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_PROTECT_RD_0_31   0x0001
 

Definition at line 643 of file ah.h.

#define AR5K_EEPROM_PROTECT_RD_128_191   0x0040
 

Definition at line 649 of file ah.h.

#define AR5K_EEPROM_PROTECT_RD_192_207   0x0100
 

Definition at line 651 of file ah.h.

#define AR5K_EEPROM_PROTECT_RD_208_223   0x0400
 

Definition at line 653 of file ah.h.

#define AR5K_EEPROM_PROTECT_RD_224_239   0x1000
 

Definition at line 655 of file ah.h.

#define AR5K_EEPROM_PROTECT_RD_240_255   0x4000
 

Definition at line 657 of file ah.h.

#define AR5K_EEPROM_PROTECT_RD_32_63   0x0004
 

Definition at line 645 of file ah.h.

#define AR5K_EEPROM_PROTECT_RD_64_127   0x0010
 

Definition at line 647 of file ah.h.

#define AR5K_EEPROM_PROTECT_WR_0_31   0x0002
 

Definition at line 644 of file ah.h.

#define AR5K_EEPROM_PROTECT_WR_128_191   0x0080
 

Definition at line 650 of file ah.h.

Referenced by ar5k_eeprom_regulation_domain().

#define AR5K_EEPROM_PROTECT_WR_192_207   0x0200
 

Definition at line 652 of file ah.h.

#define AR5K_EEPROM_PROTECT_WR_208_223   0x0800
 

Definition at line 654 of file ah.h.

#define AR5K_EEPROM_PROTECT_WR_224_239   0x2000
 

Definition at line 656 of file ah.h.

#define AR5K_EEPROM_PROTECT_WR_240_255   0x8000
 

Definition at line 658 of file ah.h.

#define AR5K_EEPROM_PROTECT_WR_32_63   0x0008
 

Definition at line 646 of file ah.h.

#define AR5K_EEPROM_PROTECT_WR_64_127   0x0020
 

Definition at line 648 of file ah.h.

#define AR5K_EEPROM_READ _o,
_v  ) 
 

Value:

{                               \
if ((ret = hal->ah_eeprom_read(hal, (_o),                       \
                 &(_v))) != 0)                                          \
return (ret);                                           \
}

Definition at line 1464 of file ah.h.

Referenced by ar5k_eeprom_init(), ar5k_eeprom_read_ants(), and ar5k_eeprom_read_modes().

#define AR5K_EEPROM_READ_HDR _o,
_v  )    AR5K_EEPROM_READ(_o, hal->ah_capabilities.cap_eeprom._v); \
 

Definition at line 1469 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_REG_DOMAIN   0x00bf
 

Definition at line 659 of file ah.h.

Referenced by ar5k_eeprom_init(), and ar5k_eeprom_regulation_domain().

#define AR5K_EEPROM_RFKILL_GPIO_SEL   0x0000001c
 

Definition at line 692 of file ah.h.

#define AR5K_EEPROM_RFKILL_GPIO_SEL_S   2
 

Definition at line 693 of file ah.h.

#define AR5K_EEPROM_RFKILL_POLARITY   0x00000002
 

Definition at line 694 of file ah.h.

#define AR5K_EEPROM_RFKILL_POLARITY_S   1
 

Definition at line 695 of file ah.h.

#define AR5K_EEPROM_SCALE_OC_DELTA _x  )    (((_x) * 2) / 10)
 

Definition at line 743 of file ah.h.

#define AR5K_EEPROM_TARGET_PWRSTART _v  )    ((_v) & 0xfff)
 

Definition at line 719 of file ah.h.

#define AR5K_EEPROM_VERSION   AR5K_EEPROM_INFO(1)
 

Definition at line 665 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_VERSION_3_0   0x3000
 

Definition at line 666 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_VERSION_3_1   0x3001
 

Definition at line 667 of file ah.h.

Referenced by ar5k_ar5211_rfregs().

#define AR5K_EEPROM_VERSION_3_2   0x3002
 

Definition at line 668 of file ah.h.

Referenced by ar5k_eeprom_bin2freq(), and ar5k_eeprom_read_modes().

#define AR5K_EEPROM_VERSION_3_3   0x3003
 

Definition at line 669 of file ah.h.

Referenced by ar5k_eeprom_init(), and ar5k_eeprom_read_modes().

#define AR5K_EEPROM_VERSION_3_4   0x3004
 

Definition at line 670 of file ah.h.

Referenced by ar5k_eeprom_read_modes().

#define AR5K_EEPROM_VERSION_4_0   0x4000
 

Definition at line 671 of file ah.h.

Referenced by ar5k_eeprom_init(), and ar5k_eeprom_read_modes().

#define AR5K_EEPROM_VERSION_4_1   0x4001
 

Definition at line 672 of file ah.h.

Referenced by ar5k_ar5212_reset(), and ar5k_eeprom_init().

#define AR5K_EEPROM_VERSION_4_2   0x4002
 

Definition at line 673 of file ah.h.

Referenced by ar5k_eeprom_init().

#define AR5K_EEPROM_VERSION_4_3   0x4003
 

Definition at line 674 of file ah.h.

#define AR5K_EEPROM_VERSION_4_6   0x4006
 

Definition at line 675 of file ah.h.

Referenced by ar5k_eeprom_read_modes().

#define AR5K_EEPROM_VERSION_4_7   0x3007
 

Definition at line 676 of file ah.h.

#define AR5K_ELEMENTS _array  )    (sizeof(_array) / sizeof(_array[0]))
 

Definition at line 1334 of file ah.h.

Referenced by ar5k_ar5111_rfregs(), ar5k_ar5112_rfregs(), ar5k_ar5210_init_tx_queue(), ar5k_ar5210_reset(), ar5k_ar5210_set_key(), ar5k_ar5211_reset(), ar5k_ar5211_rfregs(), ar5k_ar5211_set_key(), ar5k_ar5212_reset(), ar5k_ar5212_set_key(), ar5k_printver(), ar5k_rfgain(), ar5k_txpower_table(), ath_hal_attach(), and ath_hal_probe().

#define AR5K_GAIN_CCK_OFDM_GAIN_DELTA   15
 

Definition at line 567 of file ah.h.

#define AR5K_GAIN_CCK_PROBE_CORR   5
 

Definition at line 566 of file ah.h.

Referenced by ar5k_ar5212_get_rf_gain().

#define AR5K_GAIN_CHECK_ADJUST _g  )    ((_g)->g_current <= (_g)->g_low || (_g)->g_current >= (_g)->g_high)
 

Definition at line 580 of file ah.h.

Referenced by ar5k_ar5212_get_rf_gain().

#define AR5K_GAIN_CRN_FIX_BITS_5111   4
 

Definition at line 561 of file ah.h.

#define AR5K_GAIN_CRN_FIX_BITS_5112   7
 

Definition at line 562 of file ah.h.

#define AR5K_GAIN_CRN_MAX_FIX_BITS   AR5K_GAIN_CRN_FIX_BITS_5112
 

Definition at line 563 of file ah.h.

#define AR5K_GAIN_DYN_ADJUST_HI_MARGIN   15
 

Definition at line 564 of file ah.h.

Referenced by ar5k_rfregs_gain_readback().

#define AR5K_GAIN_DYN_ADJUST_LO_MARGIN   20
 

Definition at line 565 of file ah.h.

Referenced by ar5k_rfregs_gain_readback().

#define AR5K_GAIN_PARAM_GAIN_SEL   3
 

Definition at line 572 of file ah.h.

#define AR5K_GAIN_PARAM_MIX_ORN   0
 

Definition at line 573 of file ah.h.

#define AR5K_GAIN_PARAM_PD_130   6
 

Definition at line 579 of file ah.h.

#define AR5K_GAIN_PARAM_PD_131   5
 

Definition at line 578 of file ah.h.

#define AR5K_GAIN_PARAM_PD_132   4
 

Definition at line 577 of file ah.h.

#define AR5K_GAIN_PARAM_PD_136   3
 

Definition at line 576 of file ah.h.

#define AR5K_GAIN_PARAM_PD_137   2
 

Definition at line 575 of file ah.h.

#define AR5K_GAIN_PARAM_PD_138   1
 

Definition at line 574 of file ah.h.

#define AR5K_GAIN_PARAM_PD_84   2
 

Definition at line 571 of file ah.h.

#define AR5K_GAIN_PARAM_PD_90   1
 

Definition at line 570 of file ah.h.

#define AR5K_GAIN_PARAM_TX_CLIP   0
 

Definition at line 569 of file ah.h.

#define AR5K_GAIN_STEP_COUNT   10
 

Definition at line 568 of file ah.h.

#define AR5K_HAL_FUNCTION _hal,
_n,
_f  )    (_hal)->ah_##_f = ar5k_##_n##_##_f
 

Definition at line 957 of file ah.h.

Referenced by ar5k_ar5210_fill(), and ar5k_ar5211_fill().

#define AR5K_HAL_FUNCTIONS _t,
_n,
_a  ) 
 

Definition at line 958 of file ah.h.

#define AR5K_INI_PHY_5111   0
 

Definition at line 1529 of file ah.h.

Referenced by ar5k_ar5211_reset(), ar5k_ar5212_reset(), and ar5k_rfgain().

#define AR5K_INI_PHY_5112   1
 

Definition at line 1530 of file ah.h.

Referenced by ar5k_ar5212_reset(), and ar5k_rfgain().

#define AR5K_INI_PHY_511X   1
 

Definition at line 1531 of file ah.h.

Referenced by ar5k_ar5212_reset().

#define AR5K_INI_RFGAIN
 

Definition at line 1758 of file ah.h.

#define AR5K_INI_RFGAIN_2GHZ   1
 

Definition at line 1755 of file ah.h.

Referenced by ar5k_ar5211_reset(), ar5k_ar5211_rfregs(), ar5k_ar5212_reset(), and ar5k_rfgain().

#define AR5K_INI_RFGAIN_5GHZ   0
 

Definition at line 1754 of file ah.h.

Referenced by ar5k_ar5211_reset(), ar5k_ar5211_rfregs(), ar5k_ar5212_reset(), and ar5k_rfgain().

#define AR5K_INI_VAL_11A   0
 

Definition at line 1521 of file ah.h.

Referenced by ar5k_ar5211_reset(), and ar5k_ar5212_reset().

#define AR5K_INI_VAL_11A_TURBO   1
 

Definition at line 1522 of file ah.h.

Referenced by ar5k_ar5211_reset(), and ar5k_ar5212_reset().

#define AR5K_INI_VAL_11B   2
 

Definition at line 1523 of file ah.h.

Referenced by ar5k_ar5211_reset(), and ar5k_ar5212_reset().

#define AR5K_INI_VAL_11G   3
 

Definition at line 1524 of file ah.h.

Referenced by ar5k_ar5211_reset(), and ar5k_ar5212_reset().

#define AR5K_INI_VAL_11G_TURBO   4
 

Definition at line 1525 of file ah.h.

Referenced by ar5k_ar5212_reset().

#define AR5K_INI_VAL_MAX   5
 

Definition at line 1527 of file ah.h.

Referenced by ar5k_ar5111_rfregs(), and ar5k_ar5112_rfregs().

#define AR5K_INI_VAL_XR   0
 

Definition at line 1526 of file ah.h.

Referenced by ar5k_ar5212_reset().

#define AR5K_INIT_ACK_CTS_TIMEOUT   1024
 

Definition at line 1393 of file ah.h.

#define AR5K_INIT_ACK_CTS_TIMEOUT_TURBO   0x08000800
 

Definition at line 1394 of file ah.h.

#define AR5K_INIT_BEACON_CONTROL
 

Value:

Definition at line 1426 of file ah.h.

#define AR5K_INIT_BEACON_EN   0
 

Definition at line 1408 of file ah.h.

#define AR5K_INIT_BEACON_PERIOD   65535
 

Definition at line 1406 of file ah.h.

#define AR5K_INIT_CARR_SENSE_EN   1
 

Definition at line 1386 of file ah.h.

#define AR5K_INIT_EIFS   3440
 

Definition at line 1389 of file ah.h.

#define AR5K_INIT_EIFS_TURBO   6880
 

Definition at line 1390 of file ah.h.

#define AR5K_INIT_LG_RETRY   AR5K_INIT_SH_RETRY
 

Definition at line 1398 of file ah.h.

Referenced by ar5k_ar5210_reset_tx_queue(), ar5k_ar5211_reset_tx_queue(), and ar5k_ar5212_reset_tx_queue().

#define AR5K_INIT_MODE
 

Value:

Definition at line 1379 of file ah.h.

Referenced by ar5k_ar5211_attach().

#define AR5K_INIT_PROG_IFS   920
 

Definition at line 1387 of file ah.h.

#define AR5K_INIT_PROG_IFS_TURBO   960
 

Definition at line 1388 of file ah.h.

#define AR5K_INIT_PROTO_TIME_CNTRL
 

Value:

Definition at line 1418 of file ah.h.

#define AR5K_INIT_PROTO_TIME_CNTRL_TURBO
 

Value:

Definition at line 1422 of file ah.h.

#define AR5K_INIT_RESET_TSF   0
 

Definition at line 1409 of file ah.h.

#define AR5K_INIT_RPGTO   0
 

Definition at line 1404 of file ah.h.

#define AR5K_INIT_RXNOFRM   8
 

Definition at line 1403 of file ah.h.

#define AR5K_INIT_SH_RETRY   10
 

Definition at line 1397 of file ah.h.

Referenced by ar5k_ar5210_reset_tx_queue(), ar5k_ar5211_reset_tx_queue(), and ar5k_ar5212_reset_tx_queue().

#define AR5K_INIT_SIFS   560
 

Definition at line 1395 of file ah.h.

#define AR5K_INIT_SIFS_TURBO   480
 

Definition at line 1396 of file ah.h.

#define AR5K_INIT_SLG_RETRY   AR5K_INIT_SSH_RETRY
 

Definition at line 1400 of file ah.h.

Referenced by ar5k_ar5210_reset_tx_queue(), ar5k_ar5211_reset_tx_queue(), and ar5k_ar5212_reset_tx_queue().

#define AR5K_INIT_SLOT_TIME   396
 

Definition at line 1391 of file ah.h.

#define AR5K_INIT_SLOT_TIME_TURBO   480
 

Definition at line 1392 of file ah.h.

#define AR5K_INIT_SSH_RETRY   32
 

Definition at line 1399 of file ah.h.

Referenced by ar5k_ar5210_reset_tx_queue(), ar5k_ar5211_reset_tx_queue(), and ar5k_ar5212_reset_tx_queue().

#define AR5K_INIT_TIM_OFFSET   0
 

Definition at line 1407 of file ah.h.

#define AR5K_INIT_TOPS   8
 

Definition at line 1402 of file ah.h.

#define AR5K_INIT_TRANSMIT_LATENCY
 

Value:

(                       \
        (AR5K_INIT_TX_LATENCY << 14) | (AR5K_INIT_USEC_32 << 7) |       \
        (AR5K_INIT_USEC)                                                \
)

Definition at line 1410 of file ah.h.

#define AR5K_INIT_TRANSMIT_LATENCY_TURBO
 

Value:

Definition at line 1414 of file ah.h.

#define AR5K_INIT_TX_LATENCY   502
 

Definition at line 1382 of file ah.h.

#define AR5K_INIT_TX_RETRY   10
 

Definition at line 1401 of file ah.h.

Referenced by ath_hal_attach().

#define AR5K_INIT_TXNOFRM   0
 

Definition at line 1405 of file ah.h.

#define AR5K_INIT_USEC   39
 

Definition at line 1383 of file ah.h.

#define AR5K_INIT_USEC_32   31
 

Definition at line 1385 of file ah.h.

#define AR5K_INIT_USEC_TURBO   79
 

Definition at line 1384 of file ah.h.

#define AR5K_KEYVAL_LENGTH_104   13
 

Definition at line 317 of file ah.h.

Referenced by ar5k_ar5210_set_key(), ar5k_ar5211_set_key(), and ar5k_ar5212_set_key().

#define AR5K_KEYVAL_LENGTH_128   16
 

Definition at line 318 of file ah.h.

Referenced by ar5k_ar5210_set_key(), ar5k_ar5211_set_key(), and ar5k_ar5212_set_key().

#define AR5K_KEYVAL_LENGTH_40   5
 

Definition at line 316 of file ah.h.

Referenced by ar5k_ar5210_set_key(), ar5k_ar5211_set_key(), and ar5k_ar5212_set_key().

#define AR5K_KEYVAL_LENGTH_MAX   AR5K_KEYVAL_LENGTH_128
 

Definition at line 319 of file ah.h.

#define AR5K_LE_READ_2 _p  )    (((const u_int8_t *)(_p))[0] | (((const u_int8_t *)(_p))[1] << 8))
 

Definition at line 1491 of file ah.h.

#define AR5K_LE_READ_4 _p  ) 
 

Value:

(((const u_int8_t *)(_p))[0] |                                  \
        (((const u_int8_t *)(_p))[1] << 8) |                            \
        (((const u_int8_t *)(_p))[2] << 16) |                           \
        (((const u_int8_t *)(_p))[3] << 24))

Definition at line 1493 of file ah.h.

#define AR5K_LE_WRITE_2 _p,
_val  ) 
 

Value:

((((u_int8_t *)(_p))[0] = ((u_int32_t)(_val) & 0xff)),          \
        (((u_int8_t *)(_p))[1] = (((u_int32_t)(_val) >> 8) & 0xff)))

Definition at line 1498 of file ah.h.

#define AR5K_LE_WRITE_4 _p,
_val  ) 
 

Value:

((((u_int8_t *)(_p))[0] = ((u_int32_t)(_val) & 0xff)),          \
        (((u_int8_t *)(_p))[1] = (((u_int32_t)(_val) >> 8) & 0xff)),    \
        (((u_int8_t *)(_p))[2] = (((u_int32_t)(_val) >> 16) & 0xff)),   \
        (((u_int8_t *)(_p))[3] = (((u_int32_t)(_val) >> 24) & 0xff)))

Definition at line 1501 of file ah.h.

#define AR5K_MAX_GPIO   10
 

Definition at line 961 of file ah.h.

#define AR5K_MAX_RATES   32
 

Definition at line 357 of file ah.h.

Referenced by ar5k_txpower_table().

#define AR5K_MAX_RF_BANKS   8
 

Definition at line 962 of file ah.h.

#define AR5K_OFDM_NUM_BITS _frmlen  )    (AR5K_OFDM_PLCP_BITS + (_frmlen << 3))
 

Definition at line 192 of file ah.h.

#define AR5K_OFDM_NUM_BITS _frmlen  )    (AR5K_OFDM_PLCP_BITS + (_frmlen << 3))
 

Definition at line 192 of file ah.h.

#define AR5K_OFDM_NUM_BITS_PER_SYM _kbps  ) 
 

Value:

((_kbps *                       \
AR5K_OFDM_SYMBOL_TIME) / 1000)

Definition at line 190 of file ah.h.

Referenced by ath_hal_computetxtime().

#define AR5K_OFDM_NUM_SYMBOLS _kbps,
_frmlen  )    howmany(AR5K_OFDM_NUM_BITS(_frmlen), AR5K_OFDM_NUM_BITS_PER_SYM(_kbps))
 

Definition at line 193 of file ah.h.

#define AR5K_OFDM_PLCP_BITS   22
 

Definition at line 187 of file ah.h.

#define AR5K_OFDM_PREAMBLE_TIME   20
 

Definition at line 186 of file ah.h.

#define AR5K_OFDM_SIFS_TIME   16
 

Definition at line 185 of file ah.h.

#define AR5K_OFDM_SYMBOL_TIME   4
 

Definition at line 188 of file ah.h.

#define AR5K_OFDM_TX_TIME _kbps,
_frmlen  ) 
 

Value:

Definition at line 195 of file ah.h.

Referenced by ath_hal_computetxtime().

#define AR5K_PHY_READ _reg  )    AR5K_REG_READ(hal->ah_phy + ((_reg) << 2))
 

Definition at line 1457 of file ah.h.

#define AR5K_PHY_WRITE _reg,
_val  )    AR5K_REG_WRITE(hal->ah_phy + ((_reg) << 2), _val)
 

Definition at line 1455 of file ah.h.

Referenced by ar5k_ar5110_channel(), ar5k_ar5111_channel(), and ar5k_ar5112_channel().

#define AR5K_PRINT fmt  )    printk("%s: " fmt, __func__)
 

Definition at line 1322 of file ah.h.

Referenced by ar5k_ar5111_rfregs(), ar5k_ar5112_rfregs(), ar5k_ar5210_nic_wakeup(), ar5k_ar5211_nic_wakeup(), ar5k_ar5212_nic_wakeup(), ar5k_rfregs(), and ath_hal_attach().

#define AR5K_PRINTF fmt  )    printk("%s: " fmt, __func__, ##__VA_ARGS__)
 

Definition at line 1321 of file ah.h.

Referenced by ar5k_ar5210_do_calibrate(), ar5k_ar5210_noise_floor(), ar5k_ar5210_reset(), ar5k_ar5211_reset(), ar5k_ar5212_get_isr(), ar5k_ar5212_reset(), ar5k_ar5212_txpower(), ar5k_channel(), ar5k_radar_alert(), ar5k_rfregs_gain_adjust(), ar5k_rfregs_op(), and ath_hal_attach().

#define AR5K_Q_DISABLE_BITS _reg,
_queue  ) 
 

Value:

do {                            \
        _reg &= ~(1 << _queue);                                         \
} while (0)

Definition at line 1483 of file ah.h.

Referenced by ar5k_ar5211_release_tx_queue(), and ar5k_ar5212_release_tx_queue().

#define AR5K_Q_ENABLE_BITS _reg,
_queue  ) 
 

Value:

do {                            \
        _reg |= 1 << _queue;                                            \
} while (0)

Definition at line 1479 of file ah.h.

Referenced by ar5k_ar5211_setup_tx_queue(), and ar5k_ar5212_setup_tx_queue().

#define AR5K_RATES_11A
 

Value:

{ 8, {                                          \
        255, 255, 255, 255, 255, 255, 255, 255, 6, 4, 2, 0,             \
        7, 5, 3, 1, 255, 255, 255, 255, 255, 255, 255, 255,             \
        255, 255, 255, 255, 255, 255, 255, 255 }, {                     \
        { 1, IEEE80211_T_OFDM, 6000, 11, 0, 140, 0 },                   \
        { 1, IEEE80211_T_OFDM, 9000, 15, 0, 18, 0 },                    \
        { 1, IEEE80211_T_OFDM, 12000, 10, 0, 152, 2 },                  \
        { 1, IEEE80211_T_OFDM, 18000, 14, 0, 36, 2 },                   \
        { 1, IEEE80211_T_OFDM, 24000, 9, 0, 176, 4 },                   \
        { 1, IEEE80211_T_OFDM, 36000, 13, 0, 72, 4 },                   \
        { 1, IEEE80211_T_OFDM, 48000, 8, 0, 96, 4 },                    \
        { 1, IEEE80211_T_OFDM, 54000, 12, 0, 108, 4 } }                 \
}

Definition at line 392 of file ah.h.

#define AR5K_RATES_11B
 

Value:

{ 4, {                                          \
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,     \
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,     \
        3, 2, 1, 0, 255, 255, 255, 255 }, {                             \
        { 1, IEEE80211_T_CCK, 1000, 27, 0x00, 130, 0 },                 \
        { 1, IEEE80211_T_CCK, 2000, 26, 0x04, 132, 1 },                 \
        { 1, IEEE80211_T_CCK, 5500, 25, 0x04, 139, 1 },                 \
        { 1, IEEE80211_T_CCK, 11000, 24, 0x04, 150, 1 } }               \
}

Definition at line 406 of file ah.h.

#define AR5K_RATES_11G
 

Value:

{ 12, {                                         \
        255, 255, 255, 255, 255, 255, 255, 255, 10, 8, 6, 4,            \
        11, 9, 7, 5, 255, 255, 255, 255, 255, 255, 255, 255,            \
        3, 2, 1, 0, 255, 255, 255, 255 }, {                             \
        { 1, IEEE80211_T_CCK, 1000, 27, 0x00, 2, 0 },                   \
        { 1, IEEE80211_T_CCK, 2000, 26, 0x04, 4, 1 },                   \
        { 1, IEEE80211_T_CCK, 5500, 25, 0x04, 11, 1 },                  \
        { 1, IEEE80211_T_CCK, 11000, 24, 0x04, 22, 1 },                 \
        { 0, IEEE80211_T_OFDM, 6000, 11, 0, 12, 4 },                    \
        { 0, IEEE80211_T_OFDM, 9000, 15, 0, 18, 4 },                    \
        { 1, IEEE80211_T_OFDM, 12000, 10, 0, 24, 6 },                   \
        { 1, IEEE80211_T_OFDM, 18000, 14, 0, 36, 6 },                   \
        { 1, IEEE80211_T_OFDM, 24000, 9, 0, 48, 8 },                    \
        { 1, IEEE80211_T_OFDM, 36000, 13, 0, 72, 8 },                   \
        { 1, IEEE80211_T_OFDM, 48000, 8, 0, 96, 8 },                    \
        { 1, IEEE80211_T_OFDM, 54000, 12, 0, 108, 8 } }                 \
}

Definition at line 416 of file ah.h.

#define AR5K_RATES_TURBO
 

Value:

{ 8, {                                          \
        255, 255, 255, 255, 255, 255, 255, 255, 6, 4, 2, 0,             \
        7, 5, 3, 1, 255, 255, 255, 255, 255, 255, 255, 255,             \
        255, 255, 255, 255, 255, 255, 255, 255 }, {                     \
        { 1, IEEE80211_T_TURBO, 6000, 11, 0, 140, 0 },                  \
        { 1, IEEE80211_T_TURBO, 9000, 15, 0, 18, 0 },                   \
        { 1, IEEE80211_T_TURBO, 12000, 10, 0, 152, 2 },                 \
        { 1, IEEE80211_T_TURBO, 18000, 14, 0, 36, 2 },                  \
        { 1, IEEE80211_T_TURBO, 24000, 9, 0, 176, 4 },                  \
        { 1, IEEE80211_T_TURBO, 36000, 13, 0, 72, 4 },                  \
        { 1, IEEE80211_T_TURBO, 48000, 8, 0, 96, 4 },                   \
        { 1, IEEE80211_T_TURBO, 54000, 12, 0, 108, 4 } }                \
}

Definition at line 434 of file ah.h.

#define AR5K_RATES_XR
 

Value:

{ 12, {                                         \
        255, 3, 1, 255, 255, 255, 2, 0, 10, 8, 6, 4,                    \
        11, 9, 7, 5, 255, 255, 255, 255, 255, 255, 255, 255,            \
        255, 255, 255, 255, 255, 255, 255, 255 }, {                     \
        { 1, IEEE80211_T_XR, 500, 7, 0, 129, 0 },                       \
        { 1, IEEE80211_T_XR, 1000, 2, 0, 139, 1 },                      \
        { 1, IEEE80211_T_XR, 2000, 6, 0, 150, 2 },                      \
        { 1, IEEE80211_T_XR, 3000, 1, 0, 150, 3 },                      \
        { 1, IEEE80211_T_OFDM, 6000, 11, 0, 140, 4 },                   \
        { 1, IEEE80211_T_OFDM, 9000, 15, 0, 18, 4 },                    \
        { 1, IEEE80211_T_OFDM, 12000, 10, 0, 152, 6 },                  \
        { 1, IEEE80211_T_OFDM, 18000, 14, 0, 36, 6 },                   \
        { 1, IEEE80211_T_OFDM, 24000, 9, 0, 176, 8 },                   \
        { 1, IEEE80211_T_OFDM, 36000, 13, 0, 72, 8 },                   \
        { 1, IEEE80211_T_OFDM, 48000, 8, 0, 96, 8 },                    \
        { 1, IEEE80211_T_OFDM, 54000, 12, 0, 108, 8 } }                 \
}

Definition at line 448 of file ah.h.

#define AR5K_REG_DISABLE_BITS _reg,
_flags  )    AR5K_REG_WRITE(_reg, AR5K_REG_READ(_reg) &~ (_flags))
 

Definition at line 1452 of file ah.h.

Referenced by ar5k_ar5210_calibrate(), ar5k_ar5210_clear_mcast_filter_idx(), ar5k_ar5210_enable_pspoll(), ar5k_ar5210_radar_alert(), ar5k_ar5210_reset(), ar5k_ar5210_reset_beacon(), ar5k_ar5210_set_beacon_timers(), ar5k_ar5210_start_rx_pcu(), ar5k_ar5210_update_tx_triglevel(), ar5k_ar5211_clear_mcast_filter_idx(), ar5k_ar5211_radar_alert(), ar5k_ar5211_reset(), ar5k_ar5211_reset_beacon(), ar5k_ar5211_set_beacon_timers(), ar5k_ar5211_set_ledstate(), ar5k_ar5211_start_rx_pcu(), ar5k_ar5212_clear_mcast_filter_idx(), ar5k_ar5212_radar_alert(), ar5k_ar5212_reset(), ar5k_ar5212_reset_beacon(), ar5k_ar5212_set_beacon_timers(), ar5k_ar5212_set_ledstate(), ar5k_ar5212_set_rx_filter(), and ar5k_ar5212_start_rx_pcu().

#define AR5K_REG_ENABLE_BITS _reg,
_flags  )    AR5K_REG_WRITE(_reg, AR5K_REG_READ(_reg) | (_flags))
 

Definition at line 1450 of file ah.h.

Referenced by ar5k_ar5210_calibrate(), ar5k_ar5210_disable_pspoll(), ar5k_ar5210_do_calibrate(), ar5k_ar5210_eeprom_read(), ar5k_ar5210_eeprom_write(), ar5k_ar5210_noise_floor(), ar5k_ar5210_radar_alert(), ar5k_ar5210_reset_tsf(), ar5k_ar5210_set_gpio_intr(), ar5k_ar5210_set_mcast_filterindex(), ar5k_ar5210_stop_pcu_recv(), ar5k_ar5210_update_tx_triglevel(), ar5k_ar5211_calibrate(), ar5k_ar5211_eeprom_read(), ar5k_ar5211_eeprom_write(), ar5k_ar5211_radar_alert(), ar5k_ar5211_reset(), ar5k_ar5211_reset_tsf(), ar5k_ar5211_reset_tx_queue(), ar5k_ar5211_set_gpio_intr(), ar5k_ar5211_set_intr(), ar5k_ar5211_set_ledstate(), ar5k_ar5211_set_mcast_filterindex(), ar5k_ar5211_stop_pcu_recv(), ar5k_ar5212_calibrate(), ar5k_ar5212_eeprom_read(), ar5k_ar5212_eeprom_write(), ar5k_ar5212_radar_alert(), ar5k_ar5212_reset(), ar5k_ar5212_reset_tsf(), ar5k_ar5212_reset_tx_queue(), ar5k_ar5212_set_beacon_timers(), ar5k_ar5212_set_gpio_intr(), ar5k_ar5212_set_intr(), ar5k_ar5212_set_ledstate(), ar5k_ar5212_set_mcast_filterindex(), ar5k_ar5212_set_rx_filter(), and ar5k_ar5212_stop_pcu_recv().

#define AR5K_REG_MASKED_BITS _reg,
_flags,
_mask  )    AR5K_REG_WRITE(_reg, (AR5K_REG_READ(_reg) & (_mask)) | (_flags))
 

Definition at line 1448 of file ah.h.

Referenced by ar5k_ar5211_reset(), and ar5k_ar5212_reset().

#define AR5K_REG_MS _val,
_flags  )    (((_val) & (_flags)) >> _flags##_S)
 

Definition at line 1443 of file ah.h.

Referenced by ar5k_ar5210_attach(), ar5k_ar5210_get_ack_timeout(), ar5k_ar5210_get_cts_timeout(), ar5k_ar5210_proc_rx_desc(), ar5k_ar5210_proc_tx_desc(), ar5k_ar5210_set_ack_timeout(), ar5k_ar5210_set_cts_timeout(), ar5k_ar5211_attach(), ar5k_ar5211_get_ack_timeout(), ar5k_ar5211_get_cts_timeout(), ar5k_ar5211_proc_rx_desc(), ar5k_ar5211_proc_tx_desc(), ar5k_ar5211_set_ack_timeout(), ar5k_ar5211_set_cts_timeout(), ar5k_ar5211_update_tx_triglevel(), ar5k_ar5212_get_ack_timeout(), ar5k_ar5212_get_cts_timeout(), ar5k_ar5212_get_rf_gain(), ar5k_ar5212_proc_rx_desc(), ar5k_ar5212_proc_tx_desc(), ar5k_ar5212_set_ack_timeout(), ar5k_ar5212_set_cts_timeout(), and ar5k_ar5212_update_tx_triglevel().

#define AR5K_REG_READ _reg  )    (le32_to_cpu(readl(hal->ah_sh + (_reg))))
 

Definition at line 1439 of file ah.h.

Referenced by ar5k_ar5210_attach(), ar5k_ar5210_calibrate(), ar5k_ar5210_eeprom_is_busy(), ar5k_ar5210_eeprom_read(), ar5k_ar5210_eeprom_write(), ar5k_ar5210_get_ack_timeout(), ar5k_ar5210_get_cts_timeout(), ar5k_ar5210_get_gpio(), ar5k_ar5210_get_isr(), ar5k_ar5210_get_rx_buf(), ar5k_ar5210_get_rx_filter(), ar5k_ar5210_get_slot_time(), ar5k_ar5210_get_tsf32(), ar5k_ar5210_get_tsf64(), ar5k_ar5210_get_tx_buf(), ar5k_ar5210_is_intr_pending(), ar5k_ar5210_is_key_valid(), ar5k_ar5210_noise_floor(), ar5k_ar5210_reset(), ar5k_ar5210_set_beacon_timers(), ar5k_ar5210_set_gpio(), ar5k_ar5210_set_gpio_input(), ar5k_ar5210_set_gpio_intr(), ar5k_ar5210_set_gpio_output(), ar5k_ar5210_set_ledstate(), ar5k_ar5210_set_power(), ar5k_ar5210_stop_rx_dma(), ar5k_ar5210_stop_tx_dma(), ar5k_ar5210_tx_start(), ar5k_ar5210_update_mib_counters(), ar5k_ar5210_update_tx_triglevel(), ar5k_ar5210_wait_for_beacon(), ar5k_ar5211_attach(), ar5k_ar5211_calibrate(), ar5k_ar5211_eeprom_is_busy(), ar5k_ar5211_eeprom_read(), ar5k_ar5211_eeprom_write(), ar5k_ar5211_get_ack_timeout(), ar5k_ar5211_get_cts_timeout(), ar5k_ar5211_get_gpio(), ar5k_ar5211_get_isr(), ar5k_ar5211_get_rx_buf(), ar5k_ar5211_get_rx_filter(), ar5k_ar5211_get_slot_time(), ar5k_ar5211_get_tsf32(), ar5k_ar5211_get_tsf64(), ar5k_ar5211_get_tx_buf(), ar5k_ar5211_is_intr_pending(), ar5k_ar5211_is_key_valid(), ar5k_ar5211_nic_reset(), ar5k_ar5211_radio_revision(), ar5k_ar5211_reset(), ar5k_ar5211_set_associd(), ar5k_ar5211_set_beacon_timers(), ar5k_ar5211_set_gpio(), ar5k_ar5211_set_gpio_input(), ar5k_ar5211_set_gpio_intr(), ar5k_ar5211_set_gpio_output(), ar5k_ar5211_set_power(), ar5k_ar5211_stop_rx_dma(), ar5k_ar5211_stop_tx_dma(), ar5k_ar5211_update_mib_counters(), ar5k_ar5211_update_tx_triglevel(), ar5k_ar5212_calibrate(), ar5k_ar5212_eeprom_is_busy(), ar5k_ar5212_eeprom_read(), ar5k_ar5212_eeprom_write(), ar5k_ar5212_get_ack_timeout(), ar5k_ar5212_get_cts_timeout(), ar5k_ar5212_get_gpio(), ar5k_ar5212_get_isr(), ar5k_ar5212_get_rf_gain(), ar5k_ar5212_get_rx_buf(), ar5k_ar5212_get_rx_filter(), ar5k_ar5212_get_slot_time(), ar5k_ar5212_get_tsf32(), ar5k_ar5212_get_tsf64(), ar5k_ar5212_get_tx_buf(), ar5k_ar5212_is_intr_pending(), ar5k_ar5212_is_key_valid(), ar5k_ar5212_nic_reset(), ar5k_ar5212_proc_read_reg(), ar5k_ar5212_proc_rx_desc(), ar5k_ar5212_put_rx_buf(), ar5k_ar5212_radio_revision(), ar5k_ar5212_reset(), ar5k_ar5212_set_associd(), ar5k_ar5212_set_beacon_timers(), ar5k_ar5212_set_gpio(), ar5k_ar5212_set_gpio_input(), ar5k_ar5212_set_gpio_intr(), ar5k_ar5212_set_gpio_output(), ar5k_ar5212_set_power(), ar5k_ar5212_stop_rx_dma(), ar5k_ar5212_stop_tx_dma(), ar5k_ar5212_update_mib_counters(), ar5k_ar5212_update_tx_triglevel(), and ar5k_register_timeout().

#define AR5K_REG_READ_Q _reg,
_queue  )    (AR5K_REG_READ(_reg) & (1 << _queue)) \
 

Definition at line 1473 of file ah.h.

Referenced by ar5k_ar5211_put_tx_buf(), ar5k_ar5211_tx_start(), ar5k_ar5211_wait_for_beacon(), ar5k_ar5212_put_tx_buf(), ar5k_ar5212_tx_start(), and ar5k_ar5212_wait_for_beacon().

#define AR5K_REG_SM _val,
_flags  )    (((_val) << _flags##_S) & (_flags))
 

Definition at line 1441 of file ah.h.

Referenced by ar5k_ar5210_calibrate(), ar5k_ar5210_reset_tx_queue(), ar5k_ar5210_set_beacon_timers(), ar5k_ar5210_setup_tx_desc(), ar5k_ar5211_reset_tx_queue(), ar5k_ar5211_set_beacon_timers(), ar5k_ar5211_setup_tx_desc(), ar5k_ar5212_calibrate(), ar5k_ar5212_reset_tx_queue(), ar5k_ar5212_set_beacon_timers(), and ar5k_ar5212_setup_tx_desc().

#define AR5K_REG_WAIT _i  ) 
 

Value:

if (_i % 64)                                                    \
AR5K_DELAY(1);

Definition at line 1460 of file ah.h.

Referenced by ar5k_ar5111_rfregs(), ar5k_ar5211_reset(), ar5k_ar5211_rfregs(), ar5k_ar5212_reset(), and ar5k_rfgain().

#define AR5K_REG_WRITE _reg,
_val  )    (writel(cpu_to_le32(_val), hal->ah_sh + (_reg)))
 

Definition at line 1437 of file ah.h.

Referenced by ar5k_ar5111_rfregs(), ar5k_ar5112_rfregs(), ar5k_ar5210_attach(), ar5k_ar5210_calibrate(), ar5k_ar5210_eeprom_write(), ar5k_ar5210_init_beacon(), ar5k_ar5210_init_tx_queue(), ar5k_ar5210_nic_reset(), ar5k_ar5210_nic_wakeup(), ar5k_ar5210_put_rx_buf(), ar5k_ar5210_put_tx_buf(), ar5k_ar5210_radar_alert(), ar5k_ar5210_reset(), ar5k_ar5210_reset_beacon(), ar5k_ar5210_reset_key(), ar5k_ar5210_reset_tx_queue(), ar5k_ar5210_set_associd(), ar5k_ar5210_set_beacon_timers(), ar5k_ar5210_set_gpio(), ar5k_ar5210_set_gpio_input(), ar5k_ar5210_set_gpio_intr(), ar5k_ar5210_set_gpio_output(), ar5k_ar5210_set_intr(), ar5k_ar5210_set_key(), ar5k_ar5210_set_key_lladdr(), ar5k_ar5210_set_ledstate(), ar5k_ar5210_set_lladdr(), ar5k_ar5210_set_mcast_filter(), ar5k_ar5210_set_opmode(), ar5k_ar5210_set_power(), ar5k_ar5210_set_rx_filter(), ar5k_ar5210_set_slot_time(), ar5k_ar5210_start_rx(), ar5k_ar5210_stop_rx_dma(), ar5k_ar5210_stop_tx_dma(), ar5k_ar5210_tx_start(), ar5k_ar5210_update_tx_triglevel(), ar5k_ar5210_wait_for_beacon(), ar5k_ar5211_eeprom_read(), ar5k_ar5211_eeprom_write(), ar5k_ar5211_init_beacon(), ar5k_ar5211_nic_reset(), ar5k_ar5211_nic_wakeup(), ar5k_ar5211_put_rx_buf(), ar5k_ar5211_put_tx_buf(), ar5k_ar5211_radar_alert(), ar5k_ar5211_radio_revision(), ar5k_ar5211_reset(), ar5k_ar5211_reset_beacon(), ar5k_ar5211_reset_key(), ar5k_ar5211_reset_tx_queue(), ar5k_ar5211_rfregs(), ar5k_ar5211_set_associd(), ar5k_ar5211_set_beacon_timers(), ar5k_ar5211_set_gpio(), ar5k_ar5211_set_gpio_input(), ar5k_ar5211_set_gpio_intr(), ar5k_ar5211_set_gpio_output(), ar5k_ar5211_set_intr(), ar5k_ar5211_set_key(), ar5k_ar5211_set_key_lladdr(), ar5k_ar5211_set_lladdr(), ar5k_ar5211_set_mcast_filter(), ar5k_ar5211_set_opmode(), ar5k_ar5211_set_power(), ar5k_ar5211_set_rx_filter(), ar5k_ar5211_set_slot_time(), ar5k_ar5211_start_rx(), ar5k_ar5211_stop_rx_dma(), ar5k_ar5211_stop_tx_dma(), ar5k_ar5212_calibrate(), ar5k_ar5212_eeprom_read(), ar5k_ar5212_eeprom_write(), ar5k_ar5212_init_beacon(), ar5k_ar5212_nic_reset(), ar5k_ar5212_nic_wakeup(), ar5k_ar5212_put_rx_buf(), ar5k_ar5212_put_tx_buf(), ar5k_ar5212_radar_alert(), ar5k_ar5212_radio_revision(), ar5k_ar5212_reset(), ar5k_ar5212_reset_beacon(), ar5k_ar5212_reset_key(), ar5k_ar5212_reset_tx_queue(), ar5k_ar5212_set_associd(), ar5k_ar5212_set_beacon_timers(), ar5k_ar5212_set_gpio(), ar5k_ar5212_set_gpio_input(), ar5k_ar5212_set_gpio_intr(), ar5k_ar5212_set_gpio_output(), ar5k_ar5212_set_intr(), ar5k_ar5212_set_key(), ar5k_ar5212_set_key_lladdr(), ar5k_ar5212_set_lladdr(), ar5k_ar5212_set_mcast_filter(), ar5k_ar5212_set_opmode(), ar5k_ar5212_set_power(), ar5k_ar5212_set_rx_filter(), ar5k_ar5212_set_slot_time(), ar5k_ar5212_start_rx(), ar5k_ar5212_stop_rx_dma(), ar5k_ar5212_stop_tx_dma(), ar5k_ar5212_txpower(), ar5k_ar5212_update_mib_counters(), ar5k_rfgain(), and proc_ar5k_ar5212_close().

#define AR5K_REG_WRITE_BITS _reg,
_flags,
_val  ) 
 

Value:

AR5K_REG_WRITE(_reg, (AR5K_REG_READ(_reg) &~ (_flags)) |        \
            (((_val) << _flags##_S) & (_flags)))

Definition at line 1445 of file ah.h.

Referenced by ar5k_ar5210_set_ack_timeout(), ar5k_ar5210_set_associd(), ar5k_ar5210_set_beacon_timers(), ar5k_ar5210_set_cts_timeout(), ar5k_ar5211_reset(), ar5k_ar5211_set_ack_timeout(), ar5k_ar5211_set_beacon_timers(), ar5k_ar5211_set_cts_timeout(), ar5k_ar5211_update_tx_triglevel(), ar5k_ar5212_reset(), ar5k_ar5212_set_ack_timeout(), ar5k_ar5212_set_beacon_timers(), ar5k_ar5212_set_cts_timeout(), and ar5k_ar5212_update_tx_triglevel().

#define AR5K_REG_WRITE_Q _reg,
_queue  )    AR5K_REG_WRITE(_reg, (1 << _queue))
 

Definition at line 1476 of file ah.h.

Referenced by ar5k_ar5211_reset(), ar5k_ar5211_stop_tx_dma(), ar5k_ar5211_tx_start(), ar5k_ar5212_reset(), ar5k_ar5212_stop_tx_dma(), and ar5k_ar5212_tx_start().

#define AR5K_SREV_NAME
 

Value:

Definition at line 1270 of file ah.h.

Referenced by ar5k_printver().

#define AR5K_SREV_RAD_2111   0x20
 

Definition at line 1306 of file ah.h.

#define AR5K_SREV_RAD_2112   0x40
 

Definition at line 1309 of file ah.h.

#define AR5K_SREV_RAD_2112A   0x45
 

Definition at line 1310 of file ah.h.

#define AR5K_SREV_RAD_5110   0x00
 

Definition at line 1303 of file ah.h.

#define AR5K_SREV_RAD_5111   0x10
 

Definition at line 1304 of file ah.h.

#define AR5K_SREV_RAD_5111A   0x15
 

Definition at line 1305 of file ah.h.

#define AR5K_SREV_RAD_5112   0x30
 

Definition at line 1307 of file ah.h.

#define AR5K_SREV_RAD_5112A   0x35
 

Definition at line 1308 of file ah.h.

#define AR5K_SREV_REV_AR5210   4
 

Definition at line 1291 of file ah.h.

#define AR5K_SREV_REV_AR521023   8
 

Definition at line 1294 of file ah.h.

#define AR5K_SREV_REV_AR5210M   5
 

Definition at line 1292 of file ah.h.

#define AR5K_SREV_REV_AR5210M23   7
 

Definition at line 1293 of file ah.h.

#define AR5K_SREV_REV_FPGA   1
 

Definition at line 1288 of file ah.h.

#define AR5K_SREV_REV_PROTO   2
 

Definition at line 1289 of file ah.h.

#define AR5K_SREV_REV_PROTOA   3
 

Definition at line 1290 of file ah.h.

#define AR5K_SREV_UNKNOWN   0xffff
 

Definition at line 1286 of file ah.h.

Referenced by ar5k_printver().

#define AR5K_SREV_VER_AR5210   0
 

Definition at line 1296 of file ah.h.

#define AR5K_SREV_VER_AR5211   4
 

Definition at line 1300 of file ah.h.

Referenced by ar5k_ar5211_attach().

#define AR5K_SREV_VER_AR5212   5
 

Definition at line 1301 of file ah.h.

#define AR5K_SREV_VER_AR5311   1
 

Definition at line 1297 of file ah.h.

#define AR5K_SREV_VER_AR5311A   2
 

Definition at line 1298 of file ah.h.

#define AR5K_SREV_VER_AR5311B   3
 

Definition at line 1299 of file ah.h.

#define AR5K_TRACE
 

Definition at line 1326 of file ah.h.

Referenced by ar5k_ar5212_calibrate(), ar5k_ar5212_clear_mcast_filter_idx(), ar5k_ar5212_detach(), ar5k_ar5212_detect_card_present(), ar5k_ar5212_disable_pspoll(), ar5k_ar5212_dump_state(), ar5k_ar5212_eeprom_is_busy(), ar5k_ar5212_eeprom_write(), ar5k_ar5212_enable_pspoll(), ar5k_ar5212_fill(), ar5k_ar5212_fill_tx_desc(), ar5k_ar5212_get_capability(), ar5k_ar5212_get_cts_timeout(), ar5k_ar5212_get_def_antenna(), ar5k_ar5212_get_diag_state(), ar5k_ar5212_get_gpio(), ar5k_ar5212_get_intr(), ar5k_ar5212_get_keycache_size(), ar5k_ar5212_get_power_mode(), ar5k_ar5212_get_rate_table(), ar5k_ar5212_get_regdomain(), ar5k_ar5212_get_rf_gain(), ar5k_ar5212_get_rx_filter(), ar5k_ar5212_get_slot_time(), ar5k_ar5212_get_tsf32(), ar5k_ar5212_get_tsf64(), ar5k_ar5212_get_tx_buf(), ar5k_ar5212_get_tx_inter_queue(), ar5k_ar5212_get_tx_queueprops(), ar5k_ar5212_has_veol(), ar5k_ar5212_init_beacon(), ar5k_ar5212_init_pspoll(), ar5k_ar5212_is_key_valid(), ar5k_ar5212_nic_reset(), ar5k_ar5212_num_tx_pending(), ar5k_ar5212_phy_disable(), ar5k_ar5212_proc_mib_event(), ar5k_ar5212_proc_rx_desc(), ar5k_ar5212_proc_tx_desc(), ar5k_ar5212_put_tx_buf(), ar5k_ar5212_query_pspoll_support(), ar5k_ar5212_radar_alert(), ar5k_ar5212_radio_revision(), ar5k_ar5212_release_tx_queue(), ar5k_ar5212_reset(), ar5k_ar5212_reset_beacon(), ar5k_ar5212_reset_key(), ar5k_ar5212_reset_tsf(), ar5k_ar5212_reset_tx_queue(), ar5k_ar5212_set_ack_timeout(), ar5k_ar5212_set_associd(), ar5k_ar5212_set_beacon_timers(), ar5k_ar5212_set_capability(), ar5k_ar5212_set_cts_timeout(), ar5k_ar5212_set_def_antenna(), ar5k_ar5212_set_gpio(), ar5k_ar5212_set_gpio_input(), ar5k_ar5212_set_gpio_intr(), ar5k_ar5212_set_gpio_output(), ar5k_ar5212_set_key(), ar5k_ar5212_set_key_lladdr(), ar5k_ar5212_set_ledstate(), ar5k_ar5212_set_mcast_filter(), ar5k_ar5212_set_mcast_filterindex(), ar5k_ar5212_set_opmode(), ar5k_ar5212_set_power(), ar5k_ar5212_set_regdomain(), ar5k_ar5212_set_rx_signal(), ar5k_ar5212_set_slot_time(), ar5k_ar5212_set_txpower_limit(), ar5k_ar5212_setup_rx_desc(), ar5k_ar5212_setup_tx_desc(), ar5k_ar5212_setup_tx_queue(), ar5k_ar5212_setup_tx_queueprops(), ar5k_ar5212_setup_xtx_desc(), ar5k_ar5212_start_rx(), ar5k_ar5212_start_rx_pcu(), ar5k_ar5212_stop_pcu_recv(), ar5k_ar5212_stop_rx_dma(), ar5k_ar5212_stop_tx_dma(), ar5k_ar5212_tx_start(), ar5k_ar5212_txpower(), ar5k_ar5212_update_mib_counters(), ar5k_ar5212_update_tx_triglevel(), ar5k_ar5212_wait_for_beacon(), ar5k_eeprom_init(), ar5k_eeprom_read_mac(), ar5k_eeprom_regulation_domain(), ar5k_get_regdomain(), and ath_hal_init_channels().

#define AR5K_TUNE_ADDITIONAL_SWBA_BACKOFF   0
 

Definition at line 1347 of file ah.h.

Referenced by ar5k_ar5211_reset_tx_queue(), and ar5k_ar5212_reset_tx_queue().

#define AR5K_TUNE_AIFS   2
 

Definition at line 1355 of file ah.h.

Referenced by ar5k_ar5211_reset_tx_queue(), ar5k_ar5212_reset_tx_queue(), and ath_hal_attach().

#define AR5K_TUNE_AIFS_11B   2
 

Definition at line 1356 of file ah.h.

Referenced by ar5k_ar5211_reset_tx_queue(), and ar5k_ar5212_reset_tx_queue().

#define AR5K_TUNE_AIFS_XR   0
 

Definition at line 1357 of file ah.h.

Referenced by ar5k_ar5212_reset_tx_queue().

#define AR5K_TUNE_ANT_DIVERSITY   AH_TRUE
 

Definition at line 1368 of file ah.h.

Referenced by ath_hal_attach().

#define AR5K_TUNE_BEACON_INTERVAL   100
 

Definition at line 1354 of file ah.h.

Referenced by ar5k_ar5210_wait_for_beacon(), ar5k_ar5211_reset_tx_queue(), and ar5k_ar5212_reset_tx_queue().

#define AR5K_TUNE_CTRY   CTRY_DEFAULT
 

Definition at line 1373 of file ah.h.

#define AR5K_TUNE_CWMAX   1023
 

Definition at line 1361 of file ah.h.

Referenced by ar5k_ar5211_reset_tx_queue(), and ar5k_ar5212_reset_tx_queue().

#define AR5K_TUNE_CWMAX_11B   1023
 

Definition at line 1362 of file ah.h.

Referenced by ar5k_ar5211_reset_tx_queue(), and ar5k_ar5212_reset_tx_queue().

#define AR5K_TUNE_CWMAX_XR   7
 

Definition at line 1363 of file ah.h.

Referenced by ar5k_ar5212_reset_tx_queue().

#define AR5K_TUNE_CWMIN   15
 

Definition at line 1358 of file ah.h.

Referenced by ar5k_ar5211_reset_tx_queue(), ar5k_ar5212_reset_tx_queue(), and ath_hal_attach().

#define AR5K_TUNE_CWMIN_11B   31
 

Definition at line 1359 of file ah.h.

Referenced by ar5k_ar5211_reset_tx_queue(), and ar5k_ar5212_reset_tx_queue().

#define AR5K_TUNE_CWMIN_XR   3
 

Definition at line 1360 of file ah.h.

Referenced by ar5k_ar5212_reset_tx_queue().

#define AR5K_TUNE_DEFAULT_TXPOWER   30
 

Definition at line 1366 of file ah.h.

Referenced by ar5k_ar5212_reset(), and ar5k_txpower_table().

#define AR5K_TUNE_DMA_BEACON_RESP   2
 

Definition at line 1345 of file ah.h.

Referenced by ar5k_ar5210_init_beacon(), ar5k_ar5211_init_beacon(), ar5k_ar5211_reset_tx_queue(), ar5k_ar5212_init_beacon(), and ar5k_ar5212_reset_tx_queue().

#define AR5K_TUNE_HWTXTRIES   4
 

Definition at line 1369 of file ah.h.

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

Definition at line 1350 of file ah.h.

Referenced by ar5k_ar5210_update_tx_triglevel(), ar5k_ar5211_update_tx_triglevel(), and ar5k_ar5212_update_tx_triglevel().

#define AR5K_TUNE_MAX_TXPOWER   60
 

Definition at line 1365 of file ah.h.

Referenced by ar5k_ar5212_txpower(), and ar5k_txpower_table().

#define AR5K_TUNE_MIN_TX_FIFO_THRES   1
 

Definition at line 1349 of file ah.h.

Referenced by ar5k_ar5210_update_tx_triglevel(), ar5k_ar5211_update_tx_triglevel(), and ar5k_ar5212_update_tx_triglevel().

#define AR5K_TUNE_NOISE_FLOOR   -72
 

Definition at line 1364 of file ah.h.

Referenced by ar5k_ar5210_noise_floor().

#define AR5K_TUNE_RADAR_ALERT   AH_FALSE
 

Definition at line 1348 of file ah.h.

Referenced by ath_hal_attach().

#define AR5K_TUNE_REGDOMAIN   DMN_FCC1_FCCA
 

Definition at line 1372 of file ah.h.

Referenced by ar5k_regdomain_from_ieee().

#define AR5K_TUNE_REGISTER_DWELL_TIME   20000
 

Definition at line 1353 of file ah.h.

#define AR5K_TUNE_REGISTER_TIMEOUT   20000
 

Definition at line 1352 of file ah.h.

Referenced by ar5k_ar5211_eeprom_read(), ar5k_ar5212_eeprom_read(), and ar5k_register_timeout().

#define AR5K_TUNE_RSSI_THRES   1792
 

Definition at line 1351 of file ah.h.

Referenced by ar5k_ar5211_reset(), and ar5k_ar5212_reset().

#define AR5K_TUNE_SW_BEACON_RESP   10
 

Definition at line 1346 of file ah.h.

Referenced by ar5k_ar5210_init_beacon(), ar5k_ar5211_init_beacon(), ar5k_ar5211_reset_tx_queue(), ar5k_ar5212_init_beacon(), and ar5k_ar5212_reset_tx_queue().

#define AR5K_TUNE_TPC_TXPOWER   AH_TRUE
 

Definition at line 1367 of file ah.h.

Referenced by ath_hal_attach().

#define AR5K_TURBO_NUM_BITS _frmlen  )    (AR5K_TURBO_PLCP_BITS + (_frmlen << 3))
 

Definition at line 206 of file ah.h.

#define AR5K_TURBO_NUM_BITS _frmlen  )    (AR5K_TURBO_PLCP_BITS + (_frmlen << 3))
 

Definition at line 206 of file ah.h.

#define AR5K_TURBO_NUM_BITS_PER_SYM _kbps  ) 
 

Value:

(((_kbps << 1) *                \
AR5K_TURBO_SYMBOL_TIME) / 1000)

Definition at line 204 of file ah.h.

Referenced by ath_hal_computetxtime().

#define AR5K_TURBO_NUM_SYMBOLS _kbps,
_frmlen  ) 
 

Value:

Definition at line 207 of file ah.h.

#define AR5K_TURBO_PLCP_BITS   22
 

Definition at line 201 of file ah.h.

#define AR5K_TURBO_PREAMBLE_TIME   14
 

Definition at line 200 of file ah.h.

#define AR5K_TURBO_SIFS_TIME   8
 

Definition at line 199 of file ah.h.

#define AR5K_TURBO_SYMBOL_TIME   4
 

Definition at line 202 of file ah.h.

#define AR5K_TURBO_TX_TIME _kbps,
_frmlen  ) 
 

Value:

Definition at line 210 of file ah.h.

Referenced by ath_hal_computetxtime().

#define AR5K_TXPOWER_CCK _r,
_v  ) 
 

Value:

(                               \
        (hal->ah_txpower.txp_rates[(_r)] & 0x3f) << (_v)                \
)

Definition at line 861 of file ah.h.

Referenced by ar5k_ar5212_txpower().

#define AR5K_TXPOWER_OFDM _r,
_v  ) 
 

Value:

(                               \
        ((0 & 1) << ((_v) + 6)) |                                       \
        (((hal->ah_txpower.txp_rates[(_r)]) & 0x3f) << (_v))            \
)

Definition at line 856 of file ah.h.

Referenced by ar5k_ar5212_txpower().

#define AR5K_XR_NUM_BITS _frmlen  )    (AR5K_XR_PLCP_BITS + (_frmlen << 3))
 

Definition at line 220 of file ah.h.

#define AR5K_XR_NUM_BITS_PER_SYM _kbps  ) 
 

Value:

((_kbps *                       \
AR5K_XR_SYMBOL_TIME) / 1000)

Definition at line 218 of file ah.h.

#define AR5K_XR_NUM_SYMBOLS _kbps,
_frmlen  )    howmany(AR5K_XR_NUM_BITS(_frmlen), AR5K_XR_NUM_BITS_PER_SYM(_kbps))
 

Definition at line 221 of file ah.h.

#define AR5K_XR_PLCP_BITS   22
 

Definition at line 215 of file ah.h.

#define AR5K_XR_PREAMBLE_TIME _kbps  )    (((_kbps) < 1000) ? 173 : 76)
 

Definition at line 217 of file ah.h.

#define AR5K_XR_SIFS_TIME   16
 

Definition at line 214 of file ah.h.

#define AR5K_XR_SYMBOL_TIME   4
 

Definition at line 216 of file ah.h.

#define AR5K_XR_TX_TIME _kbps,
_frmlen  ) 
 

Value:

Definition at line 223 of file ah.h.

#define bcopy _a,
_b,
_c  )    memcpy(_b, _a, _c)
 

Definition at line 1329 of file ah.h.

Referenced by ar5k_ar5210_attach(), ar5k_ar5210_get_lladdr(), ar5k_ar5210_set_associd(), ar5k_ar5210_set_key(), ar5k_ar5210_set_key_lladdr(), ar5k_ar5210_set_lladdr(), ar5k_ar5210_set_opmode(), ar5k_ar5211_attach(), ar5k_ar5211_get_lladdr(), ar5k_ar5211_reset(), ar5k_ar5211_rfregs(), ar5k_ar5211_set_associd(), ar5k_ar5211_set_key(), ar5k_ar5211_set_key_lladdr(), ar5k_ar5211_set_lladdr(), ar5k_ar5211_set_opmode(), ar5k_ar5211_setup_tx_queueprops(), ar5k_ar5212_get_lladdr(), ar5k_ar5212_set_associd(), ar5k_ar5212_set_key(), ar5k_ar5212_set_key_lladdr(), ar5k_ar5212_set_lladdr(), ar5k_ar5212_set_opmode(), ar5k_ar5212_setup_tx_queueprops(), ar5k_eeprom_read_mac(), ar5k_rt_copy(), and ath_hal_init_channels().

#define bs_bmissthreshold   bs_bmiss_threshold
 

Definition at line 272 of file ah.h.

#define bs_dtimperiod   bs_dtim_period
 

Definition at line 274 of file ah.h.

#define bs_intval   bs_interval
 

Definition at line 270 of file ah.h.

#define bs_nextdtim   bs_next_dtim
 

Definition at line 271 of file ah.h.

#define bs_nexttbtt   bs_next_beacon
 

Definition at line 269 of file ah.h.

#define bs_sleepduration   bs_sleep_duration
 

Definition at line 273 of file ah.h.

#define bzero _a,
_b  )    memset(_a, 0, _b)
 

Definition at line 1330 of file ah.h.

Referenced by ar5k_ar5210_fill_tx_desc(), ar5k_ar5210_set_key(), ar5k_ar5210_setup_tx_queue(), ar5k_ar5211_fill_tx_desc(), ar5k_ar5211_set_key(), ar5k_ar5211_setup_tx_queue(), ar5k_ar5212_setup_tx_queue(), ar5k_ar5212_txpower(), ar5k_eeprom_read_mac(), ar5k_rt_copy(), and ath_hal_attach().

#define c_channel   channel
 

Definition at line 476 of file ah.h.

#define c_channel_flags   channelFlags
 

Definition at line 477 of file ah.h.

#define CHANNEL_108G   (CHANNEL_2GHZ|CHANNEL_OFDM|CHANNEL_TURBO)
 

Definition at line 288 of file ah.h.

#define CHANNEL_2GHZ   0x0080
 

Definition at line 285 of file ah.h.

#define CHANNEL_A   (IEEE80211_CHAN_5GHZ | IEEE80211_CHAN_OFDM)
 

Definition at line 485 of file ah.h.

Referenced by ath_chan2flags().

#define CHANNEL_B   (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK)
 

Definition at line 486 of file ah.h.

Referenced by ath_chan2flags().

#define CHANNEL_G   (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_DYN)
 

Definition at line 487 of file ah.h.

#define CHANNEL_OFDM   0x0040
 

Definition at line 286 of file ah.h.

#define CHANNEL_PUREG   (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_DYN)
 

Definition at line 488 of file ah.h.

Referenced by ath_chan2flags().

#define CHANNEL_T   (CHANNEL_A | IEEE80211_CHAN_TURBO)
 

Definition at line 489 of file ah.h.

Referenced by ar5k_channel(), and ath_chan2flags().

#define CHANNEL_TG   (CHANNEL_PUREG | IEEE80211_CHAN_TURBO)
 

Definition at line 490 of file ah.h.

#define CHANNEL_TURBO   0x0010
 

Definition at line 287 of file ah.h.

#define CHANNEL_XR   (CHANNEL_A | IEEE80211_CHAN_XR)
 

Definition at line 491 of file ah.h.

#define CTRY_DEFAULT   0
 

Definition at line 282 of file ah.h.

Referenced by ath_hal_attach(), and ieee80211_name2countrycode().

#define ds_rxstat   ds_us.rx
 

Definition at line 939 of file ah.h.

#define ds_txstat   ds_us.tx
 

Definition at line 940 of file ah.h.

#define HAL_ABI_VERSION   0x04090901
 

Definition at line 1316 of file ah.h.

Referenced by ath_attach(), and ath_hal_attach().

#define HAL_BEACON_ENA   0x00800000
 

Definition at line 254 of file ah.h.

#define HAL_BEACON_PERIOD   0x0000ffff
 

Definition at line 253 of file ah.h.

#define HAL_BEACON_RESET_TSF   0x01000000
 

Definition at line 255 of file ah.h.

#define HAL_EINPROGRESS   EINPROGRESS
 

Definition at line 105 of file ah.h.

Referenced by ar5k_ar5210_proc_rx_desc(), ar5k_ar5210_proc_tx_desc(), ar5k_ar5211_proc_rx_desc(), ar5k_ar5211_proc_tx_desc(), ar5k_ar5212_proc_rx_desc(), ar5k_ar5212_proc_tx_desc(), ath_rx_tasklet(), and ath_tx_processq().

#define HAL_EINVAL   1
 

Definition at line 104 of file ah.h.

Referenced by ar5k_ar5212_get_capability(), and ar5k_ar5212_reset().

#define HAL_INT_BMISS   0x00040000
 

Definition at line 530 of file ah.h.

Referenced by ar5k_ar5210_get_isr(), and ath_intr().

#define HAL_INT_BNR   0x00100000
 

Definition at line 531 of file ah.h.

#define HAL_INT_COMMON
 

Value:

Definition at line 536 of file ah.h.

Referenced by ar5k_ar5210_get_isr(), ar5k_ar5210_set_intr(), ar5k_ar5211_get_isr(), ar5k_ar5211_set_intr(), ar5k_ar5212_get_isr(), and ar5k_ar5212_set_intr().

#define HAL_INT_FATAL   0x40000000
 

Definition at line 533 of file ah.h.

Referenced by ar5k_ar5210_get_isr(), ar5k_ar5211_get_isr(), ar5k_ar5211_reset(), ar5k_ar5211_set_intr(), ar5k_ar5212_get_isr(), ar5k_ar5212_reset(), ar5k_ar5212_set_intr(), ath_init(), and ath_intr().

#define HAL_INT_GLOBAL   0x80000000
 

Definition at line 534 of file ah.h.

Referenced by ar5k_ar5210_update_tx_triglevel(), ar5k_ar5211_update_tx_triglevel(), ar5k_ar5212_update_tx_triglevel(), and ath_init().

#define HAL_INT_GPIO   0x01000000
 

Definition at line 532 of file ah.h.

#define HAL_INT_MIB   0x00001000
 

Definition at line 526 of file ah.h.

#define HAL_INT_NOCARD   0xffffffff
 

Definition at line 535 of file ah.h.

Referenced by ar5k_ar5210_get_isr(), ar5k_ar5211_get_isr(), and ar5k_ar5212_get_isr().

#define HAL_INT_RX   0x00000001
 

Definition at line 518 of file ah.h.

Referenced by ar5k_ar5210_get_isr(), ar5k_ar5210_set_intr(), ar5k_ar5211_get_isr(), ar5k_ar5211_reset(), ar5k_ar5211_set_intr(), ar5k_ar5212_get_isr(), ar5k_ar5212_reset(), ar5k_ar5212_set_intr(), ath_init(), and ath_intr().

#define HAL_INT_RXDESC   0x00000002
 

Definition at line 519 of file ah.h.

#define HAL_INT_RXEOL   0x00000010
 

Definition at line 521 of file ah.h.

Referenced by ath_init(), and ath_intr().

#define HAL_INT_RXKCM   0x00008000
 

Definition at line 528 of file ah.h.

#define HAL_INT_RXNOFRM   0x00000008
 

Definition at line 520 of file ah.h.

#define HAL_INT_RXORN   0x00000020
 

Definition at line 522 of file ah.h.

Referenced by ath_init(), and ath_intr().

#define HAL_INT_RXPHY   0x00004000
 

Definition at line 527 of file ah.h.

#define HAL_INT_SWBA   0x00010000
 

Definition at line 529 of file ah.h.

Referenced by ath_intr().

#define HAL_INT_TX   0x00000040
 

Definition at line 523 of file ah.h.

Referenced by ar5k_ar5210_get_isr(), ar5k_ar5210_set_intr(), ar5k_ar5211_get_isr(), ar5k_ar5211_reset(), ar5k_ar5211_set_intr(), ar5k_ar5212_get_isr(), ar5k_ar5212_reset(), ar5k_ar5212_set_intr(), ath_init(), and ath_intr().

#define HAL_INT_TXDESC   0x00000080
 

Definition at line 524 of file ah.h.

#define HAL_INT_TXURN   0x00000800
 

Definition at line 525 of file ah.h.

Referenced by ath_intr().

#define HAL_LED_ASSOC   IEEE80211_S_ASSOC
 

Definition at line 554 of file ah.h.

#define HAL_LED_AUTH   IEEE80211_S_AUTH
 

Definition at line 553 of file ah.h.

#define HAL_LED_INIT   IEEE80211_S_INIT
 

Definition at line 551 of file ah.h.

#define HAL_LED_RUN   IEEE80211_S_RUN
 

Definition at line 555 of file ah.h.

#define HAL_LED_SCAN   IEEE80211_S_SCAN
 

Definition at line 552 of file ah.h.

#define HAL_NUM_TX_QUEUES   10
 

Definition at line 119 of file ah.h.

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

#define HAL_OK   0
 

Definition at line 103 of file ah.h.

Referenced by ar5k_ar5210_proc_rx_desc(), ar5k_ar5210_proc_tx_desc(), ar5k_ar5210_reset(), ar5k_ar5210_set_regdomain(), ar5k_ar5211_proc_rx_desc(), ar5k_ar5211_proc_tx_desc(), ar5k_ar5211_set_regdomain(), ar5k_ar5212_get_capability(), ar5k_ar5212_proc_rx_desc(), ar5k_ar5212_proc_tx_desc(), ar5k_ar5212_set_capability(), ar5k_ar5212_set_regdomain(), ath_attach(), ath_hal_attach(), ath_rx_tasklet(), ath_stoprecv(), ath_tx_draintxq(), and ath_tx_processq().

#define HAL_PHYERR_CCK_HEADER_CRC   0x1a
 

Definition at line 922 of file ah.h.

#define HAL_PHYERR_CCK_RATE_ILLEGAL   0x1b
 

Definition at line 923 of file ah.h.

#define HAL_PHYERR_CCK_RESTART   0x1f
 

Definition at line 925 of file ah.h.

#define HAL_PHYERR_CCK_SERVICE   0x1e
 

Definition at line 924 of file ah.h.

#define HAL_PHYERR_CCK_TIMING   0x19
 

Definition at line 921 of file ah.h.

#define HAL_PHYERR_LENGTH   0x04
 

Definition at line 910 of file ah.h.

#define HAL_PHYERR_OFDM_LENGTH_ILLEGAL   0x14
 

Definition at line 917 of file ah.h.

#define HAL_PHYERR_OFDM_POWER_DROP   0x15
 

Definition at line 918 of file ah.h.

#define HAL_PHYERR_OFDM_RATE_ILLEGAL   0x13
 

Definition at line 916 of file ah.h.

#define HAL_PHYERR_OFDM_RESTART   0x17
 

Definition at line 920 of file ah.h.

#define HAL_PHYERR_OFDM_SERVICE   0x16
 

Definition at line 919 of file ah.h.

#define HAL_PHYERR_OFDM_SIGNAL_PARITY   0x12
 

Definition at line 915 of file ah.h.

#define HAL_PHYERR_OFDM_TIMING   0x11
 

Definition at line 914 of file ah.h.

#define HAL_PHYERR_PARITY   0x02
 

Definition at line 908 of file ah.h.

#define HAL_PHYERR_RADAR   0x05
 

Definition at line 911 of file ah.h.

#define HAL_PHYERR_RATE   0x03
 

Definition at line 909 of file ah.h.

#define HAL_PHYERR_SERVICE   0x06
 

Definition at line 912 of file ah.h.

#define HAL_PHYERR_TIMING   0x01
 

Definition at line 907 of file ah.h.

#define HAL_PHYERR_TOR   0x07
 

Definition at line 913 of file ah.h.

#define HAL_PHYERR_UNDERRUN   0x00
 

Definition at line 906 of file ah.h.

#define HAL_RSSI_EP_MULTIPLIER   (1<<7)
 

Definition at line 344 of file ah.h.

#define HAL_RX_FILTER_BCAST   0x00000004
 

Definition at line 233 of file ah.h.

Referenced by ath_calcrxfilter().

#define HAL_RX_FILTER_BEACON   0x00000010
 

Definition at line 235 of file ah.h.

Referenced by ath_calcrxfilter().

#define HAL_RX_FILTER_CONTROL   0x00000008
 

Definition at line 234 of file ah.h.

Referenced by ath_calcrxfilter().

#define HAL_RX_FILTER_MCAST   0x00000002
 

Definition at line 232 of file ah.h.

Referenced by ath_calcrxfilter().

#define HAL_RX_FILTER_PHYERR   0x00000100
 

Definition at line 238 of file ah.h.

Referenced by ar5k_ar5212_get_rx_filter(), ar5k_ar5212_set_rx_filter(), and ath_calcrxfilter().

#define HAL_RX_FILTER_PHYRADAR   0x00000200
 

Definition at line 239 of file ah.h.

Referenced by ar5k_ar5210_set_rx_filter(), ar5k_ar5212_get_rx_filter(), and ar5k_ar5212_set_rx_filter().

#define HAL_RX_FILTER_PROBEREQ   0x00000080
 

Definition at line 237 of file ah.h.

Referenced by ath_calcrxfilter().

#define HAL_RX_FILTER_PROM   0x00000020
 

Definition at line 236 of file ah.h.

Referenced by ath_calcrxfilter().

#define HAL_RX_FILTER_UCAST   0x00000001
 

Definition at line 231 of file ah.h.

Referenced by ath_calcrxfilter().

#define HAL_RXDESC_INTREQ   0x0020
 

Definition at line 944 of file ah.h.

Referenced by ar5k_ar5210_setup_rx_desc(), ar5k_ar5211_setup_rx_desc(), and ar5k_ar5212_setup_rx_desc().

#define HAL_RXERR_CRC   0x01
 

Definition at line 898 of file ah.h.

Referenced by ar5k_ar5210_proc_rx_desc(), ar5k_ar5211_proc_rx_desc(), ar5k_ar5212_proc_rx_desc(), and ath_rx_tasklet().

#define HAL_RXERR_DECRYPT   0x08
 

Definition at line 901 of file ah.h.

Referenced by ar5k_ar5210_proc_rx_desc(), ar5k_ar5211_proc_rx_desc(), ar5k_ar5212_proc_rx_desc(), and ath_rx_tasklet().

#define HAL_RXERR_FIFO   0x04
 

Definition at line 900 of file ah.h.

Referenced by ar5k_ar5210_proc_rx_desc(), and ath_rx_tasklet().

#define HAL_RXERR_MIC   0x10
 

Definition at line 902 of file ah.h.

Referenced by ar5k_ar5212_proc_rx_desc().

#define HAL_RXERR_PHY   0x02
 

Definition at line 899 of file ah.h.

Referenced by ar5k_ar5210_proc_rx_desc(), ar5k_ar5211_proc_rx_desc(), ar5k_ar5212_proc_rx_desc(), and ath_rx_tasklet().

#define HAL_RXKEYIX_INVALID   ((u_int8_t) - 1)
 

Definition at line 903 of file ah.h.

Referenced by ar5k_ar5210_proc_rx_desc(), ar5k_ar5211_proc_rx_desc(), and ar5k_ar5212_proc_rx_desc().

#define HAL_SLOT_TIME_20   880
 

Definition at line 482 of file ah.h.

#define HAL_SLOT_TIME_9   396
 

Definition at line 481 of file ah.h.

#define HAL_SLOT_TIME_MAX   0xffff
 

Definition at line 483 of file ah.h.

Referenced by ar5k_ar5210_set_slot_time(), ar5k_ar5211_set_slot_time(), and ar5k_ar5212_set_slot_time().

#define HAL_TXDESC_CLRDMASK   0x0001
 

Definition at line 946 of file ah.h.

Referenced by ath_tx_start().

#define HAL_TXDESC_CTSENA   0x0008
 

Definition at line 949 of file ah.h.

Referenced by ar5k_ar5210_setup_tx_desc(), ar5k_ar5212_setup_tx_desc(), and ath_tx_start().

#define HAL_TXDESC_INTREQ   0x0010
 

Definition at line 950 of file ah.h.

Referenced by ath_tx_start().

#define HAL_TXDESC_NOACK   0x0002
 

Definition at line 947 of file ah.h.

Referenced by ar5k_ar5212_setup_tx_desc(), and ath_tx_start().

#define HAL_TXDESC_RTSENA   0x0004
 

Definition at line 948 of file ah.h.

Referenced by ar5k_ar5210_setup_tx_desc(), ar5k_ar5212_setup_tx_desc(), and ath_tx_start().

#define HAL_TXDESC_VEOL   0x0020
 

Definition at line 951 of file ah.h.

#define HAL_TXERR_FIFO   0x04
 

Definition at line 884 of file ah.h.

Referenced by ar5k_ar5210_proc_tx_desc(), ar5k_ar5211_proc_tx_desc(), and ar5k_ar5212_proc_tx_desc().

#define HAL_TXERR_FILT   0x02
 

Definition at line 883 of file ah.h.

Referenced by ar5k_ar5210_proc_tx_desc(), ar5k_ar5211_proc_tx_desc(), and ar5k_ar5212_proc_tx_desc().

#define HAL_TXERR_XRETRY   0x01
 

Definition at line 882 of file ah.h.

Referenced by ar5k_ar5210_proc_tx_desc(), ar5k_ar5211_proc_tx_desc(), and ar5k_ar5212_proc_tx_desc().

#define HAL_TXKEYIX_INVALID   ((u_int32_t) - 1)
 

Definition at line 904 of file ah.h.

Referenced by ar5k_ar5210_setup_tx_desc(), ar5k_ar5211_setup_tx_desc(), ar5k_ar5212_setup_tx_desc(), and ath_tx_start().

#define HAL_TXQ_USEDEFAULT   ((u_int32_t) -1)
 

Definition at line 343 of file ah.h.

#define HAL_TXSTAT_ALTRATE   0x80
 

Definition at line 881 of file ah.h.

Referenced by ath_tx_processq().

#define IEEE80211_ADDR_LEN   6
 

Definition at line 46 of file ah.h.

#define printf   AR5K_PRINT
 

Definition at line 1332 of file ah.h.

Referenced by ar5k_ar5210_dump_state(), ar5k_ar5211_dump_state(), ar5k_ar5212_dump_state(), and main().

#define r_control_rate   controlRate
 

Definition at line 377 of file ah.h.

#define r_dot11_rate   dot11Rate
 

Definition at line 376 of file ah.h.

#define r_phy   phy
 

Definition at line 372 of file ah.h.

#define r_rate_code   rateCode
 

Definition at line 374 of file ah.h.

#define r_rate_kbps   rateKbps
 

Definition at line 373 of file ah.h.

#define r_short_preamble   shortPreamble
 

Definition at line 375 of file ah.h.

#define r_valid   valid
 

Definition at line 371 of file ah.h.

#define rt_info   info
 

Definition at line 388 of file ah.h.

#define rt_rate_code_index   rateCodeToIndex
 

Definition at line 387 of file ah.h.

#define rt_rate_count   rateCount
 

Definition at line 386 of file ah.h.

#define TXQ_FLAG_BACKOFF_DISABLE   0x0004
 

Definition at line 139 of file ah.h.

Referenced by ar5k_ar5212_reset_tx_queue().

#define TXQ_FLAG_COMPRESSION_ENABLE   0x0008
 

Definition at line 140 of file ah.h.

#define TXQ_FLAG_FRAG_BURST_BACKOFF_ENABLE   0x0020
 

Definition at line 142 of file ah.h.

Referenced by ar5k_ar5212_reset_tx_queue().

#define TXQ_FLAG_POST_FR_BKOFF_DIS   0x0040
 

Definition at line 143 of file ah.h.

Referenced by ar5k_ar5212_setup_tx_queueprops().

#define TXQ_FLAG_RDYTIME_EXP_POLICY_ENABLE   0x0010
 

Definition at line 141 of file ah.h.

Referenced by ar5k_ar5212_reset_tx_queue().

#define TXQ_FLAG_TXDESCINT_ENABLE   0x0002
 

Definition at line 138 of file ah.h.

Referenced by ath_tx_setup().

#define TXQ_FLAG_TXEOLINT_ENABLE   0x0080
 

Definition at line 144 of file ah.h.

Referenced by ath_tx_setup().

#define TXQ_FLAG_TXINT_ENABLE   0x0001
 

Definition at line 137 of file ah.h.


Typedef Documentation

typedef struct ath_hal*() ar5k_attach_t(u_int16_t, void *, HAL_BUS_TAG, HAL_BUS_HANDLE, HAL_STATUS *)
 

Definition at line 1337 of file ah.h.

typedef HAL_BOOL() ar5k_rfgain_t(struct ath_hal *, HAL_CHANNEL *, u_int)
 

Definition at line 1339 of file ah.h.

typedef u_int32_t HAL_BUS_ADDR
 

Definition at line 49 of file ah.h.

typedef void* HAL_BUS_HANDLE
 

Definition at line 48 of file ah.h.

typedef int HAL_BUS_TAG
 

Definition at line 47 of file ah.h.

typedef uint32_t HAL_CTRY_CODE
 

Definition at line 512 of file ah.h.

typedef u_int32_t HAL_INT
 

Definition at line 543 of file ah.h.

typedef enum ieee80211_state HAL_LED_STATE
 

Definition at line 549 of file ah.h.

typedef void* HAL_SOFTC
 

Definition at line 37 of file ah.h.

typedef int HAL_STATUS
 

Definition at line 101 of file ah.h.


Enumeration Type Documentation

enum ar5k_radio
 

Enumeration values:
AR5K_AR5110 
AR5K_AR5111 
AR5K_AR5112 

Definition at line 61 of file ah.h.

enum ar5k_srev_type
 

Enumeration values:
AR5K_VERSION_VER 
AR5K_VERSION_REV 
AR5K_VERSION_RAD 

Definition at line 1258 of file ah.h.

enum ar5k_version
 

Enumeration values:
AR5K_AR5210 
AR5K_AR5211 
AR5K_AR5212 

Definition at line 55 of file ah.h.

enum HAL_ANT_SETTING
 

Enumeration values:
HAL_ANT_VARIABLE 
HAL_ANT_FIXED_A 
HAL_ANT_FIXED_B 
HAL_ANT_MAX 

Definition at line 87 of file ah.h.

enum HAL_BOOL
 

Enumeration values:
AH_FALSE 
AH_TRUE 

Definition at line 71 of file ah.h.

enum HAL_CAPABILITY_TYPE
 

Enumeration values:
HAL_CAP_PHYCOUNTERS 
HAL_CAP_CIPHER 
HAL_CAP_TKIP_SPLIT 
HAL_CAP_TPC 
HAL_CAP_TXPOW 
HAL_CAP_BURST 
HAL_CAP_DIVERSITY 
HAL_CAP_VEOL 
HAL_CAP_REG_DMN 
HAL_CAP_NUM_TXQUEUES 

Definition at line 329 of file ah.h.

enum HAL_CHIP
 

Enumeration values:
HAL_CHIP_5GHZ 
HAL_CHIP_2GHZ 

Definition at line 493 of file ah.h.

enum HAL_CIPHER
 

Enumeration values:
HAL_CIPHER_WEP 
HAL_CIPHER_AES_OCB 
HAL_CIPHER_AES_CCM 
HAL_CIPHER_CKIP 
HAL_CIPHER_TKIP 
HAL_CIPHER_CLR 
HAL_CIPHER_MIC 

Definition at line 306 of file ah.h.

enum HAL_MODE
 

Enumeration values:
HAL_MODE_11A 
HAL_MODE_TURBO 
HAL_MODE_11B 
HAL_MODE_PUREG 
HAL_MODE_11G 
HAL_MODE_108G 
HAL_MODE_XR 
HAL_MODE_ALL 

Definition at line 76 of file ah.h.

enum HAL_OPMODE
 

Enumeration values:
HAL_M_STA 
HAL_M_IBSS 
HAL_M_HOSTAP 
HAL_M_MONITOR 

Definition at line 94 of file ah.h.

enum HAL_PKT_TYPE
 

Enumeration values:
HAL_PKT_TYPE_NORMAL 
HAL_PKT_TYPE_ATIM 
HAL_PKT_TYPE_PSPOLL 
HAL_PKT_TYPE_BEACON 
HAL_PKT_TYPE_PROBE_RESP 
HAL_PKT_TYPE_PIFS 

Definition at line 160 of file ah.h.

enum HAL_POWER_MODE
 

Enumeration values:
HAL_PM_UNDEFINED 
HAL_PM_AUTO 
HAL_PM_AWAKE 
HAL_PM_FULL_SLEEP 
HAL_PM_NETWORK_SLEEP 

Definition at line 294 of file ah.h.

enum HAL_RFGAIN
 

Enumeration values:
HAL_RFGAIN_INACTIVE 
HAL_RFGAIN_READ_REQUESTED 
HAL_RFGAIN_NEED_CHANGE 

Definition at line 466 of file ah.h.

enum HAL_TX_QUEUE
 

Enumeration values:
HAL_TX_QUEUE_INACTIVE 
HAL_TX_QUEUE_DATA 
HAL_TX_QUEUE_BEACON 
HAL_TX_QUEUE_CAB 
HAL_TX_QUEUE_PSPOLL 

Definition at line 111 of file ah.h.

enum HAL_TX_QUEUE_ID
 

Enumeration values:
HAL_TX_QUEUE_ID_DATA_MIN 
HAL_TX_QUEUE_ID_DATA_MAX 
HAL_TX_QUEUE_ID_PSPOLL 
HAL_TX_QUEUE_ID_BEACON 
HAL_TX_QUEUE_ID_CAB 

Definition at line 121 of file ah.h.

enum HAL_TX_QUEUE_SUBTYPE
 

Enumeration values:
HAL_WME_AC_BK 
HAL_WME_AC_BE 
HAL_WME_AC_VI 
HAL_WME_AC_VO 
HAL_WME_UPSD 

Definition at line 129 of file ah.h.


Function Documentation

struct ath_hal* _ath_hal_attach u_int16_t devid,
HAL_SOFTC sc,
HAL_BUS_TAG t,
HAL_BUS_HANDLE h,
void * s
 

Definition at line 164 of file ar5xxx.c.

References ath_hal_attach().

Here is the call graph for this function:

u_int32_t ar5k_bitswap u_int32_t ,
u_int 
 

Definition at line 618 of file ar5xxx.c.

Referenced by ar5k_ar5110_chan2athchan(), ar5k_ar5111_channel(), ar5k_ar5112_channel(), ar5k_ar5210_attach(), ar5k_ar5211_radio_revision(), ar5k_ar5211_rfregs(), ar5k_ar5212_radio_revision(), and ar5k_rfregs_op().

HAL_BOOL ar5k_channel struct ath_hal,
HAL_CHANNEL
 

Definition at line 1126 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, AR5K_AR5110, ar5k_ar5110_channel(), AR5K_AR5111, ar5k_ar5111_channel(), ar5k_ar5112_channel(), AR5K_PRINTF, HAL_CHANNEL::channel, CHANNEL_T, and HAL_CHANNEL::channelFlags.

Referenced by ar5k_ar5210_calibrate(), ar5k_ar5210_reset(), ar5k_ar5211_reset(), and ar5k_ar5212_reset().

Here is the call graph for this function:

u_int ar5k_clocktoh u_int ,
HAL_BOOL 
 

Definition at line 641 of file ar5xxx.c.

References AH_TRUE.

Referenced by ar5k_ar5210_get_ack_timeout(), ar5k_ar5210_get_cts_timeout(), ar5k_ar5210_get_slot_time(), ar5k_ar5210_set_ack_timeout(), ar5k_ar5210_set_cts_timeout(), ar5k_ar5211_get_ack_timeout(), ar5k_ar5211_get_cts_timeout(), ar5k_ar5211_set_ack_timeout(), ar5k_ar5211_set_cts_timeout(), ar5k_ar5212_get_ack_timeout(), ar5k_ar5212_get_cts_timeout(), ar5k_ar5212_set_ack_timeout(), and ar5k_ar5212_set_cts_timeout().

int ar5k_eeprom_init struct ath_hal ) 
 

Definition at line 868 of file ar5xxx.c.

References AR5K_EEPROM_ANT_GAIN, ar5k_eeprom_bin2freq(), AR5K_EEPROM_CTL, AR5K_EEPROM_HDR, AR5K_EEPROM_HDR_T_5GHZ_DBM, AR5K_EEPROM_MAGIC, AR5K_EEPROM_MISC0, AR5K_EEPROM_MISC1, AR5K_EEPROM_MODE_11A, AR5K_EEPROM_MODE_11B, AR5K_EEPROM_MODE_11G, AR5K_EEPROM_MODES_11A, AR5K_EEPROM_MODES_11B, AR5K_EEPROM_MODES_11G, AR5K_EEPROM_N_CTLS, AR5K_EEPROM_OBDB0_2GHZ, AR5K_EEPROM_OBDB1_2GHZ, AR5K_EEPROM_PROTECT, AR5K_EEPROM_READ, ar5k_eeprom_read_ants(), AR5K_EEPROM_READ_HDR, ar5k_eeprom_read_modes(), AR5K_EEPROM_REG_DOMAIN, AR5K_EEPROM_VERSION, AR5K_EEPROM_VERSION_3_0, AR5K_EEPROM_VERSION_3_3, AR5K_EEPROM_VERSION_4_0, AR5K_EEPROM_VERSION_4_1, AR5K_EEPROM_VERSION_4_2, AR5K_TRACE, ar5k_eeprom_info::ee_adc_desired_size, ar5k_eeprom_info::ee_cal_pier, ar5k_eeprom_info::ee_cck_ofdm_gain_delta, ar5k_eeprom_info::ee_ctl, ar5k_eeprom_info::ee_ctls, ar5k_eeprom_info::ee_db, ar5k_eeprom_info::ee_gain_select, ar5k_eeprom_info::ee_header, ar5k_eeprom_info::ee_i_cal, ar5k_eeprom_info::ee_margin_tx_rx, ar5k_eeprom_info::ee_ob, ar5k_eeprom_info::ee_pwd_84, ar5k_eeprom_info::ee_pwd_90, ar5k_eeprom_info::ee_q_cal, ar5k_eeprom_info::ee_turbo_max_power, ar5k_eeprom_info::ee_tx_clip, and ar5k_eeprom_info::ee_xr_power.

Referenced by ath_hal_attach().

Here is the call graph for this function:

int ar5k_eeprom_read_mac struct ath_hal,
u_int8_t
 

Definition at line 1050 of file ar5xxx.c.

References AR5K_TRACE, bcopy, bzero, and IEEE80211_ADDR_LEN.

Referenced by ath_hal_attach().

HAL_BOOL ar5k_eeprom_regulation_domain struct ath_hal,
HAL_BOOL ,
u_int32_t
 

Referenced by ar5k_ar5210_set_regdomain(), ar5k_ar5211_set_regdomain(), ar5k_ar5212_set_regdomain(), ar5k_get_regdomain(), and ath_hal_attach().

u_int16_t ar5k_get_regdomain struct ath_hal ) 
 

Definition at line 583 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, ar5k_eeprom_regulation_domain(), ar5k_regdomain_from_ieee(), AR5K_TRACE, DMN_FCC1, ieee80211_countrycode2regdomain(), and ieee80211_name2countrycode().

Referenced by ar5k_ar5210_get_regdomain(), ar5k_ar5211_get_regdomain(), and ar5k_ar5212_get_regdomain().

Here is the call graph for this function:

u_int ar5k_htoclock u_int ,
HAL_BOOL 
 

Definition at line 633 of file ar5xxx.c.

References AH_TRUE.

Referenced by ar5k_ar5210_set_ack_timeout(), ar5k_ar5210_set_cts_timeout(), ar5k_ar5210_set_slot_time(), ar5k_ar5211_set_ack_timeout(), ar5k_ar5211_set_cts_timeout(), ar5k_ar5212_set_ack_timeout(), and ar5k_ar5212_set_cts_timeout().

const char* ar5k_printver enum ar5k_srev_type,
u_int 
 

void ar5k_radar_alert struct ath_hal ) 
 

Definition at line 539 of file ar5xxx.c.

References AR5K_PRINTF.

Referenced by ar5k_ar5210_get_isr(), ar5k_ar5211_get_isr(), and ar5k_ar5212_get_isr().

u_int16_t ar5k_regdomain_from_ieee u_int32_t  ) 
 

Referenced by ar5k_eeprom_regulation_domain(), and ar5k_get_regdomain().

u_int32_t ar5k_regdomain_to_ieee u_int16_t  ) 
 

Definition at line 574 of file ar5xxx.c.

Referenced by ar5k_ar5210_set_regdomain(), ar5k_ar5211_set_regdomain(), ar5k_ar5212_set_regdomain(), and ath_hal_attach().

HAL_BOOL ar5k_register_timeout struct ath_hal,
u_int32_t ,
u_int32_t ,
u_int32_t ,
HAL_BOOL 
 

Definition at line 659 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, AR5K_DELAY, AR5K_REG_READ, and AR5K_TUNE_REGISTER_TIMEOUT.

Referenced by ar5k_ar5210_do_calibrate(), ar5k_ar5210_nic_reset(), ar5k_ar5210_noise_floor(), ar5k_ar5211_nic_reset(), ar5k_ar5211_wait_for_beacon(), ar5k_ar5212_nic_reset(), and ar5k_ar5212_wait_for_beacon().

HAL_BOOL ar5k_rfgain struct ath_hal,
u_int ,
u_int 
 

Definition at line 1726 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, AR5K_ELEMENTS, AR5K_INI_PHY_5111, AR5K_INI_PHY_5112, AR5K_INI_RFGAIN_2GHZ, AR5K_INI_RFGAIN_5GHZ, AR5K_REG_WAIT, AR5K_REG_WRITE, and ar5k_rfg.

Referenced by ar5k_ar5211_reset(), and ar5k_ar5212_reset().

HAL_BOOL ar5k_rfregs struct ath_hal,
HAL_CHANNEL,
u_int 
 

Definition at line 1509 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, ar5111_rf, ar5112_rf, AR5K_AR5111, ar5k_ar5111_rfregs(), AR5K_AR5112, ar5k_ar5112_rfregs(), AR5K_PRINT, and HAL_RFGAIN_INACTIVE.

Referenced by ar5k_ar5212_reset().

Here is the call graph for this function:

int32_t ar5k_rfregs_gain_adjust struct ath_hal ) 
 

Definition at line 1451 of file ar5xxx.c.

References ar5111_gain_opt, ar5112_gain_opt, AR5K_AR5111, AR5K_PRINTF, ar5k_gain_opt::go_step, ar5k_gain_opt::go_steps_count, and ar5k_gain_opt_step::gos_gain.

Referenced by ar5k_ar5212_get_rf_gain().

HAL_BOOL ar5k_rfregs_gain_readback struct ath_hal ) 
 

Definition at line 1408 of file ar5xxx.c.

References AH_FALSE, AR5K_AR5111, AR5K_GAIN_DYN_ADJUST_HI_MARGIN, AR5K_GAIN_DYN_ADJUST_LO_MARGIN, and ar5k_rfregs_op().

Referenced by ar5k_ar5212_get_rf_gain().

Here is the call graph for this function:

u_int32_t ar5k_rfregs_gainf_corr struct ath_hal ) 
 

Definition at line 1371 of file ar5xxx.c.

References AH_FALSE, and ar5k_rfregs_op().

Referenced by ar5k_ar5212_get_rf_gain().

Here is the call graph for this function:

void ar5k_rt_copy HAL_RATE_TABLE,
const HAL_RATE_TABLE
 

Definition at line 649 of file ar5xxx.c.

References bcopy, bzero, HAL_RATE_TABLE::info, and HAL_RATE_TABLE::rateCount.

Referenced by ath_hal_attach().

void ar5k_txpower_table struct ath_hal,
HAL_CHANNEL,
int16_t 
 

Definition at line 1761 of file ar5xxx.c.

References AR5K_ELEMENTS, AR5K_MAX_RATES, AR5K_TUNE_DEFAULT_TXPOWER, and AR5K_TUNE_MAX_TXPOWER.

Referenced by ar5k_ar5212_txpower().

struct ath_hal* ath_hal_attach u_int16_t device,
HAL_SOFTC sc,
HAL_BUS_TAG ,
HAL_BUS_HANDLE ,
HAL_STATUS
 

Definition at line 186 of file ar5xxx.c.

References ath_hal::ah_abi, ath_hal::ah_aifs, ath_hal::ah_ant_diversity, ath_hal::ah_atim_window, ath_hal::ah_capabilities, ath_hal::ah_country_code, ath_hal::ah_cw_min, ath_hal::ah_device, ath_hal::ah_dump_state, AH_FALSE, ath_hal::ah_imr, ath_hal::ah_limit_tx_retries, ath_hal::ah_op_mode, ath_hal::ah_radar, ath_hal::ah_rt_11a, ath_hal::ah_rt_11b, ath_hal::ah_rt_11g, ath_hal::ah_rt_turbo, ath_hal::ah_sc, ath_hal::ah_sh, ath_hal::ah_software_retry, ath_hal::ah_st, AH_TRUE, ath_hal::ah_turbo, ath_hal::ah_txpower, ar5k_eeprom_init(), ar5k_eeprom_read_mac(), ar5k_eeprom_regulation_domain(), AR5K_ELEMENTS, AR5K_INIT_TX_RETRY, AR5K_PRINT, AR5K_PRINTF, ar5k_regdomain_to_ieee(), ar5k_rt_11a, ar5k_rt_11b, ar5k_rt_11g, ar5k_rt_copy(), ar5k_rt_turbo, AR5K_TUNE_AIFS, AR5K_TUNE_ANT_DIVERSITY, AR5K_TUNE_CWMIN, AR5K_TUNE_RADAR_ALERT, AR5K_TUNE_TPC_TXPOWER, attach, bzero, ar5k_capabilities_t::cap_eeprom, ar5k_capabilities_t::cap_mode, CTRY_DEFAULT, device, ar5k_eeprom_info::ee_regdomain, HAL_ABI_VERSION, HAL_M_STA, HAL_MODE_11A, HAL_MODE_11B, HAL_MODE_11G, HAL_MODE_TURBO, HAL_OK, ath_hal::r_enabled, ar5k_capabilities_t::reg_current, ar5k_capabilities_t::reg_hw, and ath_hal::txp_tpc.

Referenced by _ath_hal_attach().

Here is the call graph for this function:

u_int16_t ath_hal_computetxtime struct ath_hal,
const HAL_RATE_TABLE,
u_int32_t ,
u_int16_t ,
HAL_BOOL 
 

Definition at line 332 of file ar5xxx.c.

References AR5K_ASSERT_ENTRY, AR5K_CCK_TX_TIME, AR5K_OFDM_NUM_BITS_PER_SYM, AR5K_OFDM_TX_TIME, AR5K_TURBO_NUM_BITS_PER_SYM, AR5K_TURBO_TX_TIME, IEEE80211_T_CCK, IEEE80211_T_OFDM, IEEE80211_T_TURBO, HAL_RATE_TABLE::info, HAL_RATE::phy, HAL_RATE_TABLE::rateCount, HAL_RATE::rateKbps, and HAL_RATE::shortPreamble.

Referenced by ar5k_ar5212_reset(), ath_rx_tasklet(), and ath_tx_start().

void ath_hal_detach struct ath_halah  ) 
 

Definition at line 177 of file ar5xxx.c.

u_int ath_hal_getwirelessmodes struct ath_hal,
HAL_CTRY_CODE 
 

Definition at line 861 of file ar5xxx.c.

References HAL_MODE_11A, HAL_MODE_11B, and HAL_MODE_11G.

Referenced by ath_attach().

u_int ath_hal_ieee2mhz u_int ,
u_int 
 

Definition at line 425 of file ar5xxx.c.

References IEEE80211_CHAN_2GHZ, and IEEE80211_CHAN_5GHZ.

HAL_BOOL ath_hal_init_channels struct ath_hal,
HAL_CHANNEL,
u_int ,
u_int,
HAL_CTRY_CODE ,
u_int16_t ,
HAL_BOOL ,
HAL_BOOL 
 

Definition at line 469 of file ar5xxx.c.

References AH_FALSE, AH_TRUE, ar5k_2ghz_channels, ar5k_5ghz_channels, AR5K_TRACE, bcopy, HAL_CHANNEL::channel, HAL_CHANNEL::channelFlags, ieee80211_regchannel::rc_channel, and ieee80211_regchannel::rc_mode.

Referenced by ath_getchannels().

u_int ath_hal_mhz2ieee u_int ,
u_int 
 

Definition at line 400 of file ar5xxx.c.

References IEEE80211_CHAN_2GHZ, and IEEE80211_CHAN_5GHZ.

Referenced by ar5k_ar5110_chan2athchan(), ar5k_ar5111_channel(), and ath_getchannels().

const char* ath_hal_probe u_int16_t ,
u_int16_t 
 

Definition at line 144 of file ar5xxx.c.

References AR5K_ELEMENTS, ar5k_known_products, device, and vendor.

Referenced by ath_pci_probe().


Variable Documentation

struct ath_desc __packed__
 


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