From 6c307dca52a01811a9fbe61ce8054a034e1db4d1 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Wed, 21 May 2003 19:32:21 +0000 Subject: Endian fix for this driver, now works on big endian machines, ok mickey@ --- sys/dev/pci/auvia.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/pci') diff --git a/sys/dev/pci/auvia.c b/sys/dev/pci/auvia.c index 6e2036a1a0a..ececa456711 100644 --- a/sys/dev/pci/auvia.c +++ b/sys/dev/pci/auvia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auvia.c,v 1.24 2003/04/27 11:22:53 ho Exp $ */ +/* $OpenBSD: auvia.c,v 1.25 2003/05/21 19:32:20 drahn Exp $ */ /* $NetBSD: auvia.c,v 1.7 2000/11/15 21:06:33 jdolecek Exp $ */ /*- @@ -851,10 +851,10 @@ auvia_build_dma_ops(struct auvia_softc *sc, struct auvia_softc_chan *ch, op = ch->sc_dma_ops; while (l) { - op->ptr = s; + op->ptr = htole32(s); l = l - blksize; /* if last block */ - op->flags = (l? AUVIA_DMAOP_FLAG : AUVIA_DMAOP_EOL) | blksize; + op->flags = htole32((l? AUVIA_DMAOP_FLAG : AUVIA_DMAOP_EOL) | blksize); s += blksize; op++; } -- cgit v1.2.3