summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_url.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_url.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_url.c')
-rw-r--r--sys/dev/usb/if_url.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/if_url.c b/sys/dev/usb/if_url.c
index 447652fb82b..d49b4f9cffd 100644
--- a/sys/dev/usb/if_url.c
+++ b/sys/dev/usb/if_url.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_url.c,v 1.47 2007/06/13 11:15:29 mbalmer Exp $ */
+/* $OpenBSD: if_url.c,v 1.48 2007/06/14 10:11:15 mbalmer Exp $ */
/* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */
/*
* Copyright (c) 2001, 2002
@@ -85,7 +85,22 @@
/* Function declarations */
-USB_DECLARE_DRIVER_CLASS(url, DV_IFNET);
+int url_match(struct device *, void *, void *);
+void url_attach(struct device *, struct device *, void *);
+int url_detach(struct device *, int);
+int url_activate(struct device *, enum devact);
+
+struct cfdriver url_cd = {
+ NULL, "url", DV_IFNET
+};
+
+const struct cfattach url_ca = {
+ sizeof(struct url_softc),
+ url_match,
+ url_attach,
+ url_detach,
+ url_activate,
+};
int url_openpipes(struct url_softc *);
int url_rx_list_init(struct url_softc *);