[zion] Remove temp PCI Memory Object create function.

Pass the PCI memory space to the yellowstone init process instead.
This commit is contained in:
Drew Galbraith 2023-08-01 17:13:16 -07:00
parent c70b5b0753
commit 8f84f8c3ca
9 changed files with 23 additions and 21 deletions

View file

@ -15,13 +15,9 @@ PciDeviceHeader* PciHeader(uint64_t base, uint64_t bus, uint64_t dev,
} // namespace
PciReader::PciReader() {
dbgln("Creating PCI obj");
uint64_t vmmo_cap, vmmo_size;
check(ZTempPcieConfigObjectCreate(&vmmo_cap, &vmmo_size));
dbgln("Creating addr space");
uint64_t vaddr;
check(ZAddressSpaceMap(gSelfVmasCap, 0, vmmo_cap, &vaddr));
check(ZAddressSpaceMap(gSelfVmasCap, 0, gBootPciVmmoCap, &vaddr));
dbgln("Addr %lx", vaddr);
dbgln("Dumping PCI");