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/uts.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/uts.c')
-rw-r--r-- | sys/dev/usb/uts.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/uts.c b/sys/dev/usb/uts.c index 69ec28a80af..028279d84f8 100644 --- a/sys/dev/usb/uts.c +++ b/sys/dev/usb/uts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uts.c,v 1.16 2007/06/13 06:25:03 mbalmer Exp $ */ +/* $OpenBSD: uts.c,v 1.17 2007/06/14 10:11:16 mbalmer Exp $ */ /* * Copyright (c) 2007 Robert Nagy <robert@openbsd.org> @@ -112,7 +112,22 @@ const struct wsmouse_accessops uts_accessops = { uts_disable, }; -USB_DECLARE_DRIVER(uts); +int uts_match(struct device *, void *, void *); +void uts_attach(struct device *, struct device *, void *); +int uts_detach(struct device *, int); +int uts_activate(struct device *, enum devact); + +struct cfdriver uts_cd = { + NULL, "uts", DV_DULL +}; + +const struct cfattach uts_ca = { + sizeof(struct uts_softc), + uts_match, + uts_attach, + uts_detach, + uts_activate, +}; int uts_match(struct device *parent, void *match, void *aux) |