diff options
author | Jon Smirl <jonsmir@gmail.com> | 2006-07-10 04:44:12 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-10 13:24:16 -0700 |
commit | a8f340e394ff30b79ab5b03c67ab4c94b2ac3646 (patch) | |
tree | 54bb79dba4f3943e893bacd1efe7b265d7f86aaa /include/linux/vt.h | |
parent | 67eb5db5874076db01febed5a1a9281628fa9fb4 (diff) | |
download | op-kernel-dev-a8f340e394ff30b79ab5b03c67ab4c94b2ac3646.zip op-kernel-dev-a8f340e394ff30b79ab5b03c67ab4c94b2ac3646.tar.gz |
[PATCH] vt: Remove VT-specific declarations and definitions from tty.h
MAX_NR_CONSOLES, fg_console, want_console and last_console are more of a
function of the VT layer than the TTY one. Moving these to vt.h and vt_kern.h
allows all of the framebuffer and VT console drivers to remove their
dependency on tty.h.
[akpm@osdl.org: fix alpha build]
Signed-off-by: Jon Smirl <jonsmir@gmail.com>
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/vt.h')
-rw-r--r-- | include/linux/vt.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/vt.h b/include/linux/vt.h index 9f95b0b..8ab334a 100644 --- a/include/linux/vt.h +++ b/include/linux/vt.h @@ -1,6 +1,16 @@ #ifndef _LINUX_VT_H #define _LINUX_VT_H +/* + * These constants are also useful for user-level apps (e.g., VC + * resizing). + */ +#define MIN_NR_CONSOLES 1 /* must be at least 1 */ +#define MAX_NR_CONSOLES 63 /* serial lines start at 64 */ +#define MAX_NR_USER_CONSOLES 63 /* must be root to allocate above this */ + /* Note: the ioctl VT_GETSTATE does not work for + consoles 16 and higher (since it returns a short) */ + /* 0x56 is 'V', to avoid collision with termios and kd */ #define VT_OPENQRY 0x5600 /* find available vt */ |