summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-03-12 00:28:55 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-03-12 00:28:55 +0000
commitf988dee87656cd982ad7e3b7f179b4e65ffd20b0 (patch)
tree14c1228c18d5a2a18a95f0bb78a6ae31ca83d52b /sys/dev/pci
parent3488e08c3c9a0a8305bb1a92f99ac8f5486f1b24 (diff)
a missing htole32 and a pasto; from netbsd
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/bktr/bktr_core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/bktr/bktr_core.c b/sys/dev/pci/bktr/bktr_core.c
index c4ceede3427..7a05c2b14cd 100644
--- a/sys/dev/pci/bktr/bktr_core.c
+++ b/sys/dev/pci/bktr/bktr_core.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bktr_core.c,v 1.10 2003/02/11 19:20:28 mickey Exp $ */
+/* $OpenBSD: bktr_core.c,v 1.11 2003/03/12 00:28:54 mickey Exp $ */
/* $FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp $ */
/*
@@ -2838,8 +2838,8 @@ rgb_vbi_prog(bktr_ptr_t bktr, char i_flag, int cols, int rows, int interlace )
*dma_prog++ = (u_long) vtophys((caddr_t)bktr->vbidata +
((i+MAX_VBI_LINES) * VBI_LINE_SIZE));
#else
- *dma_prog++ = bktr->dm_vbidata->dm_segs->ds_addr +
- ((i+MAX_VBI_LINES) * VBI_LINE_SIZE);
+ *dma_prog++ = htole32(bktr->dm_vbidata->dm_segs->ds_addr +
+ ((i+MAX_VBI_LINES) * VBI_LINE_SIZE));
#endif
}
@@ -2938,7 +2938,7 @@ rgb_prog( bktr_ptr_t bktr, char i_flag, int cols, int rows, int interlace )
#ifdef __FreeBSD__
target_buffer = (u_long) vtophys(bktr->bigbuf);
#else
- *dma_prog++ = htole32(bktr->dm_mem->dm_segs->ds_addr);
+ target_buffer = bktr->dm_mem->dm_segs->ds_addr;
#endif
pitch = cols*Bpp;
}