#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: 0 |
-------------------------------+--------------------------------------------
Changes (by anonymous):
* patch_attached: => 0
Comment:
Sorry for the delay:
{{{
diff ah_osdep.h_good ah_osdep.h_bad > mypatch
>cat mypatch
156c156,157
< #if ( defined(CONFIG_PPC_PMAC) || defined(CONFIG_ARCH_IXP425) ||
defined(CONFIG_ARCH_IXP4XX))
---
> #if ( defined(CONFIG_PPC_PMAC) ||
> defined(CONFIG_ARCH_IXP425) || defined(CONFIG_ARCH_IXP4XX))
172,173c173
< *((volatile u_int32_t *)((_ah)->ah_sh + (_reg))) = \
< __bswap32((_val)); \
---
> writel((_val), (io_addr_t)((_ah)->ah_sh + (_reg)));\
175c175
< *((volatile u_int32_t *)((_ah)->ah_sh + (_reg))) = (_val); \
---
> writel(__bswap32(_val), (io_addr_t)((_ah)->ah_sh + (_reg)));
\
178,180c178,181
< (((_reg) >= 0x4000 && (_reg) < 0x5000) ? \
< __bswap32(*((volatile u_int32_t *)((_ah)->ah_sh + (_reg))))
: \
< *((volatile u_int32_t *)((_ah)->ah_sh + (_reg))))
---
> (((_reg) >= 0x4000 && (_reg) < 0x5000) ?
\
> readl((io_addr_t)((_ah)->ah_sh + (_reg))) : \
> __bswap32(readl((io_addr_t)((_ah)->ah_sh + (_reg)))))
>
}}}
--
Ticket URL: <http://madwifi.org/ticket/336>
MadWifi <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity