From 2b020858f9a6696cda5ced4ce88284962d075327 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Tue, 25 Jan 2011 05:41:36 +0000 Subject: [PATCH] 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. --- sys/dev/ath/ath_hal/ah_eeprom_v4k.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ath/ath_hal/ah_eeprom_v4k.h b/sys/dev/ath/ath_hal/ah_eeprom_v4k.h index ddb41ed66a4c..1261a1cd5b15 100644 --- a/sys/dev/ath/ath_hal/ah_eeprom_v4k.h +++ b/sys/dev/ath/ath_hal/ah_eeprom_v4k.h @@ -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;