summaryrefslogtreecommitdiffstats
path: root/sys/sys/cons.h
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-05-23 16:06:35 +0000
committered <ed@FreeBSD.org>2008-05-23 16:06:35 +0000
commitbdc5be605fed4eb12994b4b1324963a5527e8bd8 (patch)
tree45dcbc030933869fb3a8e3fe224f3cbe1488ad22 /sys/sys/cons.h
parent82e712d5edb03f4ce70cf2a4e76084b692dc32cd (diff)
downloadFreeBSD-src-bdc5be605fed4eb12994b4b1324963a5527e8bd8.zip
FreeBSD-src-bdc5be605fed4eb12994b4b1324963a5527e8bd8.tar.gz
Move TTY unrelated bits out of <sys/tty.h>.
For some reason, the <sys/tty.h> header file also contains routines of the clists and console that are used inside the TTY layer. Because the clists are not only used by the TTY layer (example: various input drivers), we'd better move the entire clist programming interface into <sys/clist.h>. Also remove a declaration of nonexistent variable. The <sys/tty.h> header also contains various definitions for the console code (tty_cons.c). Also move these to <sys/cons.h>, because they are not implemented inside the TTY layer. While there, create separate malloc pools for the clist and console code. Approved by: philip (mentor)
Diffstat (limited to 'sys/sys/cons.h')
-rw-r--r--sys/sys/cons.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/cons.h b/sys/sys/cons.h
index a3229c3..14fc961 100644
--- a/sys/sys/cons.h
+++ b/sys/sys/cons.h
@@ -39,6 +39,8 @@
#define _MACHINE_CONS_H_
struct consdev;
+struct tty;
+
typedef void cn_probe_t(struct consdev *);
typedef void cn_init_t(struct consdev *);
typedef void cn_term_t(struct consdev *);
@@ -80,6 +82,9 @@ struct consdev {
#ifdef _KERNEL
+extern struct msgbuf consmsgbuf; /* Message buffer for constty. */
+extern struct tty *constty; /* Temporary virtual console. */
+
#define CONS_DRIVER(name, probe, init, term, getc, checkc, putc, dbctl) \
static struct consdev name##_consdev = { \
probe, init, term, getc, checkc, putc \
@@ -108,6 +113,8 @@ int cngetc(void);
void cnputc(int);
void cnputs(char *);
int cnunavailable(void);
+void constty_set(struct tty *tp);
+void constty_clear(void);
#endif /* _KERNEL */
OpenPOWER on IntegriCloud