summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-07-09 15:47:55 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-07-09 15:47:55 +0000
commit2670b664800e3af0d1f17d6d3c2a828d75b03cae (patch)
tree6369a7a71c8cd85c9e2b4927315d74b5ae91b952 /sys/dev/usb/uhci.c
parent66a321f8929826c820a40140fffacb73732ef86f (diff)
Adds an optional bus function to set the address of a new device and
explicitly set it when required. Right now xhci(4) does not need such function because it assigns addresses when the first pipe of a device is opened. ok yuo@, pirofti@
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 51706c7ff2e..dcb0d9cc673 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.124 2014/06/04 13:52:30 mpi Exp $ */
+/* $OpenBSD: uhci.c,v 1.125 2014/07/09 15:47:54 mpi Exp $ */
/* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -250,6 +250,7 @@ UREAD4(struct uhci_softc *sc, bus_size_t r)
struct usbd_bus_methods uhci_bus_methods = {
.open_pipe = uhci_open,
+ .dev_setaddr = usbd_set_address,
.soft_intr = uhci_softintr,
.do_poll = uhci_poll,
.allocx = uhci_allocx,