2 * Private header file for the (dumb) serial driver
4 * Copyright (C) 1997 by Theodore Ts'o.
6 * Redistribution of this file is permitted under the terms of the GNU
10 #ifndef _LINUX_SERIALP_H
11 #define _LINUX_SERIALP_H
14 * This is our internal structure for each serial port's state.
16 * Many fields are paralleled by the structure used by the serial_struct
19 * For definitions of the flags field, see tty.h
22 #include <linux/termios.h>
23 #include <linux/workqueue.h>
24 #include <linux/interrupt.h>
25 #include <linux/circ_buf.h>
26 #include <linux/wait.h>
38 unsigned short close_delay;
39 unsigned short closing_wait; /* time to wait before closing */
40 struct async_icount icount;
44 int ignore_status_mask;
47 int IER; /* Interrupt Enable Register */
48 int MCR; /* Modem control register */
49 wait_queue_head_t delta_msr_wait;
51 int x_char; /* xon/xoff character */
52 int blocked_open; /* # of blocked opens */
54 wait_queue_head_t open_wait;
55 wait_queue_head_t close_wait;
56 struct tty_struct *tty;
61 #endif /* _LINUX_SERIAL_H */