aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-08-03 23:14:10 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-04 16:44:34 -0400
commitedb1f9152f1f346381336554674f5d443fc5f473 (patch)
treeeb5e21f91d34d772a07e1dac15399fade260d0c3
parent475f5989d4dc359046521cdfe9869cabf8c9fce9 (diff)
ath9k: add ar9271 revision and subrevision ID helpers
These will be used later to add support for ar9271. Cc: Stephen Chen <stephen.chen@atheros.com> Cc: Zhifeng Cai <zhifeng.cai@atheros.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/reg.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/reg.h b/drivers/net/wireless/ath/ath9k/reg.h
index 8302aeb62e5d..37cbf038be4d 100644
--- a/drivers/net/wireless/ath/ath9k/reg.h
+++ b/drivers/net/wireless/ath/ath9k/reg.h
@@ -744,6 +744,9 @@
744#define AR_SREV_VERSION_9287 0x180 744#define AR_SREV_VERSION_9287 0x180
745#define AR_SREV_REVISION_9287_10 0 745#define AR_SREV_REVISION_9287_10 0
746#define AR_SREV_REVISION_9287_11 1 746#define AR_SREV_REVISION_9287_11 1
747#define AR_SREV_VERSION_9271 0x140
748#define AR_SREV_REVISION_9271_10 0
749#define AR_SREV_REVISION_9271_11 1
747 750
748#define AR_SREV_5416(_ah) \ 751#define AR_SREV_5416(_ah) \
749 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCI) || \ 752 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCI) || \
@@ -815,6 +818,15 @@
815 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9287) && \ 818 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9287) && \
816 ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9287_11))) 819 ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9287_11)))
817 820
821#define AR_SREV_9271(_ah) \
822 (((_ah))->hw_version.macVersion == AR_SREV_VERSION_9271)
823#define AR_SREV_9271_10(_ah) \
824 (AR_SREV_9271(_ah) && \
825 ((_ah)->hw_version.macRev == AR_SREV_REVISION_9271_10))
826#define AR_SREV_9271_11(_ah) \
827 (AR_SREV_9271(_ah) && \
828 ((_ah)->hw_version.macRev == AR_SREV_REVISION_9271_11))
829
818#define AR_RADIO_SREV_MAJOR 0xf0 830#define AR_RADIO_SREV_MAJOR 0xf0
819#define AR_RAD5133_SREV_MAJOR 0xc0 831#define AR_RAD5133_SREV_MAJOR 0xc0
820#define AR_RAD2133_SREV_MAJOR 0xd0 832#define AR_RAD2133_SREV_MAJOR 0xd0