Lines Matching defs:ucom_softc
144 struct ucom_softc { struct
145 device_t sc_dev; /* base device */
147 struct usbd_device * sc_udev; /* USB device */
148 struct usbd_interface * sc_iface; /* data interface */
150 int sc_bulkin_no; /* bulk in endpoint address */
151 struct usbd_pipe * sc_bulkin_pipe;/* bulk in pipe */
152 u_int sc_ibufsize; /* read buffer size */
153 u_int sc_ibufsizepad; /* read buffer size padded */
154 struct ucom_buffer sc_ibuff[UCOM_IN_BUFFS];
158 int sc_bulkout_no; /* bulk out endpoint address */
159 struct usbd_pipe * sc_bulkout_pipe;/* bulk out pipe */
160 u_int sc_obufsize; /* write buffer size */
161 u_int sc_opkthdrlen; /* header length of */
162 struct ucom_buffer sc_obuff[UCOM_OUT_BUFFS];
166 void *sc_si;
168 const struct ucom_methods *sc_methods;
169 void *sc_parent;
170 int sc_portno;
172 struct tty *sc_tty; /* our tty */
173 u_char sc_lsr;
174 u_char sc_msr;
175 u_char sc_mcr;
176 volatile u_char sc_rx_stopped;
177 u_char sc_rx_unblock;
178 u_char sc_tx_stopped;
179 int sc_swflags;
181 enum ucom_state {
186 } sc_state;
187 bool sc_closing; /* software is closing */
188 bool sc_dying; /* hardware is gone */
190 struct pps_state sc_pps_state; /* pps state */
192 krndsource_t sc_rndsource; /* random source */
194 kmutex_t sc_lock;
195 kcondvar_t sc_statecv;
197 struct timeval sc_hup_time;