aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbcdc.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-01-09 04:24:28 +0000
committerWarner Losh <imp@FreeBSD.org>2003-01-09 04:24:28 +0000
commit52b019b3ed87851598917ed6052e3a6481886c04 (patch)
treeb95a77020e0667e5152fa632b086b6c3633b1c37 /sys/dev/usb/usbcdc.h
parentc3207b4d9afcb6ec3cbcf5745feab009292420e5 (diff)
Notes
Diffstat (limited to 'sys/dev/usb/usbcdc.h')
-rw-r--r--sys/dev/usb/usbcdc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/usb/usbcdc.h b/sys/dev/usb/usbcdc.h
index 8b81dbb6ccbc..45266e44302c 100644
--- a/sys/dev/usb/usbcdc.h
+++ b/sys/dev/usb/usbcdc.h
@@ -146,6 +146,18 @@ typedef struct {
} 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
+
/* Serial state bit masks */
#define UCDC_MDM_RXCARRIER 0x01
#define UCDC_MDM_TXCARRIER 0x02