diff options
| author | Russell King <rmk@flint.arm.linux.org.uk> | 2003-04-17 01:37:19 +0100 |
|---|---|---|
| committer | Russell King <rmk@flint.arm.linux.org.uk> | 2003-04-17 01:37:19 +0100 |
| commit | 3bbb0896d422a2c5d5c6f8eb584e9bda3d3277a5 (patch) | |
| tree | b64b44ac2c20aa0df0fb6e8de9e33fc7dd03781e /include/linux | |
| parent | 96069ef3c339a283087f80af48f42d22a96609a2 (diff) | |
[SERIAL] Move make modem control signals accessible to line discplines
We also parse modem control signals in the tty layer, and fail with
EINVAL if the driver does not provide the methods. All tty drivers
which require modem control support should be updated to provide
the new tiocmset and tiocmget methods.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/tty_driver.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index 0070ed49813d..0e35590dc50c 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h @@ -172,6 +172,9 @@ struct tty_driver { int count, int *eof, void *data); int (*write_proc)(struct file *file, const char *buffer, unsigned long count, void *data); + int (*tiocmget)(struct tty_struct *tty, struct file *file); + int (*tiocmset)(struct tty_struct *tty, struct file *file, + unsigned int set, unsigned int clear); struct list_head tty_drivers; }; |
