summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ic/ar5210var.h6
-rw-r--r--sys/dev/ic/ar5211var.h6
-rw-r--r--sys/dev/ic/ar5212var.h6
-rw-r--r--sys/dev/ic/ar5xxx.h6
4 files changed, 9 insertions, 15 deletions
diff --git a/sys/dev/ic/ar5210var.h b/sys/dev/ic/ar5210var.h
index 1615b348539..c2af624a9cd 100644
--- a/sys/dev/ic/ar5210var.h
+++ b/sys/dev/ic/ar5210var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5210var.h,v 1.8 2005/04/08 22:02:49 reyk Exp $ */
+/* $OpenBSD: ar5210var.h,v 1.9 2005/04/09 00:20:42 reyk Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net>
@@ -35,9 +35,7 @@
#if BYTE_ORDER == BIG_ENDIAN
#define AR5K_AR5210_INIT_CFG ( \
- AR5K_AR5210_CFG_SWTD | AR5K_AR5210_CFG_SWTB | \
- AR5K_AR5210_CFG_SWRD | AR5K_AR5210_CFG_SWRB | \
- AR5K_AR5210_CFG_SWRG \
+ AR5K_AR5210_CFG_SWTD | AR5K_AR5210_CFG_SWRD \
)
#else
#define AR5K_AR5210_INIT_CFG 0x00000000
diff --git a/sys/dev/ic/ar5211var.h b/sys/dev/ic/ar5211var.h
index c316b0409dc..76fbd35f4ba 100644
--- a/sys/dev/ic/ar5211var.h
+++ b/sys/dev/ic/ar5211var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5211var.h,v 1.2 2005/04/08 22:02:49 reyk Exp $ */
+/* $OpenBSD: ar5211var.h,v 1.3 2005/04/09 00:20:42 reyk Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net>
@@ -35,9 +35,7 @@
#if BYTE_ORDER == BIG_ENDIAN
#define AR5K_AR5211_INIT_CFG ( \
- AR5K_AR5211_CFG_SWTD | AR5K_AR5211_CFG_SWTB | \
- AR5K_AR5211_CFG_SWRD | AR5K_AR5211_CFG_SWRB | \
- AR5K_AR5211_CFG_SWRG \
+ AR5K_AR5211_CFG_SWTD | AR5K_AR5211_CFG_SWRD \
)
#else
#define AR5K_AR5211_INIT_CFG 0x00000000
diff --git a/sys/dev/ic/ar5212var.h b/sys/dev/ic/ar5212var.h
index d4c5c1a6aed..eaeaec27073 100644
--- a/sys/dev/ic/ar5212var.h
+++ b/sys/dev/ic/ar5212var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5212var.h,v 1.5 2005/04/08 22:02:49 reyk Exp $ */
+/* $OpenBSD: ar5212var.h,v 1.6 2005/04/09 00:20:42 reyk Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net>
@@ -35,9 +35,7 @@
#if BYTE_ORDER == BIG_ENDIAN
#define AR5K_AR5212_INIT_CFG ( \
- AR5K_AR5212_CFG_SWTD | AR5K_AR5212_CFG_SWTB | \
- AR5K_AR5212_CFG_SWRD | AR5K_AR5212_CFG_SWRB | \
- AR5K_AR5212_CFG_SWRG \
+ AR5K_AR5212_CFG_SWTD | AR5K_AR5212_CFG_SWRD \
)
#else
#define AR5K_AR5212_INIT_CFG 0x00000000
diff --git a/sys/dev/ic/ar5xxx.h b/sys/dev/ic/ar5xxx.h
index fbf9299463b..af08b56d732 100644
--- a/sys/dev/ic/ar5xxx.h
+++ b/sys/dev/ic/ar5xxx.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5xxx.h,v 1.17 2005/04/08 22:02:49 reyk Exp $ */
+/* $OpenBSD: ar5xxx.h,v 1.18 2005/04/09 00:20:42 reyk Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net>
@@ -1311,9 +1311,9 @@ typedef HAL_BOOL (ar5k_rfgain_t)
*/
#define AR5K_REG_WRITE(_reg, _val) \
- bus_space_write_4(hal->ah_st, hal->ah_sh, (_reg), (_val))
+ bus_space_write_4(hal->ah_st, hal->ah_sh, (_reg), htole32(_val))
#define AR5K_REG_READ(_reg) \
- ((u_int32_t)bus_space_read_4(hal->ah_st, hal->ah_sh, (_reg)))
+ (letoh32(bus_space_read_4(hal->ah_st, hal->ah_sh, (_reg))))
#define AR5K_REG_SM(_val, _flags) \
(((_val) << _flags##_S) & (_flags))