summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-08-11 18:57:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-08-11 18:57:09 +0000
commit828d6bcbeeedfe17b2c9b7b7e760a110165f6c23 (patch)
treebc7ccdd7172a8fd61fe2a934ae09b3fbe1daa56e /sys/arch/sparc64/dev
parent7b06209c7db4e6573ad0731517e7f24fa240dbb4 (diff)
For non-console vgafb, force rasops to initialize it as a monochrome resource,
since we can't program the colormap anyway.
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/vgafb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/dev/vgafb.c b/sys/arch/sparc64/dev/vgafb.c
index cb3148263eb..ca6c836a642 100644
--- a/sys/arch/sparc64/dev/vgafb.c
+++ b/sys/arch/sparc64/dev/vgafb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb.c,v 1.45 2006/05/30 19:53:31 miod Exp $ */
+/* $OpenBSD: vgafb.c,v 1.46 2006/08/11 18:57:08 miod Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -169,14 +169,14 @@ vgafbattach(parent, self, aux)
sc->sc_sunfb.sf_ro.ri_hw = sc;
fbwscons_init(&sc->sc_sunfb,
- RI_BSWAP | (sc->sc_console ? 0 : RI_CLEAR));
+ RI_BSWAP | (sc->sc_console ? 0 : RI_FORCEMONO | RI_CLEAR));
if (sc->sc_console) {
sc->sc_ofhandle = OF_stdout();
fbwscons_setcolormap(&sc->sc_sunfb, vgafb_setcolor);
fbwscons_console_init(&sc->sc_sunfb, -1);
} else {
- /* sc->sc_ofhandle = XXX */
+ /* sc->sc_ofhandle = PCITAG_NODE(sc->sc_pcitag); */
}
fbwscons_attach(&sc->sc_sunfb, &vgafb_accessops, sc->sc_console);