From 21dcecf9f153e5319e9589dba6e52bae3634333a Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 29 Mar 2007 12:31:58 +0000 Subject: 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@ --- sys/dev/ic/acxvar.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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 @@ -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) -- cgit v1.2.3