#336: compilation error from ah_osdep.h, compiled for linux 2.4.24, xscale-
ixp425, big endian.
-------------------------------+--------------------------------------------
Reporter: anonymous | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: madwifi: HAL | Version: trunk
Resolution: | Keywords:
Patch_attached: 1 |
-------------------------------+--------------------------------------------
Comment (by anonymous):
I did checkout from r1447, modified as in diff and tested for my board.
>diff -Nurb madwifi-ng/hal/linux/ah_osdep.h madwifi-ng-
work/hal/linux/ah_osdep.h >ah_osdep_h.diff
>cat ah_osdep_h.diff for r1447
{{{
--- madwifi-ng/hal/linux/ah_osdep.h 2006-02-10 13:17:20.000000000
-0800
+++ madwifi-ng-work/hal/linux/ah_osdep.h 2006-02-10
11:58:18.000000000 -0800
@@ -167,14 +167,15 @@
#define _OS_REG_WRITE(_ah, _reg, _val) do {
\
if ( (_reg) >= 0x4000 && (_reg) < 0x5000)
\
- writel((_val), (io_addr_t)((_ah)->ah_sh + (_reg)));\
+ *((volatile u_int32_t *)((_ah)->ah_sh + (_reg))) = \
+ __bswap32((_val)); \
else
\
- writel(__bswap32(_val), (io_addr_t)((_ah)->ah_sh + (_reg)));
\
+ *((volatile u_int32_t *)((_ah)->ah_sh + (_reg))) = (_val); \
} while (0)
#define _OS_REG_READ(_ah, _reg) \
(((_reg) >= 0x4000 && (_reg) < 0x5000) ?
\
- readl((io_addr_t)((_ah)->ah_sh + (_reg))) : \
- __bswap32(readl((io_addr_t)((_ah)->ah_sh + (_reg)))))
+ __bswap32(*((volatile u_int32_t *)((_ah)->ah_sh + (_reg)))) :
\
+ *((volatile u_int32_t *)((_ah)->ah_sh + (_reg))))
#else /* normal case */
}}}
--
Ticket URL: <http://madwifi.org/ticket/336>
MadWifi <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity