summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/p9100.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-09-23 18:13:40 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-09-23 18:13:40 +0000
commit9f57793bc6e166c2d6c5729c4cf132985f711c9c (patch)
treef3925ead21b40221616cc66be69a0bf5178668cb /sys/arch/sparc/dev/p9100.c
parent7f125e23dc888aa59d3858398f1d10c7022dd5c7 (diff)
Get the wsdisplay capabilities from rasops, rather than attempting to
guess them at compile-time. Plus this makes cgtwelve a bit more clean. ok fgs@ deraadt@
Diffstat (limited to 'sys/arch/sparc/dev/p9100.c')
-rw-r--r--sys/arch/sparc/dev/p9100.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/sparc/dev/p9100.c b/sys/arch/sparc/dev/p9100.c
index 7fdabfa4e64..b1141c00ef9 100644
--- a/sys/arch/sparc/dev/p9100.c
+++ b/sys/arch/sparc/dev/p9100.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p9100.c,v 1.9 2002/09/09 22:15:16 miod Exp $ */
+/* $OpenBSD: p9100.c,v 1.10 2002/09/23 18:13:38 miod Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -84,11 +84,6 @@ struct p9100_softc {
struct wsscreen_descr p9100_stdscreen = {
"std",
- 0, 0, /* will be filled in */
- 0,
- 0, 0,
- WSSCREEN_UNDERLINE | WSSCREEN_HILIT |
- WSSCREEN_REVERSE | WSSCREEN_WSCOLORS
};
const struct wsscreen_descr *p9100_scrlist[] = {
@@ -290,6 +285,7 @@ p9100attach(parent, self, args)
sc->sc_sunfb.sf_ro.ri_hw = sc;
fbwscons_init(&sc->sc_sunfb, isconsole);
+ p9100_stdscreen.capabilities = sc->sc_sunfb.sf_ro.ri_caps;
p9100_stdscreen.nrows = sc->sc_sunfb.sf_ro.ri_rows;
p9100_stdscreen.ncols = sc->sc_sunfb.sf_ro.ri_cols;
p9100_stdscreen.textops = &sc->sc_sunfb.sf_ro.ri_ops;