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_axe.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_axe.c')
-rw-r--r-- | sys/dev/usb/if_axe.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c index 58a05abcc4f..0dd3ecaab56 100644 --- a/sys/dev/usb/if_axe.c +++ b/sys/dev/usb/if_axe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_axe.c,v 1.77 2007/06/13 11:15:29 mbalmer Exp $ */ +/* $OpenBSD: if_axe.c,v 1.78 2007/06/14 10:11:15 mbalmer Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Jonathan Gray <jsg@openbsd.org> @@ -173,7 +173,22 @@ const struct axe_type axe_devs[] = { #define axe_lookup(v, p) ((struct axe_type *)usb_lookup(axe_devs, v, p)) -USB_DECLARE_DRIVER_CLASS(axe, DV_IFNET); +int axe_match(struct device *, void *, void *); +void axe_attach(struct device *, struct device *, void *); +int axe_detach(struct device *, int); +int axe_activate(struct device *, enum devact); + +struct cfdriver axe_cd = { + NULL, "axe", DV_IFNET +}; + +const struct cfattach axe_ca = { + sizeof(struct axe_softc), + axe_match, + axe_attach, + axe_detach, + axe_activate, +}; int axe_tx_list_init(struct axe_softc *); int axe_rx_list_init(struct axe_softc *); |