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.h53
1 files changed, 30 insertions, 23 deletions
diff --git a/drivers/net/wireless/ath9k/reg.h b/drivers/net/wireless/ath9k/reg.h
index c967b7926e33..17ed190349a5 100644
--- a/drivers/net/wireless/ath9k/reg.h
+++ b/drivers/net/wireless/ath9k/reg.h
@@ -160,6 +160,7 @@
160 160
161#define AR_SREV_VERSION_9100 0x014 161#define AR_SREV_VERSION_9100 0x014
162 162
163#define AR_SREV_9100(ah) ((ah->hw_version.macVersion) == AR_SREV_VERSION_9100)
163#define AR_SREV_5416_V20_OR_LATER(_ah) \ 164#define AR_SREV_5416_V20_OR_LATER(_ah) \
164 (AR_SREV_9100((_ah)) || AR_SREV_5416_20_OR_LATER(_ah)) 165 (AR_SREV_9100((_ah)) || AR_SREV_5416_20_OR_LATER(_ah))
165#define AR_SREV_5416_V22_OR_LATER(_ah) \ 166#define AR_SREV_5416_V22_OR_LATER(_ah) \
@@ -746,44 +747,50 @@
746#define AR_SREV_REVISION_9285_12 2 747#define AR_SREV_REVISION_9285_12 2
747 748
748#define AR_SREV_9100_OR_LATER(_ah) \ 749#define AR_SREV_9100_OR_LATER(_ah) \
749 (((_ah)->ah_macVersion >= AR_SREV_VERSION_5416_PCIE)) 750 (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_5416_PCIE))
750#define AR_SREV_5416_20_OR_LATER(_ah) \ 751#define AR_SREV_5416_20_OR_LATER(_ah) \
751 (((_ah)->ah_macVersion >= AR_SREV_VERSION_9160) || \ 752 (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9160) || \
752 ((_ah)->ah_macRev >= AR_SREV_REVISION_5416_20)) 753 ((_ah)->hw_version.macRev >= AR_SREV_REVISION_5416_20))
753#define AR_SREV_5416_22_OR_LATER(_ah) \ 754#define AR_SREV_5416_22_OR_LATER(_ah) \
754 (((_ah)->ah_macVersion >= AR_SREV_VERSION_9160) || \ 755 (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9160) || \
755 ((_ah)->ah_macRev >= AR_SREV_REVISION_5416_22)) 756 ((_ah)->hw_version.macRev >= AR_SREV_REVISION_5416_22))
756#define AR_SREV_9160(_ah) \ 757#define AR_SREV_9160(_ah) \
757 (((_ah)->ah_macVersion == AR_SREV_VERSION_9160)) 758 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9160))
758#define AR_SREV_9160_10_OR_LATER(_ah) \ 759#define AR_SREV_9160_10_OR_LATER(_ah) \
759 (((_ah)->ah_macVersion >= AR_SREV_VERSION_9160)) 760 (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9160))
760#define AR_SREV_9160_11(_ah) \ 761#define AR_SREV_9160_11(_ah) \
761 (AR_SREV_9160(_ah) && ((_ah)->ah_macRev == AR_SREV_REVISION_9160_11)) 762 (AR_SREV_9160(_ah) && \
763 ((_ah)->hw_version.macRev == AR_SREV_REVISION_9160_11))
762#define AR_SREV_9280(_ah) \ 764#define AR_SREV_9280(_ah) \
763 (((_ah)->ah_macVersion == AR_SREV_VERSION_9280)) 765 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9280))
764#define AR_SREV_9280_10_OR_LATER(_ah) \ 766#define AR_SREV_9280_10_OR_LATER(_ah) \
765 (((_ah)->ah_macVersion >= AR_SREV_VERSION_9280)) 767 (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9280))
766#define AR_SREV_9280_20(_ah) \ 768#define AR_SREV_9280_20(_ah) \
767 (((_ah)->ah_macVersion == AR_SREV_VERSION_9280) && \ 769 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9280) && \
768 ((_ah)->ah_macRev >= AR_SREV_REVISION_9280_20)) 770 ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9280_20))
769#define AR_SREV_9280_20_OR_LATER(_ah) \ 771#define AR_SREV_9280_20_OR_LATER(_ah) \
770 (((_ah)->ah_macVersion > AR_SREV_VERSION_9280) || \ 772 (((_ah)->hw_version.macVersion > AR_SREV_VERSION_9280) || \
771 (((_ah)->ah_macVersion == AR_SREV_VERSION_9280) && \ 773 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9280) && \
772 ((_ah)->ah_macRev >= AR_SREV_REVISION_9280_20))) 774 ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9280_20)))
773 775
774#define AR_SREV_9285(_ah) (((_ah)->ah_macVersion == AR_SREV_VERSION_9285)) 776#define AR_SREV_9285(_ah) \
777 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9285))
775#define AR_SREV_9285_10_OR_LATER(_ah) \ 778#define AR_SREV_9285_10_OR_LATER(_ah) \
776 (((_ah)->ah_macVersion >= AR_SREV_VERSION_9285)) 779 (((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9285))
777#define AR_SREV_9285_11(_ah) \ 780#define AR_SREV_9285_11(_ah) \
778 (AR_SREV_9280(ah) && ((_ah)->ah_macRev == AR_SREV_REVISION_9285_11)) 781 (AR_SREV_9280(ah) && \
782 ((_ah)->hw_version.macRev == AR_SREV_REVISION_9285_11))
779#define AR_SREV_9285_11_OR_LATER(_ah) \ 783#define AR_SREV_9285_11_OR_LATER(_ah) \
780 (((_ah)->ah_macVersion > AR_SREV_VERSION_9285) || \ 784 (((_ah)->hw_version.macVersion > AR_SREV_VERSION_9285) || \
781 (AR_SREV_9285(ah) && ((_ah)->ah_macRev >= AR_SREV_REVISION_9285_11))) 785 (AR_SREV_9285(ah) && ((_ah)->hw_version.macRev >= \
786 AR_SREV_REVISION_9285_11)))
782#define AR_SREV_9285_12(_ah) \ 787#define AR_SREV_9285_12(_ah) \
783 (AR_SREV_9280(ah) && ((_ah)->ah_macRev == AR_SREV_REVISION_9285_12)) 788 (AR_SREV_9280(ah) && \
789 ((_ah)->hw_version.macRev == AR_SREV_REVISION_9285_12))
784#define AR_SREV_9285_12_OR_LATER(_ah) \ 790#define AR_SREV_9285_12_OR_LATER(_ah) \
785 (((_ah)->ah_macVersion > AR_SREV_VERSION_9285) || \ 791 (((_ah)->hw_version.macVersion > AR_SREV_VERSION_9285) || \
786 (AR_SREV_9285(ah) && ((_ah)->ah_macRev >= AR_SREV_REVISION_9285_12))) 792 (AR_SREV_9285(ah) && ((_ah)->hw_version.macRev >= \
793 AR_SREV_REVISION_9285_12)))
787 794
788#define AR_RADIO_SREV_MAJOR 0xf0 795#define AR_RADIO_SREV_MAJOR 0xf0
789#define AR_RAD5133_SREV_MAJOR 0xc0 796#define AR_RAD5133_SREV_MAJOR 0xc0