diff options
author | sam <sam@FreeBSD.org> | 2006-07-11 17:32:55 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-07-11 17:32:55 +0000 |
commit | 11967a8fd2b65ede29d8307238fc79753854edc5 (patch) | |
tree | 17969a192acdfa1aaff5086243599423a3d171c7 /sys | |
parent | 37f24aa7fa24ac3435306e5b136a8c37ddc02206 (diff) | |
download | FreeBSD-src-11967a8fd2b65ede29d8307238fc79753854edc5.zip FreeBSD-src-11967a8fd2b65ede29d8307238fc79753854edc5.tar.gz |
must cast through uintptr_t for alpha
Diffstat (limited to 'sys')
-rw-r--r-- | sys/contrib/dev/ath/freebsd/ah_osdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/contrib/dev/ath/freebsd/ah_osdep.c b/sys/contrib/dev/ath/freebsd/ah_osdep.c index 823ee39..df76896 100644 --- a/sys/contrib/dev/ath/freebsd/ah_osdep.c +++ b/sys/contrib/dev/ath/freebsd/ah_osdep.c @@ -266,7 +266,7 @@ void ath_hal_reg_write(struct ath_hal *ah, u_int32_t reg, u_int32_t val) { bus_space_tag_t tag = BUSTAG(ah); - bus_space_handle_t h = (bus_space_handle_t) ah->ah_sh; + bus_space_handle_t h = (bus_space_handle_t)(uintptr_t) ah->ah_sh; if (ath_hal_alq) { struct ale *ale = ath_hal_alq_get(ah); @@ -290,7 +290,7 @@ u_int32_t ath_hal_reg_read(struct ath_hal *ah, u_int32_t reg) { bus_space_tag_t tag = BUSTAG(ah); - bus_space_handle_t h = (bus_space_handle_t) ah->ah_sh; + bus_space_handle_t h = (bus_space_handle_t)(uintptr_t) ah->ah_sh; u_int32_t val; #if _BYTE_ORDER == _BIG_ENDIAN @@ -342,7 +342,7 @@ void ath_hal_reg_write(struct ath_hal *ah, u_int32_t reg, u_int32_t val) { bus_space_tag_t tag = BUSTAG(ah); - bus_space_handle_t h = (bus_space_handle_t) ah->ah_sh; + bus_space_handle_t h = (bus_space_handle_t)(uintptr_t) ah->ah_sh; #if _BYTE_ORDER == _BIG_ENDIAN if (reg >= 0x4000 && reg < 0x5000) @@ -356,7 +356,7 @@ u_int32_t ath_hal_reg_read(struct ath_hal *ah, u_int32_t reg) { bus_space_tag_t tag = BUSTAG(ah); - bus_space_handle_t h = (bus_space_handle_t) ah->ah_sh; + bus_space_handle_t h = (bus_space_handle_t)(uintptr_t) ah->ah_sh; u_int32_t val; #if _BYTE_ORDER == _BIG_ENDIAN |