summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ulpt.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/ulpt.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/ulpt.c')
-rw-r--r--sys/dev/usb/ulpt.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/ulpt.c b/sys/dev/usb/ulpt.c
index 4658c2e1eb1..892b6b34198 100644
--- a/sys/dev/usb/ulpt.c
+++ b/sys/dev/usb/ulpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ulpt.c,v 1.31 2007/06/12 16:26:36 mbalmer Exp $ */
+/* $OpenBSD: ulpt.c,v 1.32 2007/06/14 10:11:16 mbalmer Exp $ */
/* $NetBSD: ulpt.c,v 1.57 2003/01/05 10:19:42 scw Exp $ */
/* $FreeBSD: src/sys/dev/usb/ulpt.c,v 1.24 1999/11/17 22:33:44 n_hibma Exp $ */
@@ -128,7 +128,22 @@ void ieee1284_print_id(char *);
#define ULPTFLAGS(s) (minor(s) & 0xe0)
-USB_DECLARE_DRIVER(ulpt);
+int ulpt_match(struct device *, void *, void *);
+void ulpt_attach(struct device *, struct device *, void *);
+int ulpt_detach(struct device *, int);
+int ulpt_activate(struct device *, enum devact);
+
+struct cfdriver ulpt_cd = {
+ NULL, "ulpt", DV_DULL
+};
+
+const struct cfattach ulpt_ca = {
+ sizeof(struct ulpt_softc),
+ ulpt_match,
+ ulpt_attach,
+ ulpt_detach,
+ ulpt_activate,
+};
int
ulpt_match(struct device *parent, void *match, void *aux)