summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ic/sti.c6
-rw-r--r--sys/dev/ic/stivar.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/ic/sti.c b/sys/dev/ic/sti.c
index 45a9925ade4..dcab7ce165d 100644
--- a/sys/dev/ic/sti.c
+++ b/sys/dev/ic/sti.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sti.c,v 1.9 2001/12/08 02:24:07 art Exp $ */
+/* $OpenBSD: sti.c,v 1.10 2002/01/25 21:35:26 mickey Exp $ */
/*
* Copyright (c) 2000-2001 Michael Shalayeff
@@ -350,9 +350,7 @@ sti_attach_common(sc)
/* attach WSDISPLAY */
bzero(&waa, sizeof(waa));
-#if notyet
- waa.console = sc->sc_dev.dv_unit == 0;
-#endif
+ waa.console = sc->sc_flags & STI_CONSOLE? 1 : 0;
waa.scrdata = &sti_default_screenlist;
waa.accessops = &sti_accessops;
waa.accesscookie = sc;
diff --git a/sys/dev/ic/stivar.h b/sys/dev/ic/stivar.h
index 73816dbae2d..6479bbd4dfd 100644
--- a/sys/dev/ic/stivar.h
+++ b/sys/dev/ic/stivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stivar.h,v 1.3 2001/03/20 08:32:20 mickey Exp $ */
+/* $OpenBSD: stivar.h,v 1.4 2002/01/25 21:35:26 mickey Exp $ */
/*
* Copyright (c) 2000 Michael Shalayeff
@@ -43,6 +43,7 @@ struct sti_softc {
u_int sc_flags;
#define STI_TEXTMODE 0x0001
#define STI_CLEARSCR 0x0002
+#define STI_CONSOLE 0x0004
int sc_devtype;
bus_space_tag_t iot, memt;