aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/reg.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-03-06 03:08:52 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-03-16 18:09:32 -0400
commitd4376ebe168024695f15bfdf603ea6f083dc80f8 (patch)
tree72375749e7b6ae1e5f305f553dc7dddd0906fc99 /drivers/net/wireless/ath9k/reg.h
parenta8c96d3b225d4c9e6ff341923e3f76de401c75b2 (diff)
ath9k: move ar9100 version checking macros into a more appropriate place
All other version checking macros are in a common location within the reg.h file. The AR_SREV_9100_OR_LATER macro is wrong currently, but will be fixed with the next patch. Changes-licensed-under: ISC Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
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) \