diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2007-08-05 13:16:05 +0200 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-08-05 13:16:05 +0200 |
commit | 85a75996edd0e49477cc7c9eb4bac33f02b07685 (patch) | |
tree | 5f29dbd15273adfe1a4ce4a040e5858ea1015b51 /include/asm-blackfin/termios.h | |
parent | Blackfin arch: Remove cruft - CONFIG_DEBUG_SERIAL_EARLY_INIT and DEBUG_KERNEL... (diff) | |
download | linux-85a75996edd0e49477cc7c9eb4bac33f02b07685.tar.xz linux-85a75996edd0e49477cc7c9eb4bac33f02b07685.zip |
blackfin enable arbitary speed serial setting
Add the needed definitions to activate arbitary speed support on the blackfin platform.
Signed-off-by: Alan Cox <alan@redhat.com>
Acked-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'include/asm-blackfin/termios.h')
-rw-r--r-- | include/asm-blackfin/termios.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/asm-blackfin/termios.h b/include/asm-blackfin/termios.h index 5c41478a51c6..e31fe859650b 100644 --- a/include/asm-blackfin/termios.h +++ b/include/asm-blackfin/termios.h @@ -98,8 +98,14 @@ 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__ */ |