]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Addition of new fields to the usb_devinfo struct to enable the new
authorNick Hibma <n_hibma@FreeBSD.org>
Sun, 21 Nov 1999 17:30:42 +0000 (17:30 +0000)
committerNick Hibma <n_hibma@FreeBSD.org>
Sun, 21 Nov 1999 17:30:42 +0000 (17:30 +0000)
commit937791192aac279034d36f779dbe968cba663c7e
tree02b3b31338a30b76377dd22d22bd7a15bee64a30
parent88ea580e343e33a62cd5847bf1c379064f6c5421
Addition of new fields to the usb_devinfo struct to enable the new
and shiny usbd daemon to handle events.

usb_port.h:
- Add a macro to retrieve the unit number from a USBBASEDEVICE

usb.h, usb_subr.c:
- Add fields to the device_info struct.

usb_subr.c:
- Fill in the new fields.
- Remove the notification of the event up a bit to make sure all the
  information is still available to fill the usb_devinfo struct.

This requires recompilation of usbdevs (src/usr.sbin/usbdevs) and the
ezdownload/ezupload (ports/misc/ezload) utilities in any case.
sys/dev/usb/usb.h
sys/dev/usb/usb_port.h
sys/dev/usb/usb_subr.c