summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_uath.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/if_uath.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/if_uath.c')
-rw-r--r--sys/dev/usb/if_uath.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/if_uath.c b/sys/dev/usb/if_uath.c
index 3ee0f7c2cef..f85dda16c6a 100644
--- a/sys/dev/usb/if_uath.c
+++ b/sys/dev/usb/if_uath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_uath.c,v 1.25 2007/06/12 16:26:36 mbalmer Exp $ */
+/* $OpenBSD: if_uath.c,v 1.26 2007/06/14 10:11:15 mbalmer Exp $ */
/*-
* Copyright (c) 2006
@@ -186,7 +186,22 @@ void uath_stop(struct ifnet *, int);
int uath_loadfirmware(struct uath_softc *, const u_char *, int);
int uath_activate(struct device *, enum devact);
-USB_DECLARE_DRIVER(uath);
+int uath_match(struct device *, void *, void *);
+void uath_attach(struct device *, struct device *, void *);
+int uath_detach(struct device *, int);
+int uath_activate(struct device *, enum devact);
+
+struct cfdriver uath_cd = {
+ NULL, "uath", DV_DULL
+};
+
+const struct cfattach uath_ca = {
+ sizeof(struct uath_softc),
+ uath_match,
+ uath_attach,
+ uath_detach,
+ uath_activate,
+};
int
uath_match(struct device *parent, void *match, void *aux)