aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/cons.h
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2014-06-27 17:50:33 +0000
committerEd Maste <emaste@FreeBSD.org>2014-06-27 17:50:33 +0000
commit59644098f881cef909c1b7181db3268cd0cac69f (patch)
tree8d5bf911ab86505463544aa8651ae81db12bcb06 /sys/sys/cons.h
parent874a6e051b35bf28a3cd1603cc47f52a01738e4d (diff)
downloadsrc-59644098f881cef909c1b7181db3268cd0cac69f.tar.gz
src-59644098f881cef909c1b7181db3268cd0cac69f.zip
Use a common tunable to choose between vt(4)/sc(4)
With this change and previous work from ray@ it will be possible to put both in GENERIC, and have one enabled by default, but allow the other to be selected via the loader. (The previous implementation had separate kern.vt.disable and hw.syscons.disable tunables, and would panic if both drivers were compiled in and neither was explicitly disabled.) MFC after: 1 week Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=267965
Diffstat (limited to 'sys/sys/cons.h')
-rw-r--r--sys/sys/cons.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/cons.h b/sys/sys/cons.h
index 8442bf3a76e9..485f8c06bd0d 100644
--- a/sys/sys/cons.h
+++ b/sys/sys/cons.h
@@ -133,6 +133,11 @@ int cnunavailable(void);
void constty_set(struct tty *tp);
void constty_clear(void);
+/* sc(4) / vt(4) coexistence shim */
+#define VTY_SC 0x01
+#define VTY_VT 0x02
+int vty_enabled(unsigned int);
+
#endif /* _KERNEL */
#endif /* !_MACHINE_CONS_H_ */