summaryrefslogtreecommitdiff
path: root/sys/arch/octeon/dev/octhci.c
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2014-07-12 17:53:46 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2014-07-12 17:53:46 +0000
commit6f9a645bb102d32555b79620613f955764131459 (patch)
tree2dcd7bb4f58074020e0f569203cc3c0eacd71361 /sys/arch/octeon/dev/octhci.c
parente372c98e388ab9c8401e3c5de0afae8eb41d7b3b (diff)
Fix root hub descriptors by matching ehci(4)'s descriptors.
Reminded by mpi@, thanks! On a side note usb sticks don't get fried anymore, they "just" freeze the system.
Diffstat (limited to 'sys/arch/octeon/dev/octhci.c')
-rw-r--r--sys/arch/octeon/dev/octhci.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/sys/arch/octeon/dev/octhci.c b/sys/arch/octeon/dev/octhci.c
index 7656f2d9af6..2c285c2c855 100644
--- a/sys/arch/octeon/dev/octhci.c
+++ b/sys/arch/octeon/dev/octhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: octhci.c,v 1.11 2014/07/12 16:43:31 pirofti Exp $ */
+/* $OpenBSD: octhci.c,v 1.12 2014/07/12 17:53:45 pirofti Exp $ */
/*
* Copyright (c) 2014 Paul Irofti <pirofti@openbsd.org>
@@ -601,21 +601,13 @@ const usb_endpoint_descriptor_t octhci_endpd = {
UDESC_ENDPOINT,
UE_DIR_IN | OCTHCI_INTR_ENDPT,
UE_INTERRUPT,
- {2, 0}, /* max 15 ports */
- 255
-};
-
-const usb_endpoint_ss_comp_descriptor_t octhci_endpcd = {
- USB_ENDPOINT_SS_COMP_DESCRIPTOR_SIZE,
- UDESC_ENDPOINT_SS_COMP,
- 0,
- 0,
- {0, 0} /* XXX */
+ {8, 0}, /* max packet */
+ 12
};
const usb_hub_descriptor_t octhci_hubd = {
USB_HUB_DESCRIPTOR_SIZE,
- UDESC_SS_HUB,
+ UDESC_HUB,
0,
{0,0},
0,