diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-01-25 21:35:27 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-01-25 21:35:27 +0000 |
commit | 71e1ec1869724492506b43fe04c24368515c372c (patch) | |
tree | 056afef44b8e37eb2f6b25633279a980fc333c4d /sys/dev | |
parent | f829ee129ab7e86debfd88d8d2b4dc78767e69f5 (diff) |
tell wsdisplay if we are a console
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/sti.c | 6 | ||||
-rw-r--r-- | sys/dev/ic/stivar.h | 3 |
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; |