mirror of
https://github.com/RGBCube/serenity
synced 2025-07-19 08:27:34 +00:00
Kernel: Use PCIIdentifier is_msix_capable API to retrieve MSIx status
Instead of iterating through the capabilities, use the is_msix_capable() API from the PCIIdentifier class that belongs to the device.
This commit is contained in:
parent
d0fbaf790a
commit
d3bb63afff
1 changed files with 1 additions and 3 deletions
|
@ -24,9 +24,7 @@ bool Device::is_msi_capable() const
|
||||||
}
|
}
|
||||||
bool Device::is_msix_capable() const
|
bool Device::is_msix_capable() const
|
||||||
{
|
{
|
||||||
return AK::any_of(
|
return m_pci_identifier->is_msix_capable();
|
||||||
m_pci_identifier->capabilities(),
|
|
||||||
[](auto const& capability) { return capability.id().value() == PCI::Capabilities::ID::MSIX; });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Device::enable_pin_based_interrupts() const
|
void Device::enable_pin_based_interrupts() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue