diff options
author | 2014-07-09 15:47:54 +0000 | |
---|---|---|
committer | 2014-07-09 15:47:54 +0000 | |
commit | 890c91c751fe1212a24b1a585d4f3ef97e810618 (patch) | |
tree | d9f3062c79141205f7ae41ed227b8f4a60d39f3b /sys/dev/usb/usbdivar.h | |
parent | use explicit_bzero for stack and freed variables (diff) | |
download | wireguard-openbsd-890c91c751fe1212a24b1a585d4f3ef97e810618.tar.xz wireguard-openbsd-890c91c751fe1212a24b1a585d4f3ef97e810618.zip |
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/usbdivar.h')
-rw-r--r-- | sys/dev/usb/usbdivar.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/usbdivar.h b/sys/dev/usb/usbdivar.h index 7cbeaafbe53..18ae5067776 100644 --- a/sys/dev/usb/usbdivar.h +++ b/sys/dev/usb/usbdivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: usbdivar.h,v 1.59 2014/05/28 11:20:55 mpi Exp $ */ +/* $OpenBSD: usbdivar.h,v 1.60 2014/07/09 15:47:54 mpi Exp $ */ /* $NetBSD: usbdivar.h,v 1.70 2002/07/11 21:14:36 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbdivar.h,v 1.11 1999/11/17 22:33:51 n_hibma Exp $ */ @@ -55,6 +55,7 @@ struct usbd_endpoint { struct usbd_bus_methods { usbd_status (*open_pipe)(struct usbd_pipe *); + int (*dev_setaddr)(struct usbd_device *, int); void (*soft_intr)(void *); void (*do_poll)(struct usbd_bus *); struct usbd_xfer * (*allocx)(struct usbd_bus *); @@ -237,6 +238,7 @@ usbd_status usbd_reset_port(struct usbd_device *, usbd_status usbd_setup_pipe(struct usbd_device *, struct usbd_interface *, struct usbd_endpoint *, int, struct usbd_pipe **); +int usbd_set_address(struct usbd_device *, int); usbd_status usbd_new_device(struct device *, struct usbd_bus *, int, int, int, struct usbd_port *); usbd_status usbd_fill_iface_data(struct usbd_device *, int, int); |