Commit 8af45965 authored by Sujith Manoharan's avatar Sujith Manoharan Committed by John W. Linville

ath9k: Add version macros for AR9565 1.1

Signed-off-by: default avatarSujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ae4a9a10
...@@ -809,6 +809,8 @@ ...@@ -809,6 +809,8 @@
#define AR_SREV_REVISION_9462_21 3 #define AR_SREV_REVISION_9462_21 3
#define AR_SREV_VERSION_9565 0x2C0 #define AR_SREV_VERSION_9565 0x2C0
#define AR_SREV_REVISION_9565_10 0 #define AR_SREV_REVISION_9565_10 0
#define AR_SREV_REVISION_9565_101 1
#define AR_SREV_REVISION_9565_11 2
#define AR_SREV_VERSION_9550 0x400 #define AR_SREV_VERSION_9550 0x400
#define AR_SREV_5416(_ah) \ #define AR_SREV_5416(_ah) \
...@@ -927,10 +929,18 @@ ...@@ -927,10 +929,18 @@
#define AR_SREV_9565(_ah) \ #define AR_SREV_9565(_ah) \
(((_ah)->hw_version.macVersion == AR_SREV_VERSION_9565)) (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9565))
#define AR_SREV_9565_10(_ah) \ #define AR_SREV_9565_10(_ah) \
(((_ah)->hw_version.macVersion == AR_SREV_VERSION_9565) && \ (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9565) && \
((_ah)->hw_version.macRev == AR_SREV_REVISION_9565_10)) ((_ah)->hw_version.macRev == AR_SREV_REVISION_9565_10))
#define AR_SREV_9565_101(_ah) \
(((_ah)->hw_version.macVersion == AR_SREV_VERSION_9565) && \
((_ah)->hw_version.macRev == AR_SREV_REVISION_9565_101))
#define AR_SREV_9565_11(_ah) \
(((_ah)->hw_version.macVersion == AR_SREV_VERSION_9565) && \
((_ah)->hw_version.macRev == AR_SREV_REVISION_9565_11))
#define AR_SREV_9565_11_OR_LATER(_ah) \
(((_ah)->hw_version.macVersion == AR_SREV_VERSION_9565) && \
((_ah)->hw_version.macRev >= AR_SREV_REVISION_9565_11))
#define AR_SREV_9550(_ah) \ #define AR_SREV_9550(_ah) \
(((_ah)->hw_version.macVersion == AR_SREV_VERSION_9550)) (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9550))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment