5 #if (AH_BYTE_ORDER == AH_BIG_ENDIAN)
6 #define is_reg_le(__reg) ((0x4000 <= (__reg) && (__reg) < 0x5000))
8 -#define is_reg_le(__reg) 1
11 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
12 #define _OS_REG_WRITE(_ah, _reg, _val) do { \
15 readl((_ah)->ah_sh + (_reg)) : \
16 cpu_to_le32(readl((_ah)->ah_sh + (_reg))))
17 #endif /* KERNEL_VERSION(2,6,12) */
18 +#else /* AH_BYTE_ORDER != AH_BIG_ENDIAN */
19 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
20 +#define _OS_REG_WRITE(_ah, _reg, _val) do { \
21 + iowrite32((_val), (_ah)->ah_sh + (_reg)); \
23 +#define _OS_REG_READ(_ah, _reg) \
24 + ioread32((_ah)->ah_sh + (_reg))
26 +#define _OS_REG_WRITE(_ah, _reg, _val) do { \
27 + writel((_val), (_ah)->ah_sh + (_reg)); \
29 +#define _OS_REG_READ(_ah, _reg) \
30 + readl((_ah)->ah_sh + (_reg))
31 +#endif /* KERNEL_VERSION(2,6,12) */
32 +#endif /* AH_BYTE_ORDER != AH_BIG_ENDIAN */
35 * The functions in this section are not intended to be invoked by MadWifi