Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mac68k/nubus Update hack to point to bus_space_hand...



details:   https://anonhg.NetBSD.org/src/rev/5d40d7932dc2
branches:  trunk
changeset: 495527:5d40d7932dc2
user:      briggs <briggs%NetBSD.org@localhost>
date:      Sun Jul 30 21:39:16 2000 +0000

description:
Update hack to point to bus_space_handle base address.

diffstat:

 sys/arch/mac68k/nubus/grf_nubus.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 1898ccc2610b -r 5d40d7932dc2 sys/arch/mac68k/nubus/grf_nubus.c
--- a/sys/arch/mac68k/nubus/grf_nubus.c Sun Jul 30 21:38:02 2000 +0000
+++ b/sys/arch/mac68k/nubus/grf_nubus.c Sun Jul 30 21:39:16 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf_nubus.c,v 1.58 2000/07/26 04:35:46 briggs Exp $    */
+/*     $NetBSD: grf_nubus.c,v 1.59 2000/07/30 21:39:16 briggs Exp $    */
 
 /*
  * Copyright (c) 1995 Allen Briggs.  All rights reserved.
@@ -206,7 +206,7 @@
        gm->hres = image.hRes;
        gm->vres = image.vRes;
        gm->fbsize = gm->height * gm->rowbytes;
-       gm->fbbase = (caddr_t)sc->sc_handle;    /* 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_handle,
@@ -479,7 +479,7 @@
        volatile char *slotbase;
 
        sc = (struct grfbus_softc *)vsc;
-       slotbase = (volatile char *)sc->sc_handle;      /* 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
@@ -533,7 +533,7 @@
        volatile char *slotbase;
 
        sc = (struct grfbus_softc *)vsc;
-       slotbase = (volatile char *)sc->sc_handle;      /* 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



Home | Main Index | Thread Index | Old Index