Lines Matching defs:com_s
71 struct com_s { struct
72 u_int flags; /* Copy isa device flags */
73 u_char state; /* miscellaneous flag bits */
74 bool_t active_out; /* nonzero if the callout device is open */
75 u_char cfcr_image; /* copy of value written to CFCR */
77 bool_t esp; /* is this unit a hayes esp board? */
79 u_char extra_state; /* more flag bits, separate for order trick */
80 u_char fifo_image; /* copy of value written to FIFO */
81 bool_t hasfifo; /* nonzero for 16550 UARTs */
82 bool_t st16650a; /* Is a Startech 16650A or RTS/CTS compat */
83 bool_t loses_outints; /* nonzero if device loses output interrupts */
84 u_char mcr_image; /* copy of value written to MCR */
86 bool_t multiport; /* is this unit part of a multiport device? */
88 bool_t no_irq; /* nonzero if irq is not attached */
89 bool_t gone; /* hardware disappeared */
90 bool_t poll; /* nonzero if polling is required */
91 bool_t poll_output; /* nonzero if polling for output is required */
92 int unit; /* unit number */
93 int dtr_wait; /* time to hold DTR down on close (* 1/hz) */
94 struct callout dtr_ch;
95 struct callout busy_ch;
96 u_int tx_fifo_size;
97 u_int wopeners; /* # processes waiting for DCD in open() */
105 u_char last_modem_status; /* last MSR read by intr handler */
106 u_char prev_modem_status; /* last MSR handled by high level */
108 u_char hotchar; /* ldisc-specific char to be handled ASAP */
109 u_char *ibuf; /* start of input buffer */
110 u_char *ibufend; /* end of input buffer */
111 u_char *ibufold; /* old input buffer, to be freed */
112 u_char *ihighwater; /* threshold in input buffer */
113 u_char *iptr; /* next free spot in input buffer */
114 int ibufsize; /* size of ibuf (not include error bytes) */
115 int ierroff; /* offset of error bytes in ibuf */
117 struct lbq obufq; /* head of queue of output buffers */
118 struct lbq obufs[2]; /* output buffers */
120 bus_space_tag_t bst;
121 bus_space_handle_t bsh;
123 Port_t data_port; /* i/o ports */
125 Port_t esp_port;
127 Port_t int_id_port;
128 Port_t modem_ctl_port;
129 Port_t line_status_port;
130 Port_t modem_status_port;
131 Port_t intr_ctl_port; /* Ports of IIR register */
133 struct tty *tp; /* cross reference */
136 struct termios it_in; /* should be in struct tty */
137 struct termios it_out;
140 struct termios lt_in; /* should be in struct tty */
141 struct termios lt_out;
143 bool_t do_timestamp;
144 bool_t do_dcd_timestamp;
145 struct timeval timestamp;
146 struct timeval dcd_timestamp;
147 struct pps_state pps;
149 u_long bytes_in; /* statistics */
150 u_long bytes_out;
151 u_int delta_error_counts[CE_NTYPES];
152 u_long error_counts[CE_NTYPES];
154 u_long rclk;
156 struct resource *irqres;
157 struct resource *ioportres;
158 void *cookie;
164 u_char obuf1[256];
165 u_char obuf2[256];