aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2022-07-25 09:58:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-25 10:57:40 +0200
commitb4023554b1fb49f73a09e5f346a5facbf27d7383 (patch)
tree5b24e662fbd9b02e92a98a9c900ac304a2b731f3 /include/uapi
parentUSB: docs: fixed table margin in configfs-usb-gadget-mass-storage (diff)
downloadlinux-dev-b4023554b1fb49f73a09e5f346a5facbf27d7383.tar.xz
linux-dev-b4023554b1fb49f73a09e5f346a5facbf27d7383.zip
USB: cdc: add control-signal defines
Add defines for the Control Signal Bitmap Values from section 6.2.14 SetControlLineState of the CDC specification version 1.1. Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20220725075841.1187-2-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/usb/cdc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/usb/cdc.h b/include/uapi/linux/usb/cdc.h
index 6d61550959ef..372c81425cae 100644
--- a/include/uapi/linux/usb/cdc.h
+++ b/include/uapi/linux/usb/cdc.h
@@ -271,6 +271,10 @@ struct usb_cdc_line_coding {
__u8 bDataBits;
} __attribute__ ((packed));
+/* Control Signal Bitmap Values from 6.2.14 SetControlLineState */
+#define USB_CDC_CTRL_DTR (1 << 0)
+#define USB_CDC_CTRL_RTS (1 << 1)
+
/* table 62; bits in multicast filter */
#define USB_CDC_PACKET_TYPE_PROMISCUOUS (1 << 0)
#define USB_CDC_PACKET_TYPE_ALL_MULTICAST (1 << 1) /* no filter */