[upci] Simplify the pciroot structure for ecam
This removes the inner ecam structure that used to be part of pci_platform_info_t and moves end_bus_num to top level. Since ecam base was only used for debugging it isn't carried over into the bus driver anymore. This means the bus driver can now determine if it has an ecam available by simply checking if a valid handle was passed to it by the pciroot protocol upon calling GetPciPlatformInfo. Test: Confirmed config output with upci, and checked booting fuchsia with a gui for kpci. Change-Id: I24760bf3faed4a468c910b147297b20f60adf9fa
Showing
- system/banjo/ddk-protocol-pciroot/pciroot.banjo 9 additions, 18 deletionssystem/banjo/ddk-protocol-pciroot/pciroot.banjo
- system/dev/bus/acpi/pci.cpp 34 additions, 36 deletionssystem/dev/bus/acpi/pci.cpp
- system/dev/bus/pci/bus.cpp 32 additions, 14 deletionssystem/dev/bus/pci/bus.cpp
- system/dev/bus/pci/config.cpp 7 additions, 4 deletionssystem/dev/bus/pci/config.cpp
- system/dev/bus/pci/config.h 1 addition, 1 deletionsystem/dev/bus/pci/config.h
Loading
Please register or sign in to comment