Trace PCI devices on kernel framebuffer

This commit is contained in:
Alex
2022-10-11 00:04:04 +03:00
parent ab1972627e
commit 77050b83e5
2 changed files with 10 additions and 0 deletions

View File

@ -58,6 +58,15 @@ EXTERNC void Entry(BootInfo *Info)
PowerManager = new Power::Power;
KPrint("Initializing PCI Manager");
PCIManager = new PCI::PCI;
foreach (auto hdr in PCIManager->GetDevices())
{
KPrint("Found PCI device: %s / %s / %s / %s / %s",
PCI::Descriptors::GetVendorName(hdr->VendorID),
PCI::Descriptors::GetDeviceName(hdr->VendorID, hdr->DeviceID),
PCI::Descriptors::DeviceClasses[hdr->Class],
PCI::Descriptors::GetSubclassName(hdr->Class, hdr->Subclass),
PCI::Descriptors::GetProgIFName(hdr->Class, hdr->Subclass, hdr->ProgIF));
}
while (1)
CPU::Halt();
}