summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-07-11 17:32:55 +0000
committersam <sam@FreeBSD.org>2006-07-11 17:32:55 +0000
commit11967a8fd2b65ede29d8307238fc79753854edc5 (patch)
tree17969a192acdfa1aaff5086243599423a3d171c7 /sys
parent37f24aa7fa24ac3435306e5b136a8c37ddc02206 (diff)
downloadFreeBSD-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.c8
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
OpenPOWER on IntegriCloud