diff options
author | David Miller <davem@davemloft.net> | 2007-10-17 22:38:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-10-17 22:38:10 -0400 |
commit | 6050afbbb01d1f5a867f7839be6460bac801f5bc (patch) | |
tree | 022be422a8b28f7b630cf20e8b7674b2dfcc9cfc /include/asm-sparc/termbits.h | |
parent | 4209ab098c61b1a9684bb4d3fc287352fc2438c3 (diff) |
[SPARC]: Support for new termios.
[akpm@linux-foundation.org: coding-style tweaks]
Signed-off-by: David Miller <davem@davemloft.net>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc/termbits.h')
-rw-r--r-- | include/asm-sparc/termbits.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-sparc/termbits.h b/include/asm-sparc/termbits.h index 5eb00a105d7c..90cf2210118b 100644 --- a/include/asm-sparc/termbits.h +++ b/include/asm-sparc/termbits.h | |||
@@ -31,6 +31,18 @@ struct termios { | |||
31 | #endif | 31 | #endif |
32 | }; | 32 | }; |
33 | 33 | ||
34 | struct termios2 { | ||
35 | tcflag_t c_iflag; /* input mode flags */ | ||
36 | tcflag_t c_oflag; /* output mode flags */ | ||
37 | tcflag_t c_cflag; /* control mode flags */ | ||
38 | tcflag_t c_lflag; /* local mode flags */ | ||
39 | cc_t c_line; /* line discipline */ | ||
40 | cc_t c_cc[NCCS]; /* control characters */ | ||
41 | cc_t _x_cc[2]; /* padding to match ktermios */ | ||
42 | speed_t c_ispeed; /* input speed */ | ||
43 | speed_t c_ospeed; /* output speed */ | ||
44 | }; | ||
45 | |||
34 | struct ktermios { | 46 | struct ktermios { |
35 | tcflag_t c_iflag; /* input mode flags */ | 47 | tcflag_t c_iflag; /* input mode flags */ |
36 | tcflag_t c_oflag; /* output mode flags */ | 48 | tcflag_t c_oflag; /* output mode flags */ |
@@ -160,6 +172,7 @@ struct ktermios { | |||
160 | #define CLOCAL 0x00000800 | 172 | #define CLOCAL 0x00000800 |
161 | #define CBAUDEX 0x00001000 | 173 | #define CBAUDEX 0x00001000 |
162 | /* We'll never see these speeds with the Zilogs, but for completeness... */ | 174 | /* We'll never see these speeds with the Zilogs, but for completeness... */ |
175 | #define BOTHER 0x00001000 | ||
163 | #define B57600 0x00001001 | 176 | #define B57600 0x00001001 |
164 | #define B115200 0x00001002 | 177 | #define B115200 0x00001002 |
165 | #define B230400 0x00001003 | 178 | #define B230400 0x00001003 |
@@ -189,6 +202,8 @@ struct ktermios { | |||
189 | #define CMSPAR 0x40000000 /* mark or space (stick) parity */ | 202 | #define CMSPAR 0x40000000 /* mark or space (stick) parity */ |
190 | #define CRTSCTS 0x80000000 /* flow control */ | 203 | #define CRTSCTS 0x80000000 /* flow control */ |
191 | 204 | ||
205 | #define IBSHIFT 16 /* Shift from CBAUD to CIBAUD */ | ||
206 | |||
192 | /* c_lflag bits */ | 207 | /* c_lflag bits */ |
193 | #define ISIG 0x00000001 | 208 | #define ISIG 0x00000001 |
194 | #define ICANON 0x00000002 | 209 | #define ICANON 0x00000002 |