History

usb: Add USB3.1 SuperSpeedPlus Isoc Endpoint Companion descriptor

USB3.1 specifies a SuperSpeedPlus Isoc endpoint companion descriptor which is returned as part of the devices complete configuration descriptor. It contains number of bytes per service interval which is needed when reserving bus time in the schedule for transfers over 48K bytes per service interval. If bmAttributes bit 7 is set in the old SuperSpeed Endpoint Companion descriptor, it will be ollowed by the new SuperSpeedPlus Isoc Endpoint Companion descriptor.

Mathias Nyman committed 10 years ago

Commit c8b1d891 parent 172ad9a1 file · +18 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/usb/ch9.h+18−0
@@ -234,6 +234,8 @@ struct usb_ctrlrequest { · 233 unmodified lines
234234 #define USB_DT_PIPE_USAGE 0x24
235235 /* From the USB 3.0 spec */
236236 #define USB_DT_SS_ENDPOINT_COMP 0x30
237+/* From the USB 3.1 spec */
238+#define USB_DT_SSP_ISOC_ENDPOINT_COMP 0x31
237239
238240 /* Conventional codes for class-specific descriptors. The convention is
239241 * defined in the USB "Common Class" Spec (3.11). Individual class specs
@@ -613,6 +615,20 @@ static inline int usb_endpoint_interrupt_type( · 373 unmodified lines
613615
614616 /*-------------------------------------------------------------------------*/
615617
618+/* USB_DT_SSP_ISOC_ENDPOINT_COMP: SuperSpeedPlus Isochronous Endpoint Companion
619+ * descriptor
620+ */
621+struct usb_ssp_isoc_ep_comp_descriptor {
622+ __u8 bLength;
623+ __u8 bDescriptorType;
624+ __le16 wReseved;
625+ __le32 dwBytesPerInterval;
626+} __attribute__ ((packed));
627+
628+#define USB_DT_SSP_ISOC_EP_COMP_SIZE 8
629+
630+/*-------------------------------------------------------------------------*/
631+
616632 /* USB_DT_SS_ENDPOINT_COMP: SuperSpeed Endpoint Companion descriptor */
617633 struct usb_ss_ep_comp_descriptor {
618634 __u8 bLength;
@@ -646,6 +662,8 @@ usb_ss_max_streams(const struct usb_ss_ep_comp_descriptor *comp) · 27 unmodified lines
646662
647663 /* Bits 1:0 of bmAttributes if this is an isoc endpoint */
648664 #define USB_SS_MULT(p) (1 + ((p) & 0x3))
665+/* Bit 7 of bmAttributes if a SSP isoc endpoint companion descriptor exists */
666+#define USB_SS_SSP_ISOC_COMP(p) ((p) & (1 << 7))
649667
650668 /*-------------------------------------------------------------------------*/
651669

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t