1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

Kernel: Add MSIxInfo struct to PCI DeviceIdentifier

Add a struct named MSIxInfo that stores all the relevant MSIx
information as a part of PCI DeviceIdentifier struct.

Populate the MSIx struct during the PCI device init. As the
DeviceIdentifier struct need to populate MSIx info, don't mark
DeviceIdentifier as const in the PCI::Device class.
This commit is contained in:
Pankaj Raghav 2023-04-28 15:16:20 +02:00 committed by Jelle Raaijmakers
parent 71c75873c9
commit d0fbaf790a
4 changed files with 39 additions and 1 deletions

View file

@ -13,6 +13,7 @@ namespace Kernel::PCI {
Device::Device(DeviceIdentifier const& pci_identifier)
: m_pci_identifier(pci_identifier)
{
m_pci_identifier->initialize();
}
bool Device::is_msi_capable() const