summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhub.c
diff options
context:
space:
mode:
authormbalmer <mbalmer@openbsd.org>2007-06-14 10:11:15 +0000
committermbalmer <mbalmer@openbsd.org>2007-06-14 10:11:15 +0000
commit9f5f6d504a0cbb684120cfba32c9bc24deaf87fa (patch)
tree1177c930ce9a5bd0aefc7289aeb5857031509468 /sys/dev/usb/uhub.c
parentI don't know what we will do with system packages yet, but prevent (diff)
downloadwireguard-openbsd-9f5f6d504a0cbb684120cfba32c9bc24deaf87fa.tar.xz
wireguard-openbsd-9f5f6d504a0cbb684120cfba32c9bc24deaf87fa.zip
Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and
USB_DECLARE_DRIVER macros. No binary change. ok dlg.
Diffstat (limited to 'sys/dev/usb/uhub.c')
-rw-r--r--sys/dev/usb/uhub.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c
index 2d460791d9e..9551bf12ea0 100644
--- a/sys/dev/usb/uhub.c
+++ b/sys/dev/usb/uhub.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhub.c,v 1.46 2007/06/12 16:26:36 mbalmer Exp $ */
+/* $OpenBSD: uhub.c,v 1.47 2007/06/14 10:11:16 mbalmer Exp $ */
/* $NetBSD: uhub.c,v 1.64 2003/02/08 03:32:51 ichiro Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */
@@ -88,7 +88,22 @@ void uhub_intr(usbd_xfer_handle, usbd_private_handle,usbd_status);
* Every other driver only connects to hubs
*/
-USB_DECLARE_DRIVER(uhub);
+int uhub_match(struct device *, void *, void *);
+void uhub_attach(struct device *, struct device *, void *);
+int uhub_detach(struct device *, int);
+int uhub_activate(struct device *, enum devact);
+
+struct cfdriver uhub_cd = {
+ NULL, "uhub", DV_DULL
+};
+
+const struct cfattach uhub_ca = {
+ sizeof(struct uhub_softc),
+ uhub_match,
+ uhub_attach,
+ uhub_detach,
+ uhub_activate,
+};
struct cfattach uhub_uhub_ca = {
sizeof(struct uhub_softc), uhub_match, uhub_attach,