coreboot-kgpe-d16/payloads/libpayload/drivers
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
..
storage libpayload: New AHCI, ATA and ATAPI drivers 2012-10-27 02:52:58 +02:00
usb libpayload: Make usb_initialize more efficient and fix style problems. 2012-11-07 18:38:15 +01:00
video libpayload: fix garbage on screen with Geode-LX VGA 2010-08-18 21:23:27 +00:00
Makefile.inc libpayload: New AHCI, ATA and ATAPI drivers 2012-10-27 02:52:58 +02:00
hid.c make keyboard reset driver generic (not pc keyboard driver dependent) 2010-03-25 18:52:24 +00:00
keyboard.c libpayload: Fix handling of CAPS LOCK key on PS/2 keyboards 2011-11-10 17:51:53 +01:00
nvram.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
options.c libpayload: CMOS access was implemented in a backward way 2012-10-14 20:12:11 +02:00
pci.c [PATCH] libpayload: Fix the PCI search function 2008-10-20 16:52:06 +00:00
serial.c Update the way serial info is read from the coreboot tables. 2012-11-07 18:30:40 +01:00
speaker.c Fix libpayload speaker driver 2011-10-27 10:49:41 +02:00