libpayload: Add USB support for non-PCI controllers
Restructure USB stack to not depend on PCI, and make PCI stub available on x86, but provide fixed BARs for ARM (Exynos 5) Change-Id: Iee7c8b134c22b661a9a515e24943470c9dbadd1f Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/49970 Reviewed-on: http://review.coreboot.org/4175 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
committed by
Stefan Reinauer
parent
441a4baf87
commit
8992e53c23
@ -30,7 +30,7 @@
|
||||
#ifndef __USB_H
|
||||
#define __USB_H
|
||||
#include <libpayload.h>
|
||||
#include <pci.h>
|
||||
#include <pci/pci.h>
|
||||
|
||||
typedef enum { host_to_device = 0, device_to_host = 1 } dev_req_dir;
|
||||
typedef enum { standard_type = 0, class_type = 1, vendor_type =
|
||||
@ -118,7 +118,6 @@ typedef enum { OHCI = 0, UHCI = 1, EHCI = 2, XHCI = 3} hc_type;
|
||||
|
||||
struct usbdev_hc {
|
||||
hci_t *next;
|
||||
pcidev_t bus_address;
|
||||
u32 reg_base;
|
||||
hc_type type;
|
||||
usbdev_t *devices[128]; // dev 0 is root hub, 127 is last addressable
|
||||
|
Reference in New Issue
Block a user