diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-08 20:35:22 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-08 20:35:22 +0000 |
commit | e36b0788688a5dd823dc99c40167de645deb9988 (patch) | |
tree | b76483ceaf19b14b4d45bd4174333476cff56dc3 /sys/arch/mac68k/dev/grf_iv.c | |
parent | 6bb26d48dbe7011c0629a2b80c35e931807ff3d3 (diff) |
Remove unused grf_softc members; do not keep temporary data in grf_softc
either, instead keep it on the stack or directly in attachment structures.
No functional change.
Diffstat (limited to 'sys/arch/mac68k/dev/grf_iv.c')
-rw-r--r-- | sys/arch/mac68k/dev/grf_iv.c | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/sys/arch/mac68k/dev/grf_iv.c b/sys/arch/mac68k/dev/grf_iv.c index 58220e594e2..5831644d764 100644 --- a/sys/arch/mac68k/dev/grf_iv.c +++ b/sys/arch/mac68k/dev/grf_iv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf_iv.c,v 1.32 2006/01/04 20:39:04 miod Exp $ */ +/* $OpenBSD: grf_iv.c,v 1.33 2006/01/08 20:35:21 miod Exp $ */ /* $NetBSD: grf_iv.c,v 1.17 1997/02/20 00:23:27 scottr Exp $ */ /* @@ -210,7 +210,7 @@ grfiv_attach(parent, self, aux) { struct obio_attach_args *oa = (struct obio_attach_args *) aux; struct grfbus_softc *sc; - struct grfmode *gm; + struct grfmode gm; u_long base, length; u_int32_t vbase1, vbase2; @@ -348,19 +348,14 @@ grfiv_attach(parent, self, aux) mac68k_vidphys < (sc->sc_basepa + length)) videoaddr = sc->sc_handle.base + sc->sc_fbofs; /* XXX big ol' hack */ - gm = &(sc->curr_mode); - gm->mode_id = 0; - gm->psize = videobitdepth; - gm->ptype = 0; - gm->width = videosize & 0xffff; - gm->height = (videosize >> 16) & 0xffff; - gm->rowbytes = videorowbytes; - gm->hres = 80; /* XXX Hack */ - gm->vres = 80; /* XXX Hack */ - gm->fbsize = gm->height * gm->rowbytes; - gm->fbbase = (caddr_t)sc->sc_handle.base; /* XXX yet another hack */ - gm->fboff = sc->sc_fbofs; + gm.psize = videobitdepth; + gm.width = videosize & 0xffff; + gm.height = (videosize >> 16) & 0xffff; + gm.rowbytes = videorowbytes; + gm.fbsize = gm.height * gm.rowbytes; + gm.fbbase = (caddr_t)sc->sc_handle.base; /* XXX yet another hack */ + gm.fboff = sc->sc_fbofs; /* Perform common video attachment. */ - grf_establish(sc); + grf_establish(sc, &gm); } |