From 3bbb0896d422a2c5d5c6f8eb584e9bda3d3277a5 Mon Sep 17 00:00:00 2001 From: Russell King Date: Thu, 17 Apr 2003 01:37:19 +0100 Subject: [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. --- include/linux/tty_driver.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') 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; }; -- cgit v1.2.3