提交 4982d6b3 编写于 作者: A Alan Cox 提交者: Linus Torvalds

esp: use tty_port

Switch esp to use the new tty_port structures
Signed-off-by: NAlan Cox <alan@redhat.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 52d41738
此差异已折叠。
...@@ -76,11 +76,10 @@ struct hayes_esp_config { ...@@ -76,11 +76,10 @@ struct hayes_esp_config {
struct esp_struct { struct esp_struct {
int magic; int magic;
struct tty_port port;
spinlock_t lock; spinlock_t lock;
int port; int io_port;
int irq; int irq;
int flags; /* defined in tty.h */
struct tty_struct *tty;
int read_status_mask; int read_status_mask;
int ignore_status_mask; int ignore_status_mask;
int timeout; int timeout;
...@@ -93,14 +92,10 @@ struct esp_struct { ...@@ -93,14 +92,10 @@ struct esp_struct {
int MCR; /* Modem control register */ int MCR; /* Modem control register */
unsigned long last_active; unsigned long last_active;
int line; int line;
int count; /* # of fd on device */
int blocked_open; /* # of blocked opens */
unsigned char *xmit_buf; unsigned char *xmit_buf;
int xmit_head; int xmit_head;
int xmit_tail; int xmit_tail;
int xmit_cnt; int xmit_cnt;
wait_queue_head_t open_wait;
wait_queue_head_t close_wait;
wait_queue_head_t delta_msr_wait; wait_queue_head_t delta_msr_wait;
wait_queue_head_t break_wait; wait_queue_head_t break_wait;
struct async_icount icount; /* kernel counters for the 4 input interrupts */ struct async_icount icount; /* kernel counters for the 4 input interrupts */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册