summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/dev/grf_mv.c
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2005-09-12 10:07:30 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2005-09-12 10:07:30 +0000
commit0323a692667ac28ff4145de60bd4304dada9ffc6 (patch)
treefd308bdd35028a01a33faae88c7e7467c6c82630 /sys/arch/mac68k/dev/grf_mv.c
parentecff9cfc1dd353f56283227b34cdec69a47493fb (diff)
- Add byte-swap and stride options to bus_space.
- Add bus_space_*_stream_N functions - Replace PGOFSET with m68k_trunc_page() or m68k_page_offset() from NetBSD, testing help by otto@
Diffstat (limited to 'sys/arch/mac68k/dev/grf_mv.c')
-rw-r--r--sys/arch/mac68k/dev/grf_mv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/mac68k/dev/grf_mv.c b/sys/arch/mac68k/dev/grf_mv.c
index ae2deee1206..9893193d021 100644
--- a/sys/arch/mac68k/dev/grf_mv.c
+++ b/sys/arch/mac68k/dev/grf_mv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grf_mv.c,v 1.25 2005/08/06 19:51:43 martin Exp $ */
+/* $OpenBSD: grf_mv.c,v 1.26 2005/09/12 10:07:29 martin Exp $ */
/* $NetBSD: grf_nubus.c,v 1.62 2001/01/22 20:27:02 briggs Exp $ */
/*
@@ -211,7 +211,7 @@ bad:
gm->hres = image.hRes;
gm->vres = image.vRes;
gm->fbsize = gm->height * gm->rowbytes;
- gm->fbbase = (caddr_t)sc->sc_regh; /* XXX evil hack */
+ gm->fbbase = (caddr_t)(sc->sc_handle.base); /* XXX evil hack */
gm->fboff = image.offset;
strncpy(cardname, nubus_get_card_name(sc->sc_tag, sc->sc_regh,
@@ -525,7 +525,7 @@ grfmv_intr_cb264(vsc)
volatile char *slotbase;
sc = (struct grfbus_softc *)vsc;
- slotbase = (volatile char *)sc->sc_regh; /* XXX evil hack */
+ slotbase = (volatile char *)(sc->sc_handle.base); /* XXX evil hack */
asm volatile(" movl %0,a0
movl a0@(0xff6028),d0
andl #0x2,d0
@@ -580,7 +580,7 @@ grfmv_intr_cb364(vsc)
volatile char *slotbase;
sc = (struct grfbus_softc *)vsc;
- slotbase = (volatile char *)sc->sc_regh; /* XXX evil hack */
+ slotbase = (volatile char *)(sc->sc_handle.base); /* XXX evil hack */
asm volatile(" movl %0,a0
movl a0@(0xfe6028),d0
andl #0x2,d0