diff options
| author | 2007-06-14 10:11:15 +0000 | |
|---|---|---|
| committer | 2007-06-14 10:11:15 +0000 | |
| commit | 9f5f6d504a0cbb684120cfba32c9bc24deaf87fa (patch) | |
| tree | 1177c930ce9a5bd0aefc7289aeb5857031509468 /sys/dev/usb/uhidev.c | |
| parent | I don't know what we will do with system packages yet, but prevent (diff) | |
| download | wireguard-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/uhidev.c')
| -rw-r--r-- | sys/dev/usb/uhidev.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/uhidev.c b/sys/dev/usb/uhidev.c index e410a843f31..60025f35655 100644 --- a/sys/dev/usb/uhidev.c +++ b/sys/dev/usb/uhidev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhidev.c,v 1.26 2007/06/12 16:26:36 mbalmer Exp $ */ +/* $OpenBSD: uhidev.c,v 1.27 2007/06/14 10:11:16 mbalmer Exp $ */ /* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -80,7 +80,22 @@ int uhidev_maxrepid(void *buf, int len); int uhidevprint(void *aux, const char *pnp); int uhidevsubmatch(struct device *parent, void *cf, void *aux); -USB_DECLARE_DRIVER(uhidev); +int uhidev_match(struct device *, void *, void *); +void uhidev_attach(struct device *, struct device *, void *); +int uhidev_detach(struct device *, int); +int uhidev_activate(struct device *, enum devact); + +struct cfdriver uhidev_cd = { + NULL, "uhidev", DV_DULL +}; + +const struct cfattach uhidev_ca = { + sizeof(struct uhidev_softc), + uhidev_match, + uhidev_attach, + uhidev_detach, + uhidev_activate, +}; int uhidev_match(struct device *parent, void *match, void *aux) |
