diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2007-05-08 00:26:21 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 11:15:03 -0700 |
commit | 6de02123bf3e8baeee97fff7efc50bc192332804 (patch) | |
tree | bd27e1695889caee401316feb3546e6d6ea368b4 /include/asm-i386/termbits.h | |
parent | c23fbb6bcb3eb9cdf39a103edadf57bde8ce309c (diff) | |
download | kernel-crypto-6de02123bf3e8baeee97fff7efc50bc192332804.tar.gz kernel-crypto-6de02123bf3e8baeee97fff7efc50bc192332804.tar.xz kernel-crypto-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.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-i386/termbits.h b/include/asm-i386/termbits.h index 2e623769381..a21700352e7 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 |