summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2003-05-21 19:32:21 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2003-05-21 19:32:21 +0000
commit6c307dca52a01811a9fbe61ce8054a034e1db4d1 (patch)
treee682d4c3528ef196af957b98ce64f25df3a782b4 /sys/dev
parent6626959f5af0b0b914ecf4ac5e871c8de901b5be (diff)
Endian fix for this driver, now works on big endian machines, ok mickey@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/auvia.c6
1 files changed, 3 insertions, 3 deletions
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++;
}