diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-03-29 12:31:58 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-03-29 12:31:58 +0000 |
commit | 21dcecf9f153e5319e9589dba6e52bae3634333a (patch) | |
tree | 0d9f7369483a14ab00e7063bfa2a78ba8a4e3c03 /sys/dev/ic/acxvar.h | |
parent | 1f4dde2b1cfbd4676b5e0505afe751d769a427fd (diff) |
Fix yet another endianess bug. bus_space(9) does all the necessary byte order
conversions so there is no need to use htoleXX() before writing the data to
the HW dma registers. With this and the previous acx.c commit acx(4) finaly
works on big endian machines like macppc. OK mglocker@
Diffstat (limited to 'sys/dev/ic/acxvar.h')
-rw-r--r-- | sys/dev/ic/acxvar.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/acxvar.h b/sys/dev/ic/acxvar.h index 1232f980936..ef407ccb828 100644 --- a/sys/dev/ic/acxvar.h +++ b/sys/dev/ic/acxvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: acxvar.h,v 1.14 2006/08/19 23:17:12 mglocker Exp $ */ +/* $OpenBSD: acxvar.h,v 1.15 2007/03/29 12:31:57 claudio Exp $ */ /* * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> @@ -121,9 +121,9 @@ extern int acxdebug; #define FW_TXDESC_SETFIELD_1(sc, mb, field, val) \ FW_TXDESC_SETFIELD(sc, mb, field, val, 1) #define FW_TXDESC_SETFIELD_2(sc, mb, field, val) \ - FW_TXDESC_SETFIELD(sc, mb, field, htole16(val), 2) + FW_TXDESC_SETFIELD(sc, mb, field, val, 2) #define FW_TXDESC_SETFIELD_4(sc, mb, field, val) \ - FW_TXDESC_SETFIELD(sc, mb, field, htole32(val), 4) + FW_TXDESC_SETFIELD(sc, mb, field, val, 4) #define FW_TXDESC_GETFIELD_1(sc, mb, field) \ FW_TXDESC_GETFIELD(sc, mb, field, 1) |