summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ugen.c
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-14 10:11:17 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-14 10:11:17 +0000
commit48939e5d0b01761f2fb9609643a9584084ac358e (patch)
treec120ec056828b2bdb3359c328b980e7c56e47562 /sys/dev/usb/ugen.c
parentd885abbcc7cc8875af669798ca0d6c6f6a0d1c90 (diff)
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/ugen.c')
-rw-r--r--sys/dev/usb/ugen.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/ugen.c b/sys/dev/usb/ugen.c
index 3daf002a728..8a2e445bf99 100644
--- a/sys/dev/usb/ugen.c
+++ b/sys/dev/usb/ugen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ugen.c,v 1.48 2007/06/12 16:26:36 mbalmer Exp $ */
+/* $OpenBSD: ugen.c,v 1.49 2007/06/14 10:11:15 mbalmer Exp $ */
/* $NetBSD: ugen.c,v 1.63 2002/11/26 18:49:48 christos Exp $ */
/* $FreeBSD: src/sys/dev/usb/ugen.c,v 1.26 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -130,7 +130,22 @@ int ugen_get_alt_index(struct ugen_softc *sc, int ifaceidx);
#define UGENENDPOINT(n) (minor(n) & 0xf)
#define UGENDEV(u, e) (makedev(0, ((u) << 4) | (e)))
-USB_DECLARE_DRIVER(ugen);
+int ugen_match(struct device *, void *, void *);
+void ugen_attach(struct device *, struct device *, void *);
+int ugen_detach(struct device *, int);
+int ugen_activate(struct device *, enum devact);
+
+struct cfdriver ugen_cd = {
+ NULL, "ugen", DV_DULL
+};
+
+const struct cfattach ugen_ca = {
+ sizeof(struct ugen_softc),
+ ugen_match,
+ ugen_attach,
+ ugen_detach,
+ ugen_activate,
+};
int
ugen_match(struct device *parent, void *match, void *aux)