diff options
Diffstat (limited to 'sys/arch/mac68k/dev/grf_mv.c')
-rw-r--r-- | sys/arch/mac68k/dev/grf_mv.c | 8 |
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 |