Author: adrian
Date: Tue Jan 25 05:41:36 2011
New Revision: 217812
URL: http://svn.freebsd.org/changeset/base/217812

Log:
  Rename this linux-ism __BIG_ENDIAN_BITFIELD macro to something suitable for 
FreeBSD.
  
  Warner has pointed out that FreeBSD's bit orders follow byte orders.

Modified:
  head/sys/dev/ath/ath_hal/ah_eeprom_v4k.h

Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v4k.h
==============================================================================
--- head/sys/dev/ath/ath_hal/ah_eeprom_v4k.h    Tue Jan 25 05:36:29 2011        
(r217811)
+++ head/sys/dev/ath/ath_hal/ah_eeprom_v4k.h    Tue Jan 25 05:41:36 2011        
(r217812)
@@ -91,7 +91,7 @@ typedef struct ModalEepHeader4k {
 
        uint8_t         pdGainOverlap;                          // 1
 
-#ifdef __BIG_ENDIAN_BITFIELD
+#ifdef _BYTE_ORDER == _BIG_ENDIAN
        uint8_t         ob_1:4, ob_0:4;
        uint8_t         db1_1:4, db1_0:4;
 #else
@@ -109,7 +109,7 @@ typedef struct ModalEepHeader4k {
        uint8_t         xatten2Db[AR5416_4K_MAX_CHAINS];        // 1
        uint8_t         xatten2Margin[AR5416_4K_MAX_CHAINS];    // 1
 
-#ifdef __BIG_ENDIAN_BITFIELD
+#ifdef _BYTE_ORDER == _BIG_ENDIAN
         uint8_t db2_1:4, db2_0:4;                              // 1
 #else
        uint8_t db2_0:4, db2_1:4;                               // 1
@@ -117,7 +117,7 @@ typedef struct ModalEepHeader4k {
 
        uint8_t version;                                        // 1
 
-#ifdef __BIG_ENDIAN_BITFIELD
+#ifdef _BYTE_ORDER == _BIG_ENDIAN
        uint8_t ob_3:4, ob_2:4;
        uint8_t antdiv_ctl1:4, ob_4:4;
        uint8_t db1_3:4, db1_2:4;
_______________________________________________
[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