aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/tty.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/tty.h')
-rw-r--r--sys/sys/tty.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/tty.h b/sys/sys/tty.h
index c594e11211df..42f264b9545d 100644
--- a/sys/sys/tty.h
+++ b/sys/sys/tty.h
@@ -152,6 +152,11 @@ struct xtty {
#ifdef _KERNEL
+/* Used to distinguish between normal, callout, lock and init devices. */
+#define TTYUNIT_INIT 0x1
+#define TTYUNIT_LOCK 0x2
+#define TTYUNIT_CALLOUT 0x4
+
/* Allocation and deallocation. */
struct tty *tty_alloc(struct ttydevsw *tsw, void *softc);
struct tty *tty_alloc_mutex(struct ttydevsw *tsw, void *softc, struct mtx *mtx);