diff options
Diffstat (limited to 'include/linux/tty_ldisc.h')
| -rw-r--r-- | include/linux/tty_ldisc.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h index a1b048999821..f15c898ff462 100644 --- a/include/linux/tty_ldisc.h +++ b/include/linux/tty_ldisc.h | |||
| @@ -109,6 +109,17 @@ | |||
| 109 | * | 109 | * |
| 110 | * Tells the discipline that the DCD pin has changed its status. | 110 | * Tells the discipline that the DCD pin has changed its status. |
| 111 | * Used exclusively by the N_PPS (Pulse-Per-Second) line discipline. | 111 | * Used exclusively by the N_PPS (Pulse-Per-Second) line discipline. |
| 112 | * | ||
| 113 | * int (*receive_buf2)(struct tty_struct *, const unsigned char *cp, | ||
| 114 | * char *fp, int count); | ||
| 115 | * | ||
| 116 | * This function is called by the low-level tty driver to send | ||
| 117 | * characters received by the hardware to the line discpline for | ||
| 118 | * processing. <cp> is a pointer to the buffer of input | ||
| 119 | * character received by the device. <fp> is a pointer to a | ||
| 120 | * pointer of flag bytes which indicate whether a character was | ||
| 121 | * received with a parity error, etc. | ||
| 122 | * If assigned, prefer this function for automatic flow control. | ||
| 112 | */ | 123 | */ |
| 113 | 124 | ||
| 114 | #include <linux/fs.h> | 125 | #include <linux/fs.h> |
| @@ -195,6 +206,8 @@ struct tty_ldisc_ops { | |||
| 195 | void (*write_wakeup)(struct tty_struct *); | 206 | void (*write_wakeup)(struct tty_struct *); |
| 196 | void (*dcd_change)(struct tty_struct *, unsigned int); | 207 | void (*dcd_change)(struct tty_struct *, unsigned int); |
| 197 | void (*fasync)(struct tty_struct *tty, int on); | 208 | void (*fasync)(struct tty_struct *tty, int on); |
| 209 | int (*receive_buf2)(struct tty_struct *, const unsigned char *cp, | ||
| 210 | char *fp, int count); | ||
| 198 | 211 | ||
| 199 | struct module *owner; | 212 | struct module *owner; |
| 200 | 213 | ||
| @@ -203,8 +216,7 @@ struct tty_ldisc_ops { | |||
| 203 | 216 | ||
| 204 | struct tty_ldisc { | 217 | struct tty_ldisc { |
| 205 | struct tty_ldisc_ops *ops; | 218 | struct tty_ldisc_ops *ops; |
| 206 | atomic_t users; | 219 | struct tty_struct *tty; |
| 207 | wait_queue_head_t wq_idle; | ||
| 208 | }; | 220 | }; |
| 209 | 221 | ||
| 210 | #define TTY_LDISC_MAGIC 0x5403 | 222 | #define TTY_LDISC_MAGIC 0x5403 |
