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/if_kue.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/if_kue.c')
-rw-r--r-- | sys/dev/usb/if_kue.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c index bdbc0d78687..2e34adab85b 100644 --- a/sys/dev/usb/if_kue.c +++ b/sys/dev/usb/if_kue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_kue.c,v 1.54 2007/06/13 11:15:29 mbalmer Exp $ */ +/* $OpenBSD: if_kue.c,v 1.55 2007/06/14 10:11:15 mbalmer Exp $ */ /* $NetBSD: if_kue.c,v 1.50 2002/07/16 22:00:31 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -154,7 +154,22 @@ const struct usb_devno kue_devs[] = { }; #define kue_lookup(v, p) (usb_lookup(kue_devs, v, p)) -USB_DECLARE_DRIVER_CLASS(kue, DV_IFNET); +int kue_match(struct device *, void *, void *); +void kue_attach(struct device *, struct device *, void *); +int kue_detach(struct device *, int); +int kue_activate(struct device *, enum devact); + +struct cfdriver kue_cd = { + NULL, "kue", DV_IFNET +}; + +const struct cfattach kue_ca = { + sizeof(struct kue_softc), + kue_match, + kue_attach, + kue_detach, + kue_activate, +}; int kue_tx_list_init(struct kue_softc *); int kue_rx_list_init(struct kue_softc *); |