aboutsummaryrefslogtreecommitdiff
path: root/include/asm-s390/termios.h
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2008-02-08 04:18:40 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 09:22:24 -0800
commit596f56018df3ed7de20f6038f72177b3674ebbd4 (patch)
tree8d3956e81dd291e5c01d27d76d5b0dfb9febd38b /include/asm-s390/termios.h
parentaa7738a5f503abea5445cdd8cc2d501502c748ae (diff)
tty: s390 support for termios2.
Backend for s390. Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-s390/termios.h')
-rw-r--r--include/asm-s390/termios.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-s390/termios.h b/include/asm-s390/termios.h
index a3480e25eb4..67f66278f53 100644
--- a/include/asm-s390/termios.h
+++ b/include/asm-s390/termios.h
@@ -57,6 +57,9 @@ struct termio {
*/
#define INIT_C_CC "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0"
+#define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios2))
+#define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2))
+
#include <asm-generic/termios.h>
#endif /* __KERNEL__ */