1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

PCI: Add list of capabilities for each device during first enumeration

This commit is contained in:
Liav A 2020-12-18 17:37:51 +02:00 committed by Andreas Kling
parent 9d10eb473d
commit 85b4256d10
4 changed files with 44 additions and 3 deletions

View file

@ -40,7 +40,7 @@ IOAccess::IOAccess()
{
klog() << "PCI: Using I/O instructions for PCI configuration space access";
enumerate_hardware([&](const Address& address, ID id) {
m_physical_ids.append({ address, id });
m_physical_ids.append({ address, id, get_capabilities(address) });
});
}