|
|
|
@ -225,27 +225,21 @@ static void LeadEdgeCorrection(void);
|
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
// Endian Manipulation macros
|
|
|
|
|
#if (__BYTE_ORDER == __LITTLE_ENDIAN)
|
|
|
|
|
#define le64_to_cpu(__x) __x
|
|
|
|
|
#define le32_to_cpu(__x) __x
|
|
|
|
|
#define le16_to_cpu(__x) __x
|
|
|
|
|
#define le32_to_cpu(__x) __x
|
|
|
|
|
#define be16_to_cpu(__x) __builtin_bswap16(__x)
|
|
|
|
|
#define be32_to_cpu(__x) __builtin_bswap32(__x)
|
|
|
|
|
#define be64_to_cpu(__x) __builtin_bswap64(__x)
|
|
|
|
|
#else
|
|
|
|
|
#define le16_to_cpu(__x) __builtin_bswap16(__x)
|
|
|
|
|
#define le32_to_cpu(__x) __builtin_bswap32(__x)
|
|
|
|
|
#define le64_to_cpu(__x) __builtin_bswap64(__x)
|
|
|
|
|
#define be64_to_cpu(__x) __x
|
|
|
|
|
#define be32_to_cpu(__x) __x
|
|
|
|
|
#define be16_to_cpu(__x) __x
|
|
|
|
|
#define be32_to_cpu(__x) __x
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define cpu_to_le16 le16_to_cpu
|
|
|
|
|
#define cpu_to_le32 le32_to_cpu
|
|
|
|
|
#define cpu_to_be16 be16_to_cpu
|
|
|
|
|
#define cpu_to_be32 be32_to_cpu
|
|
|
|
|
#define cpu_to_le64 le64_to_cpu
|
|
|
|
|
#define cpu_to_be64 be64_to_cpu
|
|
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
// Data declarations
|
|
|
|
|