Deleted Added
full compact
usb_serial.h (239179) usb_serial.h (239299)
1/* $NetBSD: ucomvar.h,v 1.9 2001/01/23 21:56:17 augustss Exp $ */
1/* $NetBSD: ucomvar.h,v 1.9 2001/01/23 21:56:17 augustss Exp $ */
2/* $FreeBSD: head/sys/dev/usb/serial/usb_serial.h 239179 2012-08-10 15:21:12Z hselasky $ */
2/* $FreeBSD: head/sys/dev/usb/serial/usb_serial.h 239299 2012-08-15 15:42:57Z hselasky $ */
3
4/*-
5 * Copyright (c) 2001-2002, Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:

--- 121 unchanged lines hidden (view full) ---

132 struct termios termios_copy;
133};
134
135struct ucom_super_softc {
136 struct usb_process sc_tq;
137 int sc_unit;
138 int sc_subunits;
139 int sc_refs;
3
4/*-
5 * Copyright (c) 2001-2002, Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:

--- 121 unchanged lines hidden (view full) ---

132 struct termios termios_copy;
133};
134
135struct ucom_super_softc {
136 struct usb_process sc_tq;
137 int sc_unit;
138 int sc_subunits;
139 int sc_refs;
140 int sc_wait_refs;
140 int sc_flag; /* see UCOM_FLAG_XXX */
141 struct sysctl_oid *sc_sysctl_ttyname;
142 struct sysctl_oid *sc_sysctl_ttyports;
143 char sc_ttyname[16];
144};
145
146struct ucom_softc {
147 /*
148 * NOTE: To avoid loosing level change information we use two

--- 24 unchanged lines hidden (view full) ---

173 uint16_t sc_flag;
174#define UCOM_FLAG_RTS_IFLOW 0x01 /* use RTS input flow control */
175#define UCOM_FLAG_GONE 0x02 /* the device is gone */
176#define UCOM_FLAG_ATTACHED 0x04 /* set if attached */
177#define UCOM_FLAG_GP_DATA 0x08 /* set if get and put data is possible */
178#define UCOM_FLAG_LL_READY 0x20 /* set if low layer is ready */
179#define UCOM_FLAG_HL_READY 0x40 /* set if high layer is ready */
180#define UCOM_FLAG_CONSOLE 0x80 /* set if device is a console */
141 struct sysctl_oid *sc_sysctl_ttyname;
142 struct sysctl_oid *sc_sysctl_ttyports;
143 char sc_ttyname[16];
144};
145
146struct ucom_softc {
147 /*
148 * NOTE: To avoid loosing level change information we use two

--- 24 unchanged lines hidden (view full) ---

173 uint16_t sc_flag;
174#define UCOM_FLAG_RTS_IFLOW 0x01 /* use RTS input flow control */
175#define UCOM_FLAG_GONE 0x02 /* the device is gone */
176#define UCOM_FLAG_ATTACHED 0x04 /* set if attached */
177#define UCOM_FLAG_GP_DATA 0x08 /* set if get and put data is possible */
178#define UCOM_FLAG_LL_READY 0x20 /* set if low layer is ready */
179#define UCOM_FLAG_HL_READY 0x40 /* set if high layer is ready */
180#define UCOM_FLAG_CONSOLE 0x80 /* set if device is a console */
181#define UCOM_FLAG_WAIT_REFS 0x0100 /* set if we must wait for refs */
182#define UCOM_FLAG_FREE_UNIT 0x0200 /* set if we must free the unit */
181 uint8_t sc_lsr;
182 uint8_t sc_msr;
183 uint8_t sc_mcr;
184 /* programmed line state bits */
185 uint8_t sc_pls_set; /* set bits */
186 uint8_t sc_pls_clr; /* cleared bits */
187 uint8_t sc_pls_curr; /* last state */
188#define UCOM_LS_DTR 0x01

--- 30 unchanged lines hidden ---
183 uint8_t sc_lsr;
184 uint8_t sc_msr;
185 uint8_t sc_mcr;
186 /* programmed line state bits */
187 uint8_t sc_pls_set; /* set bits */
188 uint8_t sc_pls_clr; /* cleared bits */
189 uint8_t sc_pls_curr; /* last state */
190#define UCOM_LS_DTR 0x01

--- 30 unchanged lines hidden ---