diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1998-12-09 23:36:15 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1998-12-09 23:36:15 +0000 |
commit | ff213ddb78391d3b7987d882cee8311e71bfcee6 (patch) | |
tree | 250fd09c4c1fabc311884a9c64176e48dc077267 /sys/dev/usb/uhub.c | |
parent | 1e167561f8097938bd2ee681a27aa32b3b30ce93 (diff) | |
download | FreeBSD-src-ff213ddb78391d3b7987d882cee8311e71bfcee6.zip FreeBSD-src-ff213ddb78391d3b7987d882cee8311e71bfcee6.tar.gz |
Various bug fixes:
1) Removed 'emulation' of bitmaps in printfs, FreeBSD seems to have caught
up on that one
2) Fixed a few bugs in the timeout/timo timeout variables
3) First attempt at fixing a bug mentioned by Kazu: uhci_run is not able
start/stop his USB host on his motherboard.
Diffstat (limited to 'sys/dev/usb/uhub.c')
-rw-r--r-- | sys/dev/usb/uhub.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c index a2f759f..204326a 100644 --- a/sys/dev/usb/uhub.c +++ b/sys/dev/usb/uhub.c @@ -76,9 +76,11 @@ struct uhub_softc { #if defined(__NetBSD__) int uhub_match __P((struct device *, struct cfdata *, void *)); void uhub_attach __P((struct device *, struct device *, void *)); +void uhub_detach __P((struct device *)); #elif defined(__FreeBSD__) static device_probe_t uhub_match; static device_attach_t uhub_attach; +static device_detach_t uhub_detach; #endif usbd_status uhub_init_port __P((int, struct usbd_port *, usbd_device_handle)); @@ -105,6 +107,7 @@ static devclass_t uhub_devclass; static device_method_t uhub_methods[] = { DEVMETHOD(device_probe, uhub_match), DEVMETHOD(device_attach, uhub_attach), + DEVMETHOD(device_detach, uhub_detach), {0,0} }; @@ -137,7 +140,7 @@ uhub_match(device_t device) #endif usb_device_descriptor_t *dd = usbd_get_device_descriptor(uaa->device); - DPRINTFN(1,("uhub_match, dd=%p\n", dd)); + DPRINTFN(5,("uhub_match, dd=%p\n", dd)); /* * The subclass for hubs seems to be 0 for some and 1 for others, * so we just ignore the subclass. |