coreboot-kgpe-d16/payloads/libpayload/drivers/usb
Gabe Black 1b33c31cf3 libpayload: Make usb_initialize more efficient and fix style problems.
The usb_initialize function would scan for USB host controllers by brute force
iterating over all possible busses, devices, and functions. This change makes
it recursively scan busses only if it finds them on the other side of a bridge,
and only scan for functions beyond function 0 if the device claims to be
multifunction.

This change also takes the opportunity to clean up some style problems
throughout the file.

Change-Id: I0f5e8b9a454a42a76d30bccca898c8e1af770b2b
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: http://review.coreboot.org/1736
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Tested-by: build bot (Jenkins)
2012-11-07 18:38:15 +01:00
..
TODO Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
ehci.c libpayload: add controller type in usbdev_hc 2012-08-23 07:05:02 +02:00
ehci.h Add an EHCI driver to libpayload's USB stack. 2010-09-25 17:01:13 +00:00
ehci_private.h libpayload: Add dummy queue heads to EHCI interrupt frame list 2012-06-21 11:53:25 +02:00
ehci_rh.c libpayload: Add timeouts in the EHCI USB driver 2012-06-08 00:01:25 +02:00
ohci.c libpayload: add controller type in usbdev_hc 2012-08-23 07:05:02 +02:00
ohci.h Add support for OHCI controllers and prelimiary support for xHCI (USB3) controllers. 2010-08-13 09:18:58 +00:00
ohci_private.h libpayload: Add support for interrupt transfers in OHCI 2012-06-21 11:59:11 +02:00
ohci_rh.c libpayload: Add timeouts in the OHCI USB driver 2012-06-07 23:49:02 +02:00
quirks.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
uhci.c libpayload: UHCI driver contained too much magic 2012-10-03 09:25:25 +02:00
uhci.h Avoid using the name "pid_t", which is used on unixoid systems. 2010-06-07 13:58:17 +00:00
uhci_private.h libpayload: Remove bitfield use from UHCI data structures 2012-01-10 00:02:54 +01:00
uhci_rh.c Fix disconnect handling on UHCI root ports 2012-09-21 23:47:05 +02:00
usb.c libpayload: Add check for failure in usb_attach_device() 2012-06-22 08:55:50 +02:00
usb_dev.c Fix the USB code to find the headers after they were moved. 2008-09-11 17:29:00 +00:00
usbhid.c libpayload: Free intr queue structure in usb_hid_destroy 2012-06-07 23:15:28 +02:00
usbhub.c libpayload: Bring USB hub driver to a working state 2012-06-07 23:12:44 +02:00
usbinit.c libpayload: Make usb_initialize more efficient and fix style problems. 2012-11-07 18:38:15 +01:00
usbmsc.c libpayload: Shutdown reasonably if we can't init usb msc device 2012-06-22 08:55:22 +02:00
xhci.c libpayload: add controller type in usbdev_hc 2012-08-23 07:05:02 +02:00
xhci.h Add support for OHCI controllers and prelimiary support for xHCI (USB3) controllers. 2010-08-13 09:18:58 +00:00
xhci_private.h Add support for OHCI controllers and prelimiary support for xHCI (USB3) controllers. 2010-08-13 09:18:58 +00:00
xhci_rh.c libpayload: Drop usb_fatal() 2011-11-04 22:11:05 +01:00