diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2010-04-15 17:39:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-16 15:43:34 -0400 |
commit | 55e82df4be45305bfb5e7ecb877a349ed4da8ed2 (patch) | |
tree | 2db7edcfe8dd360c3df7496a8609e3e67214bcc3 /drivers/net/wireless/ath/ath9k/hw.h | |
parent | 991312d88cb8844e3e1a1e57a72823802da36fcd (diff) |
ath9k_hw: Abstract the routine which returns interrupt status
Also move interrupt related code to mac.c
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index b27e76b82dcf..7a32733108a2 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -227,6 +227,7 @@ struct ath9k_ops_config { | |||
227 | u32 enable_ani; | 227 | u32 enable_ani; |
228 | int serialize_regmode; | 228 | int serialize_regmode; |
229 | bool rx_intr_mitigation; | 229 | bool rx_intr_mitigation; |
230 | bool tx_intr_mitigation; | ||
230 | #define SPUR_DISABLE 0 | 231 | #define SPUR_DISABLE 0 |
231 | #define SPUR_ENABLE_IOCTL 1 | 232 | #define SPUR_ENABLE_IOCTL 1 |
232 | #define SPUR_ENABLE_EEPROM 2 | 233 | #define SPUR_ENABLE_EEPROM 2 |
@@ -549,6 +550,7 @@ struct ath_hw_ops { | |||
549 | struct ath9k_channel *chan, | 550 | struct ath9k_channel *chan, |
550 | u8 rxchainmask, | 551 | u8 rxchainmask, |
551 | bool longcal); | 552 | bool longcal); |
553 | bool (*get_isr)(struct ath_hw *ah, enum ath9k_int *masked); | ||
552 | }; | 554 | }; |
553 | 555 | ||
554 | struct ath_hw { | 556 | struct ath_hw { |
@@ -810,11 +812,6 @@ void ath9k_hw_set_sta_beacon_timers(struct ath_hw *ah, | |||
810 | 812 | ||
811 | bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode); | 813 | bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode); |
812 | 814 | ||
813 | /* Interrupt Handling */ | ||
814 | bool ath9k_hw_intrpend(struct ath_hw *ah); | ||
815 | bool ath9k_hw_getisr(struct ath_hw *ah, enum ath9k_int *masked); | ||
816 | enum ath9k_int ath9k_hw_set_interrupts(struct ath_hw *ah, enum ath9k_int ints); | ||
817 | |||
818 | /* Generic hw timer primitives */ | 815 | /* Generic hw timer primitives */ |
819 | struct ath_gen_timer *ath_gen_timer_alloc(struct ath_hw *ah, | 816 | struct ath_gen_timer *ath_gen_timer_alloc(struct ath_hw *ah, |
820 | void (*trigger)(void *), | 817 | void (*trigger)(void *), |