diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-05-03 02:20:36 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-05-03 02:20:36 +0000 |
commit | 5b92d7a741e1c34c9d68a85e4b9a47c24ea37b56 (patch) | |
tree | ac62c98e8633ce27c0186aaa2e0856e4093ade97 /sys/dev/usb/usbcdc.h | |
parent | c31dae3edb4a874106f38c4f1418182e49eda727 (diff) |
Sync with NetBSD. Tested with a USB keyboard, USB mouse, and three different
kue(4) Ethernet devices.
Diffstat (limited to 'sys/dev/usb/usbcdc.h')
-rw-r--r-- | sys/dev/usb/usbcdc.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/dev/usb/usbcdc.h b/sys/dev/usb/usbcdc.h index 1b877d2ea6b..5efb316796c 100644 --- a/sys/dev/usb/usbcdc.h +++ b/sys/dev/usb/usbcdc.h @@ -1,5 +1,5 @@ -/* $OpenBSD: usbcdc.h,v 1.4 2000/11/08 18:10:39 aaron Exp $ */ -/* $NetBSD: usbcdc.h,v 1.7 2000/05/30 10:10:18 augustss Exp $ */ +/* $OpenBSD: usbcdc.h,v 1.5 2001/05/03 02:20:34 aaron Exp $ */ +/* $NetBSD: usbcdc.h,v 1.8 2001/02/16 20:15:57 kenh Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbcdc.h,v 1.7 1999/11/17 22:33:48 n_hibma Exp $ */ /* @@ -147,4 +147,16 @@ typedef struct { } UPACKED usb_cdc_notification_t; #define UCDC_NOTIFICATION_LENGTH 8 +/* + * Bits set in the SERIAL STATE notifcation (first byte of data) + */ + +#define UCDC_N_SERIAL_OVERRUN 0x40 +#define UCDC_N_SERIAL_PARITY 0x20 +#define UCDC_N_SERIAL_FRAMING 0x10 +#define UCDC_N_SERIAL_RI 0x08 +#define UCDC_N_SERIAL_BREAK 0x04 +#define UCDC_N_SERIAL_DSR 0x02 +#define UCDC_N_SERIAL_DCD 0x01 + #endif /* _USBCDC_H_ */ |