diff options
-rw-r--r-- | Documentation/serial/tty.txt | 4 | ||||
-rw-r--r-- | include/linux/tty_ldisc.h | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/serial/tty.txt b/Documentation/serial/tty.txt index 5e5349a4fcd2..7c900507279f 100644 --- a/Documentation/serial/tty.txt +++ b/Documentation/serial/tty.txt | |||
@@ -105,6 +105,10 @@ write_wakeup() - May be called at any point between open and close. | |||
105 | is permitted to call the driver write method from | 105 | is permitted to call the driver write method from |
106 | this function. In such a situation defer it. | 106 | this function. In such a situation defer it. |
107 | 107 | ||
108 | dcd_change() - Report to the tty line the current DCD pin status | ||
109 | changes and the relative timestamp. The timestamp | ||
110 | can be NULL. | ||
111 | |||
108 | 112 | ||
109 | Driver Access | 113 | Driver Access |
110 | 114 | ||
diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h index 0c4ee9b88f85..526d66f066a3 100644 --- a/include/linux/tty_ldisc.h +++ b/include/linux/tty_ldisc.h | |||
@@ -99,6 +99,12 @@ | |||
99 | * cease I/O to the tty driver. Can sleep. The driver should | 99 | * cease I/O to the tty driver. Can sleep. The driver should |
100 | * seek to perform this action quickly but should wait until | 100 | * seek to perform this action quickly but should wait until |
101 | * any pending driver I/O is completed. | 101 | * any pending driver I/O is completed. |
102 | * | ||
103 | * void (*dcd_change)(struct tty_struct *tty, unsigned int status, | ||
104 | * struct timespec *ts) | ||
105 | * | ||
106 | * Tells the discipline that the DCD pin has changed its status and | ||
107 | * the relative timestamp. Pointer ts can be NULL. | ||
102 | */ | 108 | */ |
103 | 109 | ||
104 | #include <linux/fs.h> | 110 | #include <linux/fs.h> |
@@ -136,6 +142,8 @@ struct tty_ldisc_ops { | |||
136 | void (*receive_buf)(struct tty_struct *, const unsigned char *cp, | 142 | void (*receive_buf)(struct tty_struct *, const unsigned char *cp, |
137 | char *fp, int count); | 143 | char *fp, int count); |
138 | void (*write_wakeup)(struct tty_struct *); | 144 | void (*write_wakeup)(struct tty_struct *); |
145 | void (*dcd_change)(struct tty_struct *, unsigned int, | ||
146 | struct timespec *); | ||
139 | 147 | ||
140 | struct module *owner; | 148 | struct module *owner; |
141 | 149 | ||