summaryrefslogtreecommitdiffstats
path: root/sys/dev/if_ndis
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-06-18 22:24:32 +0000
committerimp <imp@FreeBSD.org>2007-06-18 22:24:32 +0000
commit54ee9439a2328f935838093a7c5ac676a23bc173 (patch)
treed6e74c94677528499dbfc99f23679532a98aed72 /sys/dev/if_ndis
parent17a6c4798c767910dc5a6cf5d760a77d813009ce (diff)
downloadFreeBSD-src-54ee9439a2328f935838093a7c5ac676a23bc173.zip
FreeBSD-src-54ee9439a2328f935838093a7c5ac676a23bc173.tar.gz
finish removing usb_port.h macros.
Use device_foo_t to declare functions a little de-k&r
Diffstat (limited to 'sys/dev/if_ndis')
-rw-r--r--sys/dev/if_ndis/if_ndis_usb.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/dev/if_ndis/if_ndis_usb.c b/sys/dev/if_ndis/if_ndis_usb.c
index d5073ac..3fdc0ac 100644
--- a/sys/dev/if_ndis/if_ndis_usb.c
+++ b/sys/dev/if_ndis/if_ndis_usb.c
@@ -69,10 +69,9 @@ __FBSDID("$FreeBSD$");
MODULE_DEPEND(ndis, usb, 1, 1, 1);
-static int ndisusb_match (device_t);
-static int ndisusb_attach (device_t);
-static struct resource_list *ndis_get_resource_list
- (device_t, device_t);
+static device_probe_t ndisusb_match;
+static device_attach_t ndisusb_attach;
+static bus_get_resource_list_t ndis_get_resource_list;
extern int ndisdrv_modevent (module_t, int, void *);
extern int ndis_attach (device_t);
@@ -108,22 +107,25 @@ static devclass_t ndis_devclass;
DRIVER_MODULE(ndis, uhub, ndis_driver, ndis_devclass, ndisdrv_modevent, 0);
-USB_MATCH(ndisusb)
+static int
+ndisusb_match(device_t self)
{
- USB_MATCH_START(ndisusb, uaa);
+ struct usb_attach_arg *uaa = device_get_ivars(self);
if (windrv_lookup(0, "USB Bus") == NULL)
- return(UMATCH_NONE);
+ return (UMATCH_NONE);
if (uaa->iface != NULL)
- return(UMATCH_NONE);
+ return (UMATCH_NONE);
- return(UMATCH_NONE);
+ return (UMATCH_NONE);
}
-USB_ATTACH(ndisusb)
+static int
+ndisusb_attach(device_t self)
{
- USB_ATTACH_START(ndisusb, dummy, uaa);
+ struct ndisusb_softc *dummy = device_get_softc(self);
+ struct usb_attach_arg *uaa = device_get_ivars(self);
struct ndis_softc *sc;
driver_object *drv;
@@ -146,9 +148,7 @@ USB_ATTACH(ndisusb)
}
static struct resource_list *
-ndis_get_resource_list(dev, child)
- device_t dev;
- device_t child;
+ndis_get_resource_list(device_t dev, device_t child)
{
struct ndis_softc *sc;
OpenPOWER on IntegriCloud