mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
Kernel: Keep records of PCI::Address & PCI::ID pairs for enumeration
This commit is contained in:
parent
688dd9ea66
commit
65f939b55c
Notes:
sideshowbarker
2024-07-19 07:44:07 +09:00
Author: https://github.com/supercomputer7
Commit: 65f939b55c
Pull-request: https://github.com/SerenityOS/serenity/pull/1734
Reviewed-by: https://github.com/awesomekling
12 changed files with 49 additions and 13 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue