mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
Fix size of USB 3.0 descriptor field.
MFC after: 3 days
This commit is contained in:
parent
e9862e9b9e
commit
b3b1747a98
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227401
@ -2831,7 +2831,7 @@ struct xhci_bos_desc xhci_bosd = {
|
|||||||
.bLength = sizeof(xhci_bosd.usb2extd),
|
.bLength = sizeof(xhci_bosd.usb2extd),
|
||||||
.bDescriptorType = 1,
|
.bDescriptorType = 1,
|
||||||
.bDevCapabilityType = 2,
|
.bDevCapabilityType = 2,
|
||||||
.bmAttributes = 2,
|
.bmAttributes[0] = 2,
|
||||||
},
|
},
|
||||||
.usbdcd = {
|
.usbdcd = {
|
||||||
.bLength = sizeof(xhci_bosd.usbdcd),
|
.bLength = sizeof(xhci_bosd.usbdcd),
|
||||||
|
@ -323,7 +323,7 @@ struct usb_devcap_usb2ext_descriptor {
|
|||||||
uByte bLength;
|
uByte bLength;
|
||||||
uByte bDescriptorType;
|
uByte bDescriptorType;
|
||||||
uByte bDevCapabilityType;
|
uByte bDevCapabilityType;
|
||||||
uByte bmAttributes;
|
uDWord bmAttributes;
|
||||||
#define USB_V2EXT_LPM 0x02
|
#define USB_V2EXT_LPM 0x02
|
||||||
} __packed;
|
} __packed;
|
||||||
typedef struct usb_devcap_usb2ext_descriptor usb_devcap_usb2ext_descriptor_t;
|
typedef struct usb_devcap_usb2ext_descriptor usb_devcap_usb2ext_descriptor_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user