summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2014-03-08 11:49:19 +0000
committermpi <mpi@openbsd.org>2014-03-08 11:49:19 +0000
commit386803d2877b69b7f53b95f607a0b27af81226e5 (patch)
tree939ec84bb156a85ecb71963b684b393289e4bbfd /sys/dev/usb/usb.c
parentAdd various super speed defines, mostly the same as in FreeBSD to (diff)
downloadwireguard-openbsd-386803d2877b69b7f53b95f607a0b27af81226e5.tar.xz
wireguard-openbsd-386803d2877b69b7f53b95f607a0b27af81226e5.zip
Attach to host controller drivers advertising USB 3.0 support and assign
the correct speed. This has no effect for the moment since there is no such driver in our tree, but something tells me it might change soon.
Diffstat (limited to 'sys/dev/usb/usb.c')
-rw-r--r--sys/dev/usb/usb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index b208723dad3..d15ecf68f2d 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb.c,v 1.93 2013/12/06 21:03:05 deraadt Exp $ */
+/* $OpenBSD: usb.c,v 1.94 2014/03/08 11:49:19 mpi Exp $ */
/* $NetBSD: usb.c,v 1.77 2003/01/01 00:10:26 thorpej Exp $ */
/*
@@ -140,8 +140,7 @@ const struct cfattach usb_ca = {
int
usb_match(struct device *parent, void *match, void *aux)
{
- DPRINTF(("usbd_match\n"));
- return (UMATCH_GENERIC);
+ return (1);
}
void
@@ -153,8 +152,6 @@ usb_attach(struct device *parent, struct device *self, void *aux)
int usbrev;
int speed;
- DPRINTF(("usbd_attach\n"));
-
if (usb_nbuses == 0) {
rw_init(&usbpalock, "usbpalock");
TAILQ_INIT(&usb_abort_tasks);
@@ -179,6 +176,9 @@ usb_attach(struct device *parent, struct device *self, void *aux)
case USBREV_2_0:
speed = USB_SPEED_HIGH;
break;
+ case USBREV_3_0:
+ speed = USB_SPEED_SUPER;
+ break;
default:
printf(", not supported\n");
sc->sc_bus->dying = 1;