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