aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/serialP.h
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-03-05 08:52:24 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-08 15:30:50 -0500
commit87758791c99715433841f1c054b49166506513e4 (patch)
treea0ba9a0e5dea44992557fcd681077ee8ededb085 /include/linux/serialP.h
parent5e99d5458729b0eb763ca83a2fbb95f6276c4243 (diff)
TTY: amiserial/simserial, use tty_port
Add tty_port to serial_state and start using common tty port members from tty_port in amiserial and simserial. The rest will follow one by one. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serialP.h')
-rw-r--r--include/linux/serialP.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/serialP.h b/include/linux/serialP.h
index 984f5ba8da4e..32d45b869cbc 100644
--- a/include/linux/serialP.h
+++ b/include/linux/serialP.h
@@ -23,6 +23,7 @@
23#include <linux/workqueue.h> 23#include <linux/workqueue.h>
24#include <linux/interrupt.h> 24#include <linux/interrupt.h>
25#include <linux/circ_buf.h> 25#include <linux/circ_buf.h>
26#include <linux/tty.h>
26#include <linux/wait.h> 27#include <linux/wait.h>
27 28
28struct serial_state { 29struct serial_state {
@@ -38,6 +39,7 @@ struct serial_state {
38 unsigned short close_delay; 39 unsigned short close_delay;
39 unsigned short closing_wait; /* time to wait before closing */ 40 unsigned short closing_wait; /* time to wait before closing */
40 struct async_icount icount; 41 struct async_icount icount;
42 struct tty_port tport;
41 43
42 /* amiserial */ 44 /* amiserial */
43 int read_status_mask; 45 int read_status_mask;
@@ -46,14 +48,9 @@ struct serial_state {
46 int quot; 48 int quot;
47 int IER; /* Interrupt Enable Register */ 49 int IER; /* Interrupt Enable Register */
48 int MCR; /* Modem control register */ 50 int MCR; /* Modem control register */
49 wait_queue_head_t delta_msr_wait;
50 /* simserial */ 51 /* simserial */
51 int x_char; /* xon/xoff character */ 52 int x_char; /* xon/xoff character */
52 int blocked_open; /* # of blocked opens */
53 struct circ_buf xmit; 53 struct circ_buf xmit;
54 wait_queue_head_t open_wait;
55 wait_queue_head_t close_wait;
56 struct tty_struct *tty;
57 /* /simserial */ 54 /* /simserial */
58 /* /amiserial */ 55 /* /amiserial */
59}; 56};