diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-12-26 22:30:22 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-12-26 22:30:22 +0000 |
commit | 98d45c69fbaee89aabba35e59ac5ad66df90eab5 (patch) | |
tree | 158772ef675dbfc4b9381e2b9a5aa47ba1944376 /sys/arch/sparc/dev/cgeight.c | |
parent | bf3b6f2384dfb5783abe569c9796e049014076e7 (diff) |
Move the logic responsible from deciding whether a frame buffer needs to be
cleared on attach, from the individual drivers to the common frame buffer code;
the latter will decide based on the prom font metrics and the prom console
window position, whenever possible.
This removes the need for the console window position to be hardcoded in
the p9100 driver, and will no longer require a screen clear on a vigra
VS-12 in high resolution mode.
Diffstat (limited to 'sys/arch/sparc/dev/cgeight.c')
-rw-r--r-- | sys/arch/sparc/dev/cgeight.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/cgeight.c b/sys/arch/sparc/dev/cgeight.c index 4d2bcb4f19d..12613bf0d79 100644 --- a/sys/arch/sparc/dev/cgeight.c +++ b/sys/arch/sparc/dev/cgeight.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgeight.c,v 1.28 2006/12/03 22:13:05 miod Exp $ */ +/* $OpenBSD: cgeight.c,v 1.29 2008/12/26 22:30:21 miod Exp $ */ /* $NetBSD: cgeight.c,v 1.13 1997/05/24 20:16:04 pk Exp $ */ /* @@ -192,13 +192,12 @@ cgeightattach(struct device *parent, struct device *self, void *args) PFOUR_COLOR_OFF_OVERLAY, round_page(sc->sc_sunfb.sf_fbsize)); cgeight_reset(sc, WSDISPLAYIO_MODE_EMUL); - fbwscons_init(&sc->sc_sunfb, isconsole ? 0 : RI_CLEAR); printf(": p4, %dx%d", sc->sc_sunfb.sf_width, sc->sc_sunfb.sf_height); - if (isconsole) { + fbwscons_init(&sc->sc_sunfb, isconsole); + if (isconsole) fbwscons_console_init(&sc->sc_sunfb, -1); - } fbwscons_attach(&sc->sc_sunfb, &cgeight_accessops, isconsole); } |