summaryrefslogtreecommitdiffstats
path: root/include/asm-i386/termbits.h
diff options
context:
space:
mode:
authorAlan Cox2007-05-08 09:26:21 +0200
committerLinus Torvalds2007-05-08 20:15:03 +0200
commit6de02123bf3e8baeee97fff7efc50bc192332804 (patch)
treebd27e1695889caee401316feb3546e6d6ea368b4 /include/asm-i386/termbits.h
parentVFS: delay the dentry name generation on sockets and pipes (diff)
downloadkernel-qcow2-linux-6de02123bf3e8baeee97fff7efc50bc192332804.tar.gz
kernel-qcow2-linux-6de02123bf3e8baeee97fff7efc50bc192332804.tar.xz
kernel-qcow2-linux-6de02123bf3e8baeee97fff7efc50bc192332804.zip
tty: i386/x86_64 arbitary speed support
Adds the needed TCGETS2/TCSETS2 ioctl calls, structures, defines and the like. Tested against the test suite and passes. Other platforms should need roughly the same change. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-i386/termbits.h')
-rw-r--r--include/asm-i386/termbits.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-i386/termbits.h b/include/asm-i386/termbits.h
index 2e6237693814..a21700352e7b 100644
--- a/include/asm-i386/termbits.h
+++ b/include/asm-i386/termbits.h
@@ -17,6 +17,17 @@ struct termios {
cc_t c_cc[NCCS]; /* control characters */
};
+struct termios2 {
+ tcflag_t c_iflag; /* input mode flags */
+ tcflag_t c_oflag; /* output mode flags */
+ tcflag_t c_cflag; /* control mode flags */
+ tcflag_t c_lflag; /* local mode flags */
+ cc_t c_line; /* line discipline */
+ cc_t c_cc[NCCS]; /* control characters */
+ speed_t c_ispeed; /* input speed */
+ speed_t c_ospeed; /* output speed */
+};
+
struct ktermios {
tcflag_t c_iflag; /* input mode flags */
tcflag_t c_oflag; /* output mode flags */
@@ -129,6 +140,7 @@ struct ktermios {
#define HUPCL 0002000
#define CLOCAL 0004000
#define CBAUDEX 0010000
+#define BOTHER 0010000
#define B57600 0010001
#define B115200 0010002
#define B230400 0010003
@@ -148,6 +160,8 @@ struct ktermios {
#define CMSPAR 010000000000 /* mark or space (stick) parity */
#define CRTSCTS 020000000000 /* flow control */
+#define IBSHIFT 16 /* Shift from CBAUD to CIBAUD */
+
/* c_lflag bits */
#define ISIG 0000001
#define ICANON 0000002