History

usb: add usb_otg20_descriptor for OTG 2.0 and above

OTG 2.0 introduces bcdOTG in otg descriptor to identify the OTG and EH supplement release number with which the OTG device is compliant, this patch adds structure usb_otg20_descriptor for OTG 2.0 and above.

Macpaul Lin committed 11 years ago

Commit 8486a0b1 parent d91de091 file · +11 −0Browse files

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

Unified · Split

include/uapi/linux/usb/ch9.h+11−0
@@ -674,6 +674,17 @@ struct usb_otg_descriptor { · 673 unmodified lines
674674 __u8 bmAttributes; /* support for HNP, SRP, etc */
675675 } __attribute__ ((packed));
676676
677+/* USB_DT_OTG (from OTG 2.0 supplement) */
678+struct usb_otg20_descriptor {
679+ __u8 bLength;
680+ __u8 bDescriptorType;
681+
682+ __u8 bmAttributes; /* support for HNP, SRP and ADP, etc */
683+ __le16 bcdOTG; /* OTG and EH supplement release number
684+ * in binary-coded decimal(i.e. 2.0 is 0200H)
685+ */
686+} __attribute__ ((packed));
687+
677688 /* from usb_otg_descriptor.bmAttributes */
678689 #define USB_OTG_SRP (1 << 0)
679690 #define USB_OTG_HNP (1 << 1) /* swap host/device roles */

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