Kernel: Keep records of PCI::Address & PCI::ID pairs for enumeration

This commit is contained in:
Liav A
2020-04-10 20:25:03 +03:00
committed by Andreas Kling
parent 688dd9ea66
commit 65f939b55c
12 changed files with 49 additions and 13 deletions

View File

@@ -170,7 +170,7 @@ void init_stage2()
dbg() << "Text mode enabled";
} else {
bool bxvga_found = false;
PCI::enumerate_all([&](const PCI::Address&, PCI::ID id) {
PCI::enumerate([&](const PCI::Address&, PCI::ID id) {
if (id.vendor_id == 0x1234 && id.device_id == 0x1111)
bxvga_found = true;
});