aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/reg.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath9k/reg.h')
-rw-r--r--drivers/net/wireless/ath9k/reg.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath9k/reg.h b/drivers/net/wireless/ath9k/reg.h
index 0609e2e5eba8..1be4c71935ea 100644
--- a/drivers/net/wireless/ath9k/reg.h
+++ b/drivers/net/wireless/ath9k/reg.h
@@ -158,10 +158,6 @@
158#define AR_CST_TIMEOUT_LIMIT 0xFFFF0000 158#define AR_CST_TIMEOUT_LIMIT 0xFFFF0000
159#define AR_CST_TIMEOUT_LIMIT_S 16 159#define AR_CST_TIMEOUT_LIMIT_S 16
160 160
161#define AR_SREV_VERSION_9100 0x014
162
163#define AR_SREV_9100(ah) ((ah->hw_version.macVersion) == AR_SREV_VERSION_9100)
164
165#define AR_ISR 0x0080 161#define AR_ISR 0x0080
166#define AR_ISR_RXOK 0x00000001 162#define AR_ISR_RXOK 0x00000001
167#define AR_ISR_RXDESC 0x00000002 163#define AR_ISR_RXDESC 0x00000002
@@ -730,6 +726,7 @@
730#define AR_SREV_REVISION_5416_10 0 726#define AR_SREV_REVISION_5416_10 0
731#define AR_SREV_REVISION_5416_20 1 727#define AR_SREV_REVISION_5416_20 1
732#define AR_SREV_REVISION_5416_22 2 728#define AR_SREV_REVISION_5416_22 2
729#define AR_SREV_VERSION_9100 0x14
733#define AR_SREV_VERSION_9160 0x40 730#define AR_SREV_VERSION_9160 0x40
734#define AR_SREV_REVISION_9160_10 0 731#define AR_SREV_REVISION_9160_10 0
735#define AR_SREV_REVISION_9160_11 1 732#define AR_SREV_REVISION_9160_11 1
@@ -742,9 +739,6 @@
742#define AR_SREV_REVISION_9285_11 1 739#define AR_SREV_REVISION_9285_11 1
743#define AR_SREV_REVISION_9285_12 2 740#define AR_SREV_REVISION_9285_12 2
744 741
745#define AR_SREV_9100_OR_LATER(_ah) \
746 (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_5416_PCIE))
747
748#define AR_SREV_5416(_ah) \ 742#define AR_SREV_5416(_ah) \
749 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCI) || \ 743 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCI) || \
750 ((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCIE)) 744 ((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCIE))
@@ -757,6 +751,11 @@
757 ((_ah)->hw_version.macRev >= AR_SREV_REVISION_5416_22)) || \ 751 ((_ah)->hw_version.macRev >= AR_SREV_REVISION_5416_22)) || \
758 ((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9100)) 752 ((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9100))
759 753
754#define AR_SREV_9100(ah) \
755 ((ah->hw_version.macVersion) == AR_SREV_VERSION_9100)
756#define AR_SREV_9100_OR_LATER(_ah) \
757 (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_5416_PCIE))
758
760#define AR_SREV_9160(_ah) \ 759#define AR_SREV_9160(_ah) \
761 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9160)) 760 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9160))
762#define AR_SREV_9160_10_OR_LATER(_ah) \ 761#define AR_SREV_9160_10_OR_LATER(_ah) \