Author: adrian
Date: Sat May  7 18:42:41 2011
New Revision: 221608
URL: http://svn.freebsd.org/changeset/base/221608

Log:
  Fix the IS_5416 checks to actually work correctly.
  
  I've verified that my AR5416 revision 2.2 (minor revision 0x0A) now
  matches the correct checks.

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 Sat May  7 17:59:07 2011        
(r221607)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416reg.h Sat May  7 18:42:41 2011        
(r221608)
@@ -601,9 +601,9 @@
 #define        AR_RAD2122_SREV_MAJOR           0xf0    /* Fowl: 2+5G/2x2 */
 
 /* Test macro for owl 1.0 */
-#define        IS_5416V1(_ah)  (AR_SREV_OWL((ah)) && (_ah)->ah_macRev == 
AR_SREV_REVISION_OWL_10)
-#define        IS_5416V2(_ah)  (AR_SREV_OWL((ah)) && (_ah)->ah_macRev >= 
AR_SREV_REVISION_OWL_20)
-#define        IS_5416V2_2(_ah)        (AR_SREV_OWL((ah)) && (_ah)->ah_macRev 
== AR_SREV_REVISION_OWL_22)
+#define        IS_5416V1(_ah)  (AR_SREV_OWL((_ah)) && 
AH_PRIVATE((_ah))->ah_macRev == AR_SREV_REVISION_OWL_10)
+#define        IS_5416V2(_ah)  (AR_SREV_OWL((_ah)) && 
AH_PRIVATE((_ah))->ah_macRev >= AR_SREV_REVISION_OWL_20)
+#define        IS_5416V2_2(_ah)        (AR_SREV_OWL((_ah)) && 
AH_PRIVATE((_ah))->ah_macRev == AR_SREV_REVISION_OWL_22)
 
 /* Misc; compatibility with Atheros HAL */
 #define        AR_SREV_5416_V20_OR_LATER(_ah)  (AR_SREV_HOWL((_ah)) || 
AR_SREV_OWL_20_OR_LATER(_ah))
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to