diff options
author | Nick Kossifidis <mick@madwifi.org> | 2008-10-26 14:40:25 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:02:32 -0400 |
commit | 4c674c60bd567597f1224973712b352f4f474890 (patch) | |
tree | 0838978d789d120c3109a1b14a948a7ad4ff9cd8 /drivers/net/wireless/ath5k/reg.h | |
parent | 84fa4f43c418d2eaad06734ea780a74c869f79c3 (diff) |
ath5k: Update interrupt masking code
*Properly get/set all available ISR/IMR values and review common/uncommon bits
*Better handling of per-txq interrupts (we can now resolve what q is generating
each interrupt -this will help in debuging wme later)
*Some minor updates from legacy-hal
*Properly handle RXNOFRM and TXNOFRM interrupt masking (even when we don't set
them on IMR they keep showing up, so we disable them by zeroing AR5K_RXNOFRM
and AR5K_TXNOFRM registers). This doesn't exist on legacy-hal but i've tested
it on various cards and it works fine.
Changes-Licensed-under: ISC
Signed-Off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath5k/reg.h')
-rw-r--r-- | drivers/net/wireless/ath5k/reg.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath5k/reg.h b/drivers/net/wireless/ath5k/reg.h index e557fe178bbf..0dae54d00f03 100644 --- a/drivers/net/wireless/ath5k/reg.h +++ b/drivers/net/wireless/ath5k/reg.h | |||
@@ -234,6 +234,7 @@ | |||
234 | #define AR5K_TXNOFRM 0x004c | 234 | #define AR5K_TXNOFRM 0x004c |
235 | #define AR5K_TXNOFRM_M 0x000003ff | 235 | #define AR5K_TXNOFRM_M 0x000003ff |
236 | #define AR5K_TXNOFRM_QCU 0x000ffc00 | 236 | #define AR5K_TXNOFRM_QCU 0x000ffc00 |
237 | #define AR5K_TXNOFRM_QCU_S 10 | ||
237 | 238 | ||
238 | /* | 239 | /* |
239 | * Receive frame gap timeout register | 240 | * Receive frame gap timeout register |
@@ -350,7 +351,7 @@ | |||
350 | 351 | ||
351 | #define AR5K_SISR3 0x0090 /* Register Address [5211+] */ | 352 | #define AR5K_SISR3 0x0090 /* Register Address [5211+] */ |
352 | #define AR5K_SISR3_QCBRORN 0x000003ff /* Mask for QCBRORN */ | 353 | #define AR5K_SISR3_QCBRORN 0x000003ff /* Mask for QCBRORN */ |
353 | #define AR5K_SISR3_QCBORN_S 0 | 354 | #define AR5K_SISR3_QCBRORN_S 0 |
354 | #define AR5K_SISR3_QCBRURN 0x03ff0000 /* Mask for QCBRURN */ | 355 | #define AR5K_SISR3_QCBRURN 0x03ff0000 /* Mask for QCBRURN */ |
355 | #define AR5K_SISR3_QCBRURN_S 16 | 356 | #define AR5K_SISR3_QCBRURN_S 16 |
356 | 357 | ||