summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-08-31 21:18:49 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-08-31 21:18:49 +0000
commitd581336365703a8679c00af787a188bd7695b7de (patch)
tree8485569009b5a800ee5cedbc0d26be6c6b914505 /sys/dev
parente1dd84cee29146f62d851cabde2293281599a2e2 (diff)
Always setup the RAMDAC (even if we're not the console) so when the display
is cleared, it's cleared to a known color (white instead of whatever is put in the ramdac by the prom, usually cyan).
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sbus/cgsix.c22
-rw-r--r--sys/dev/sbus/cgthree.c22
2 files changed, 22 insertions, 22 deletions
diff --git a/sys/dev/sbus/cgsix.c b/sys/dev/sbus/cgsix.c
index c4e36efde32..8b0b0eb5513 100644
--- a/sys/dev/sbus/cgsix.c
+++ b/sys/dev/sbus/cgsix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cgsix.c,v 1.31 2002/08/16 02:54:54 jason Exp $ */
+/* $OpenBSD: cgsix.c,v 1.32 2002/08/31 21:18:48 jason Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -273,17 +273,17 @@ cgsixattach(parent, self, aux)
printf("\n");
- if (console) {
- cgsix_setcolor(sc, WSCOL_BLACK, 0, 0, 0);
- cgsix_setcolor(sc, 255, 0, 0, 0);
- cgsix_setcolor(sc, WSCOL_RED, 255, 0, 0);
- cgsix_setcolor(sc, WSCOL_GREEN, 0, 255, 0);
- cgsix_setcolor(sc, WSCOL_BROWN, 154, 85, 46);
- cgsix_setcolor(sc, WSCOL_BLUE, 0, 0, 255);
- cgsix_setcolor(sc, WSCOL_MAGENTA, 255, 255, 0);
- cgsix_setcolor(sc, WSCOL_CYAN, 0, 255, 255);
- cgsix_setcolor(sc, WSCOL_WHITE, 255, 255, 255);
+ cgsix_setcolor(sc, WSCOL_BLACK, 0, 0, 0);
+ cgsix_setcolor(sc, 255, 0, 0, 0);
+ cgsix_setcolor(sc, WSCOL_RED, 255, 0, 0);
+ cgsix_setcolor(sc, WSCOL_GREEN, 0, 255, 0);
+ cgsix_setcolor(sc, WSCOL_BROWN, 154, 85, 46);
+ cgsix_setcolor(sc, WSCOL_BLUE, 0, 0, 255);
+ cgsix_setcolor(sc, WSCOL_MAGENTA, 255, 255, 0);
+ cgsix_setcolor(sc, WSCOL_CYAN, 0, 255, 255);
+ cgsix_setcolor(sc, WSCOL_WHITE, 255, 255, 255);
+ if (console) {
if (romgetcursoraddr(&sc->sc_crowp, &sc->sc_ccolp))
sc->sc_crowp = sc->sc_ccolp = NULL;
if (sc->sc_ccolp != NULL)
diff --git a/sys/dev/sbus/cgthree.c b/sys/dev/sbus/cgthree.c
index 991e6ee9ece..4ba1677ed99 100644
--- a/sys/dev/sbus/cgthree.c
+++ b/sys/dev/sbus/cgthree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cgthree.c,v 1.23 2002/08/12 16:18:59 jason Exp $ */
+/* $OpenBSD: cgthree.c,v 1.24 2002/08/31 21:18:48 jason Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -310,17 +310,17 @@ cgthreeattach(parent, self, aux)
printf("\n");
- if (console) {
- cgthree_setcolor(sc, WSCOL_BLACK, 0, 0, 0);
- cgthree_setcolor(sc, 255, 0, 0, 0);
- cgthree_setcolor(sc, WSCOL_RED, 255, 0, 0);
- cgthree_setcolor(sc, WSCOL_GREEN, 0, 255, 0);
- cgthree_setcolor(sc, WSCOL_BROWN, 154, 85, 46);
- cgthree_setcolor(sc, WSCOL_BLUE, 0, 0, 255);
- cgthree_setcolor(sc, WSCOL_MAGENTA, 255, 255, 0);
- cgthree_setcolor(sc, WSCOL_CYAN, 0, 255, 255);
- cgthree_setcolor(sc, WSCOL_WHITE, 255, 255, 255);
+ cgthree_setcolor(sc, WSCOL_BLACK, 0, 0, 0);
+ cgthree_setcolor(sc, 255, 0, 0, 0);
+ cgthree_setcolor(sc, WSCOL_RED, 255, 0, 0);
+ cgthree_setcolor(sc, WSCOL_GREEN, 0, 255, 0);
+ cgthree_setcolor(sc, WSCOL_BROWN, 154, 85, 46);
+ cgthree_setcolor(sc, WSCOL_BLUE, 0, 0, 255);
+ cgthree_setcolor(sc, WSCOL_MAGENTA, 255, 255, 0);
+ cgthree_setcolor(sc, WSCOL_CYAN, 0, 255, 255);
+ cgthree_setcolor(sc, WSCOL_WHITE, 255, 255, 255);
+ if (console) {
if (romgetcursoraddr(&sc->sc_crowp, &sc->sc_ccolp))
sc->sc_ccolp = sc->sc_crowp = NULL;
if (sc->sc_ccolp != NULL)