From: Oleksij Rempel Date: Sun, 17 Mar 2013 16:37:21 +0000 (+0100) Subject: build fix: remove byte order/swapping support X-Git-Tag: 1.3.2~12^2~27 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2ca45ec9fb6d1a7fb2d2a3c10ca4eee5e05ecd32;p=open-ath9k-htc-firmware.git build fix: remove byte order/swapping support currently AH_BYTE_ORDER is not defined. So this parst is unused any way. Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/wlan/ah_osdep.h b/target_firmware/wlan/ah_osdep.h index d62de3d..58a07ec 100755 --- a/target_firmware/wlan/ah_osdep.h +++ b/target_firmware/wlan/ah_osdep.h @@ -141,41 +141,12 @@ struct ath_hal; extern a_uint32_t __ahdecl ath_hal_getuptime(struct ath_hal *); #define OS_GETUPTIME(_ah) ath_hal_getuptime(_ah) -/* - * Byte order/swapping support. - */ -#define AH_LITTLE_ENDIAN 1234 -#define AH_BIG_ENDIAN 4321 - -#if AH_BYTE_ORDER == AH_BIG_ENDIAN -/* - * This could be optimized but since we only use it for - * a few registers there's little reason to do so. - */ -#ifndef __bswap32 -static inline a_uint32_t -__bswap32(a_uint32_t _x) -{ - return ((a_uint32_t)( - (((const a_uint8_t *)(&_x))[0] ) | - (((const a_uint8_t *)(&_x))[1]<< 8) | - (((const a_uint8_t *)(&_x))[2]<<16) | - (((const a_uint8_t *)(&_x))[3]<<24)) - ); -} -#endif -#ifndef __bswap16 -#define __bswap16(_x) ( (a_uint16_t)( (((const a_uint8_t *)(&_x))[0] ) |\ - ( ( (const a_uint8_t *)( &_x ) )[1]<< 8) ) ) -#endif -#else #ifndef __bswap32 #define __bswap32(_x) (_x) #endif #ifndef __bswap16 #define __bswap16(_x) (_x) #endif -#endif #define OS_REG_WRITE(_ah, _reg, _val) ath_hal_reg_write_target(_ah, _reg, _val) #define OS_REG_READ(_ah, _reg) ath_hal_reg_read_target(_ah, _reg)