aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2011-11-09 18:48:36 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2011-11-09 18:48:36 +0000
commitb3b1747a984f00fc07bb2c92b9be363ab363cb49 (patch)
tree0937b8c0b2b46bcc3386faf64475685bd3c10fe8 /sys/dev
parente9862e9b9eaa16ac487faba90c35e496fd9c9eda (diff)
downloadsrc-b3b1747a984f00fc07bb2c92b9be363ab363cb49.tar.gz
src-b3b1747a984f00fc07bb2c92b9be363ab363cb49.zip
Fix size of USB 3.0 descriptor field.
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=227401
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/controller/xhci.c2
-rw-r--r--sys/dev/usb/usb.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c
index 4d20770d3f64..f2f362749c85 100644
--- a/sys/dev/usb/controller/xhci.c
+++ b/sys/dev/usb/controller/xhci.c
@@ -2831,7 +2831,7 @@ struct xhci_bos_desc xhci_bosd = {
.bLength = sizeof(xhci_bosd.usb2extd),
.bDescriptorType = 1,
.bDevCapabilityType = 2,
- .bmAttributes = 2,
+ .bmAttributes[0] = 2,
},
.usbdcd = {
.bLength = sizeof(xhci_bosd.usbdcd),
diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h
index 59093e5ac831..fb1c8e677768 100644
--- a/sys/dev/usb/usb.h
+++ b/sys/dev/usb/usb.h
@@ -323,7 +323,7 @@ struct usb_devcap_usb2ext_descriptor {
uByte bLength;
uByte bDescriptorType;
uByte bDevCapabilityType;
- uByte bmAttributes;
+ uDWord bmAttributes;
#define USB_V2EXT_LPM 0x02
} __packed;
typedef struct usb_devcap_usb2ext_descriptor usb_devcap_usb2ext_descriptor_t;