diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-14 10:11:17 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-14 10:11:17 +0000 |
commit | 48939e5d0b01761f2fb9609643a9584084ac358e (patch) | |
tree | c120ec056828b2bdb3359c328b980e7c56e47562 /sys/dev/usb/if_upl.c | |
parent | d885abbcc7cc8875af669798ca0d6c6f6a0d1c90 (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/if_upl.c')
-rw-r--r-- | sys/dev/usb/if_upl.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/if_upl.c b/sys/dev/usb/if_upl.c index 374d41fe357..ff2e86ddfd3 100644 --- a/sys/dev/usb/if_upl.c +++ b/sys/dev/usb/if_upl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_upl.c,v 1.37 2007/06/13 11:15:29 mbalmer Exp $ */ +/* $OpenBSD: if_upl.c,v 1.38 2007/06/14 10:11:15 mbalmer Exp $ */ /* $NetBSD: if_upl.c,v 1.19 2002/07/11 21:14:26 augustss Exp $ */ /* * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -177,7 +177,22 @@ struct upl_type sc_devs[] = { { 0, 0 } }; -USB_DECLARE_DRIVER_CLASS(upl, DV_IFNET); +int upl_match(struct device *, void *, void *); +void upl_attach(struct device *, struct device *, void *); +int upl_detach(struct device *, int); +int upl_activate(struct device *, enum devact); + +struct cfdriver upl_cd = { + NULL, "upl", DV_IFNET +}; + +const struct cfattach upl_ca = { + sizeof(struct upl_softc), + upl_match, + upl_attach, + upl_detach, + upl_activate, +}; int upl_openpipes(struct upl_softc *); int upl_tx_list_init(struct upl_softc *); |