summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authortsutsui <tsutsui@NetBSD.org>2008-01-14 06:32:10 +0000
committertsutsui <tsutsui@NetBSD.org>2008-01-14 06:32:10 +0000
commite88df705a1e6bc283d35263e632e38ea0b250f3f (patch)
tree543361ed183ca56c090182357e985ad363a96d53 /sys/dev
parentb6c0385fe07c84e4d95adcebc84857e413b341bf (diff)
Use htole32() to write parameters to DMA descriptors for big endian machines.
Tested on Pegasos by mrg@ on port-ofppc.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/auvia.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/auvia.c b/sys/dev/pci/auvia.c
index 8f7fd927f7e..1e8139b3828 100644
--- a/sys/dev/pci/auvia.c
+++ b/sys/dev/pci/auvia.c
@@ -1,4 +1,4 @@
-/* $NetBSD: auvia.c,v 1.61 2007/12/09 20:28:06 jmcneill Exp $ */
+/* $NetBSD: auvia.c,v 1.62 2008/01/14 06:32:10 tsutsui Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auvia.c,v 1.61 2007/12/09 20:28:06 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auvia.c,v 1.62 2008/01/14 06:32:10 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -975,13 +975,13 @@ 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 (!l) {
/* if last block */
- op->flags = AUVIA_DMAOP_EOL | blksize;
+ op->flags = htole32(AUVIA_DMAOP_EOL | blksize);
} else {
- op->flags = AUVIA_DMAOP_FLAG | blksize;
+ op->flags = htole32(AUVIA_DMAOP_FLAG | blksize);
}
s += blksize;
op++;