Author: adrian
Date: Wed Nov  9 21:41:18 2011
New Revision: 227408
URL: http://svn.freebsd.org/changeset/base/227408

Log:
  Commit a missing fix - the AR_SREV_KIWI_10_OR_LATER() check.

Modified:
  head/sys/dev/ath/ath_hal/ar5416/ar5416reg.h

Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416reg.h
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5416/ar5416reg.h Wed Nov  9 21:01:50 2011        
(r227407)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416reg.h Wed Nov  9 21:41:18 2011        
(r227408)
@@ -612,10 +612,10 @@
 #define        AR_XSREV_REVISION_KITE_11       1       /* Kite 1.1 */
 #define        AR_XSREV_REVISION_KITE_12       2       /* Kite 1.2 */
 #define        AR_XSREV_VERSION_KIWI           0x180   /* Kiwi (AR9287) */
-#define        AR_XSREV_REVISION_KIWI_10       0
-#define        AR_XSREV_REVISION_KIWI_11       1
-#define        AR_XSREV_REVISION_KIWI_12       2
-#define        AR_XSREV_REVISION_KIWI_13       3
+#define        AR_XSREV_REVISION_KIWI_10       0       /* Kiwi 1.0 */
+#define        AR_XSREV_REVISION_KIWI_11       1       /* Kiwi 1.1 */
+#define        AR_XSREV_REVISION_KIWI_12       2       /* Kiwi 1.2 */
+#define        AR_XSREV_REVISION_KIWI_13       3       /* Kiwi 1.3 */
 
 /* Owl (AR5416) */
 #define        AR_SREV_OWL(_ah) \
@@ -701,6 +701,10 @@
 #define AR_SREV_KIWI(_ah) \
        (AH_PRIVATE((_ah))->ah_macVersion == AR_XSREV_VERSION_KIWI)
 
+#define AR_SREV_KIWI_10_OR_LATER(_ah) \
+       (AH_PRIVATE((_ah))->ah_macVersion >= AR_XSREV_VERSION_KIWI)
+
+/* XXX TODO: make these handle macVersion > Kiwi */
 #define AR_SREV_KIWI_11_OR_LATER(_ah) \
        (AR_SREV_KIWI(_ah) && \
         AH_PRIVATE((_ah))->ah_macRev >= AR_XSREV_REVISION_KIWI_11)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to