summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/termios.h
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2007-05-23 14:14:15 -0700
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-05-28 23:07:34 +0100
commit3abc12012f957d1c5b9f35b244256f88ad146564 (patch)
tree57f9b0b4333a325a1e4acf9461432fe4003bd087 /include/asm-arm/termios.h
parent43e7f6adf33da1f7816ff738d3725bbde8fd98de (diff)
[ARM] enable arbitary speed tty ioctls and split input/output speed
Add the ioctls and values needed for this to the ARM26/ARM32 ports. The actual code has been in the base kernel for a while and automatically turns on when a port sets the required defines. [RMK: also added termbits.h changes to avoid build breakage] Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/termios.h')
-rw-r--r--include/asm-arm/termios.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-arm/termios.h b/include/asm-arm/termios.h
index 329c324c404..293e3f1bc3f 100644
--- a/include/asm-arm/termios.h
+++ b/include/asm-arm/termios.h
@@ -82,8 +82,10 @@ struct termio {
copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \
})
-#define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios))
-#define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios))
+#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))
+#define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios))
+#define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))
#endif /* __KERNEL__ */