Linux Kernel
3.7.1
|
#include "../reg.h"
Go to the source code of this file.
Enumerations | |
enum | ath_usb_dev { AR9280_USB = 1, AR9287_USB = 2, STORAGE_DEVICE = 3 } |
enum | { AR_INTR_SYNC_RTC_IRQ = 0x00000001, AR_INTR_SYNC_MAC_IRQ = 0x00000002, AR_INTR_SYNC_EEPROM_ILLEGAL_ACCESS = 0x00000004, AR_INTR_SYNC_APB_TIMEOUT = 0x00000008, AR_INTR_SYNC_PCI_MODE_CONFLICT = 0x00000010, AR_INTR_SYNC_HOST1_FATAL = 0x00000020, AR_INTR_SYNC_HOST1_PERR = 0x00000040, AR_INTR_SYNC_TRCV_FIFO_PERR = 0x00000080, AR_INTR_SYNC_RADM_CPL_EP = 0x00000100, AR_INTR_SYNC_RADM_CPL_DLLP_ABORT = 0x00000200, AR_INTR_SYNC_RADM_CPL_TLP_ABORT = 0x00000400, AR_INTR_SYNC_RADM_CPL_ECRC_ERR = 0x00000800, AR_INTR_SYNC_RADM_CPL_TIMEOUT = 0x00001000, AR_INTR_SYNC_LOCAL_TIMEOUT = 0x00002000, AR_INTR_SYNC_PM_ACCESS = 0x00004000, AR_INTR_SYNC_MAC_AWAKE = 0x00008000, AR_INTR_SYNC_MAC_ASLEEP = 0x00010000, AR_INTR_SYNC_MAC_SLEEP_ACCESS = 0x00020000, AR_INTR_SYNC_ALL = 0x0003FFFF, AR_INTR_SYNC_DEFAULT, AR_INTR_SYNC_SPURIOUS = 0xFFFFFFFF } |
#define AR9003_PHY_AGC_CONTROL AR9300_SM_BASE + 0xc4 |
#define AR_ADHOC_MCAST_KEYID_ENABLE |
#define AR_AGG_WEP_ENABLE |
#define AR_AGG_WEP_ENABLE_FIX 0x00000008 /* This allows the use of AR_AGG_WEP_ENABLE */ |
#define AR_BEACON_PERIOD AR_GEN_TIMERS(8) |
#define AR_CR_RXE (AR_SREV_9300_20_OR_LATER(ah) ? 0x0000000c : 0x00000004) |
#define AR_D_TXBLK_DATA | ( | i | ) | (AR_D_TXBLK_CMD+(i)) |
#define AR_DCHNTIME | ( | _i | ) | (AR_D0_CHNTIME + ((_i)<<2)) |
#define AR_DEVID_7010 | ( | _ah | ) |
#define AR_DIAG_FORCE_RX_CLEAR 0x00100000 /* force rx_clear high */ |
#define AR_DLCL_IFS | ( | _i | ) | (AR_D0_LCL_IFS + ((_i)<<2)) |
#define AR_DMA_BEACON_PERIOD AR_GEN_TIMERS(9) |
#define AR_DMISC | ( | _i | ) | (AR_D0_MISC + ((_i)<<2)) |
#define AR_DQCUMASK | ( | _i | ) | (AR_D0_QCUMASK + ((_i)<<2)) |
#define AR_DRETRY_LIMIT | ( | _i | ) | (AR_D0_RETRY_LIMIT + ((_i)<<2)) |
#define AR_DTIM_PERIOD AR_GEN_TIMERS(13) |
#define AR_EEPROM_STATUS_DATA |
#define AR_GPIO_IN (AR_SREV_9340(ah) ? 0x402c : 0x404c) |
#define AR_GPIO_IN_OUT (AR_SREV_9340(ah) ? 0x4028 : 0x4048) |
#define AR_GPIO_INPUT_EN_VAL |
#define AR_GPIO_INPUT_MUX1 |
#define AR_GPIO_INPUT_MUX2 |
#define AR_GPIO_INTR_POL |
#define AR_GPIO_OE_OUT |
#define AR_GPIO_OUTPUT_MUX1 |
#define AR_GPIO_OUTPUT_MUX2 |
#define AR_GPIO_OUTPUT_MUX3 |
#define AR_GPIO_PDPU (AR_SREV_9300_20_OR_LATER(ah) ? 0x4090 : 0x4088) |
#define AR_HCF_PERIOD AR_GEN_TIMERS(11) |
#define AR_HOST_TIMEOUT (AR_SREV_9340(ah) ? 0x4008 : 0x4018) |
#define AR_INPUT_STATE |
#define AR_INTR_ASYNC_CAUSE (AR_SREV_9340(ah) ? 0x4020 : 0x4038) |
#define AR_INTR_ASYNC_CAUSE_CLR (AR_SREV_9340(ah) ? 0x4020 : 0x4038) |
#define AR_INTR_ASYNC_ENABLE (AR_SREV_9340(ah) ? 0x4024 : 0x403c) |
#define AR_INTR_ASYNC_MASK (AR_SREV_9340(ah) ? 0x4018 : 0x4030) |
#define AR_INTR_ASYNC_USED |
#define AR_INTR_PRIO_ASYNC_ENABLE (AR_SREV_9340(ah) ? 0x4094 : 0x40d4) |
#define AR_INTR_PRIO_ASYNC_MASK (AR_SREV_9340(ah) ? 0x408c : 0x40c8) |
#define AR_INTR_PRIO_SYNC_ENABLE (AR_SREV_9340(ah) ? 0x4088 : 0x40c4) |
#define AR_INTR_PRIO_SYNC_MASK (AR_SREV_9340(ah) ? 0x4090 : 0x40cc) |
#define AR_INTR_SYNC_CAUSE (AR_SREV_9340(ah) ? 0x4010 : 0x4028) |
#define AR_INTR_SYNC_CAUSE_CLR (AR_SREV_9340(ah) ? 0x4010 : 0x4028) |
#define AR_INTR_SYNC_ENABLE (AR_SREV_9340(ah) ? 0x4014 : 0x402c) |
#define AR_INTR_SYNC_MASK (AR_SREV_9340(ah) ? 0x401c : 0x4034) |
#define AR_ISR_S2_S (AR_SREV_9300_20_OR_LATER(ah) ? 0x00d0 : 0x00cc) |
#define AR_ISR_S3_S (AR_SREV_9300_20_OR_LATER(ah) ? 0x00d4 : 0x00d0) |
#define AR_ISR_S4_S (AR_SREV_9300_20_OR_LATER(ah) ? 0x00d8 : 0x00d4) |
#define AR_ISR_S5_S (AR_SREV_9300_20_OR_LATER(ah) ? 0x00dc : 0x00d8) |
#define AR_MCI_INTERRUPT_DEFAULT |
#define AR_MCI_INTERRUPT_MSG_FAIL_MASK |
#define AR_MCI_INTERRUPT_RX_HW_MSG_MASK |
#define AR_MCI_INTERRUPT_RX_MSG_DEFAULT |
#define AR_NDP_PERIOD AR_GEN_TIMERS(15) |
#define AR_NEXT_CFP AR_GEN_TIMERS(2) |
#define AR_NEXT_DMA_BEACON_ALERT AR_GEN_TIMERS(1) |
#define AR_NEXT_DTIM AR_GEN_TIMERS(5) |
#define AR_NEXT_HCF AR_GEN_TIMERS(3) |
#define AR_NEXT_NDP_TIMER AR_GEN_TIMERS(7) |
#define AR_NEXT_QUIET_TIMER AR_GEN_TIMERS(6) |
#define AR_NEXT_SWBA AR_GEN_TIMERS(2) |
#define AR_NEXT_TBTT_TIMER AR_GEN_TIMERS(0) |
#define AR_NEXT_TIM AR_GEN_TIMERS(4) |
#define AR_OBS |
#define AR_PCIE_MSI |
#define AR_PCIE_PM_CTRL (AR_SREV_9340(ah) ? 0x4004 : 0x4014) |
#define AR_PCU_MISC_MODE2_ADHOC_MCAST_KEYID_ENABLE 0x00000040 |
#define AR_PCU_MISC_MODE2_ENABLE_LOAD_NAV_BEACON_DURATION 0x00010000 |
#define AR_PCU_MISC_MODE2_NO_CRYPTO_FOR_NON_DATA_PKT 0x00000004 |
#define AR_PHY_AGC_CONTROL (AR_SREV_9300_20_OR_LATER(ah) ? AR9003_PHY_AGC_CONTROL : AR9002_PHY_AGC_CONTROL) |
#define AR_PHY_AGC_CONTROL_CAL 0x00000001 /* do internal calibration */ |
#define AR_PHY_AGC_CONTROL_CLC_SUCCESS 0x00080000 /* carrier leak calibration done */ |
#define AR_PHY_AGC_CONTROL_ENABLE_NF 0x00008000 /* enable noise floor calibration to happen */ |
#define AR_PHY_AGC_CONTROL_EXT_NF_PWR_MEAS 0x00040000 /* extend noise floor power measurement */ |
#define AR_PHY_AGC_CONTROL_FLTR_CAL 0x00010000 /* allow tx filter calibration */ |
#define AR_PHY_AGC_CONTROL_NF 0x00000002 /* do noise-floor calibration */ |
#define AR_PHY_AGC_CONTROL_NO_UPDATE_NF 0x00020000 /* don't update noise floor automatically */ |
#define AR_PHY_AGC_CONTROL_OFFSET_CAL 0x00000800 /* allow offset calibration */ |
#define AR_PMCTRL_AUX_PWR_DET 0x10000000 /* Puts Chip in L2 state */ |
#define AR_PMCTRL_HOST_PME_EN |
#define AR_PMCTRL_PWR_PM_CTRL_ENA 0x00008000 /* Enable power mgmt */ |
#define AR_PMCTRL_PWR_STATE_D1D3 0x0f000000 /* Activate D1 and D3 */ |
#define AR_PMCTRL_PWR_STATE_D1D3_REAL 0x0f000000 /* Activate D1 and D3 */ |
#define AR_PMCTRL_PWR_STATE_MASK 0x0f000000 /* Power State Mask */ |
#define AR_PMCTRL_WOW_PME_CLR 0x00200000 /* Clear WoW event */ |
#define AR_QCBRCFG | ( | _i | ) | (AR_Q0_CBRCFG + ((_i)<<2)) |
#define AR_QMISC | ( | _i | ) | (AR_Q0_MISC + ((_i)<<2)) |
#define AR_QRDYTIMECFG | ( | _i | ) | (AR_Q0_RDYTIMECFG + ((_i)<<2)) |
#define AR_QTXDP | ( | _i | ) | (AR_Q0_TXDP + ((_i)<<2)) |
#define AR_QUIET_PERIOD AR_GEN_TIMERS(14) |
#define AR_RATE_DURATION | ( | _n | ) | (AR_RATE_DURATION_0 + ((_n)<<2)) |
#define AR_RTC_DERIVED_CLK (AR_SREV_9100(ah) ? (AR_RTC_BASE + 0x0038) : 0x7038) |
#define AR_RTC_FORCE_WAKE ((AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x004c) : 0x704c) |
#define AR_RTC_INTR_CAUSE ((AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x0050) : 0x7050) |
#define AR_RTC_INTR_ENABLE ((AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x0054) : 0x7054) |
#define AR_RTC_INTR_MASK ((AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x0058) : 0x7058) |
#define AR_RTC_PLL_CONTROL ((AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x0014) : 0x7014) |
#define AR_RTC_RC ((AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x0000) : 0x7000) |
#define AR_RTC_RESET ((AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x0040) : 0x7040) |
#define AR_RTC_SLEEP_CLK ((AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x0048) : 0x7048) |
#define AR_RTC_STATUS ((AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x0044) : 0x7044) |
#define AR_RTC_STATUS_M ((AR_SREV_9100(ah)) ? 0x0000003f : 0x0000000f) |
#define AR_SREV |
#define AR_SREV_5416 | ( | _ah | ) |
#define AR_SREV_5416_22_OR_LATER | ( | _ah | ) |
#define AR_SREV_9100 | ( | ah | ) | ((ah->hw_version.macVersion) == AR_SREV_VERSION_9100) |
#define AR_SREV_9100_OR_LATER | ( | _ah | ) | (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9100)) |
#define AR_SREV_9160 | ( | _ah | ) | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9160)) |
#define AR_SREV_9160_10_OR_LATER | ( | _ah | ) | (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9160)) |
#define AR_SREV_9160_11 | ( | _ah | ) |
#define AR_SREV_9271 | ( | _ah | ) | (((_ah))->hw_version.macVersion == AR_SREV_VERSION_9271) |
#define AR_SREV_9271_10 | ( | _ah | ) |
#define AR_SREV_9271_11 | ( | _ah | ) |
#define AR_SREV_9280 | ( | _ah | ) | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9280)) |
#define AR_SREV_9280_20 | ( | _ah | ) | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9280)) |
#define AR_SREV_9280_20_OR_LATER | ( | _ah | ) | (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9280)) |
#define AR_SREV_9285 | ( | _ah | ) | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9285)) |
#define AR_SREV_9285_12_OR_LATER | ( | _ah | ) | (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9285)) |
#define AR_SREV_9285E_20 | ( | _ah | ) |
#define AR_SREV_9287 | ( | _ah | ) | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9287)) |
#define AR_SREV_9287_11 | ( | _ah | ) |
#define AR_SREV_9287_11_OR_LATER | ( | _ah | ) | (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9287)) |
#define AR_SREV_9287_12 | ( | _ah | ) |
#define AR_SREV_9287_12_OR_LATER | ( | _ah | ) |
#define AR_SREV_9287_13_OR_LATER | ( | _ah | ) |
#define AR_SREV_9300 | ( | _ah | ) | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9300)) |
#define AR_SREV_9300_20_OR_LATER | ( | _ah | ) | ((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9300) |
#define AR_SREV_9330 | ( | _ah | ) | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9330)) |
#define AR_SREV_9330_10 | ( | _ah | ) |
#define AR_SREV_9330_11 | ( | _ah | ) |
#define AR_SREV_9330_12 | ( | _ah | ) |
#define AR_SREV_9340 | ( | _ah | ) | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9340)) |
#define AR_SREV_9462 | ( | _ah | ) | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9462)) |
#define AR_SREV_9462_20 | ( | _ah | ) |
#define AR_SREV_9462_20_OR_LATER | ( | _ah | ) |
#define AR_SREV_9485 | ( | _ah | ) | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9485)) |
#define AR_SREV_9485_10 | ( | _ah | ) |
#define AR_SREV_9485_11 | ( | _ah | ) |
#define AR_SREV_9485_OR_LATER | ( | _ah | ) | (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9485)) |
#define AR_SREV_9550 | ( | _ah | ) | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9550)) |
#define AR_SREV_9565 | ( | _ah | ) | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9565)) |
#define AR_SREV_9565_10 | ( | _ah | ) |
#define AR_SREV_9580 | ( | _ah | ) |
#define AR_SREV_9580_10 | ( | _ah | ) |
#define AR_SREV_9580_10_OR_LATER | ( | _ah | ) | (AR_SREV_9580(_ah)) |
#define AR_SREV_ID ((AR_SREV_9100(ah)) ? 0x00000FFF : 0x000000FF) |
#define AR_SWBA_PERIOD AR_GEN_TIMERS(10) |
#define AR_TIM_PERIOD AR_GEN_TIMERS(12) |
#define AR_WA (AR_SREV_9340(ah) ? 0x40c4 : 0x4004) |
#define AR_WA_RESET_EN |
#define AR_WA_UNTIE_RESET_EN |
#define AR_WOW_BEACON_TIMO 0x40000000 /* valid if BCN_EN is set */ |
#define AR_WOW_CLEAR_EVENTS | ( | x | ) |
#define AR_WOW_CNT_AIFS_CNT 0x00000022 /* AR_WOW_COUNT_REG */ |
#define AR_WOW_CNT_KA_CNT 0x00000008 /* AR_WOW_COUNT register */ |
#define AR_WOW_CNT_SLOT_CNT 0x00000009 /* AR_WOW_COUNT_REG */ |
#define AR_WOW_KEEP_ALIVE_DELAY_VALUE 0x000003e8 /* 1 msec */ |
#define AR_WOW_LEN1_SHIFT | ( | _i | ) | ((0x3 - ((_i) & 0x3)) << 0x3) |
#define AR_WOW_LEN2_SHIFT | ( | _i | ) | ((0x7 - ((_i) & 0x7)) << 0x3) |
#define AR_WOW_LENGTH1_MASK | ( | _i | ) | (AR_WOW_LENGTH_MAX << AR_WOW_LEN1_SHIFT(_i)) |
#define AR_WOW_LENGTH2_MASK | ( | _i | ) | (AR_WOW_LENGTH_MAX << AR_WOW_LEN2_SHIFT(_i)) |
#define AR_WOW_PAT_BACKOFF 0x00000004 /* AR_WOW_PATTERN_REG */ |
#define AR_WOW_PATTERN_FOUND_MASK ((0xff) << AR_WOW_PAT_FOUND_SHIFT) |
#define AR_WOW_PATTERN_OFF1 0x8290 /* pattern bytes 0 -> 3 */ |
#define AR_WOW_PATTERN_OFF2 0x8294 /* pattern bytes 4 -> 7 */ |
#define AR_WOW_STATUS | ( | x | ) |
#define AR_WOW_TXBUF | ( | i | ) | (AR_WOW_TRANSMIT_BUFFER + ((i) << 2)) |
anonymous enum |
enum ath_usb_dev |