summaryrefslogtreecommitdiffstats
path: root/sys/sys/cons.h
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-06-27 17:50:33 +0000
committeremaste <emaste@FreeBSD.org>2014-06-27 17:50:33 +0000
commit2b75e7bbda9839bf493b5afbf7e16c0671f0c5ff (patch)
tree8d5bf911ab86505463544aa8651ae81db12bcb06 /sys/sys/cons.h
parent325c7f4782bf4701164925ba58bd0aacb84b5630 (diff)
downloadFreeBSD-src-2b75e7bbda9839bf493b5afbf7e16c0671f0c5ff.zip
FreeBSD-src-2b75e7bbda9839bf493b5afbf7e16c0671f0c5ff.tar.gz
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
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 8442bf3..485f8c0 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_ */
OpenPOWER on IntegriCloud