mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:08:10 +00:00
Kernel/PCI: Remove all macros and replace them with enum classes
This commit is contained in:
parent
9d9d57056e
commit
ef9b8ff0c7
11 changed files with 206 additions and 146 deletions
|
@ -18,7 +18,7 @@ Device::Device(Address address)
|
|||
bool Device::is_msi_capable() const
|
||||
{
|
||||
for (const auto& capability : PCI::get_device_identifier(pci_address()).capabilities()) {
|
||||
if (capability.id() == PCI_CAPABILITY_MSI)
|
||||
if (capability.id().value() == PCI::Capabilities::ID::MSI)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -26,7 +26,7 @@ bool Device::is_msi_capable() const
|
|||
bool Device::is_msix_capable() const
|
||||
{
|
||||
for (const auto& capability : PCI::get_device_identifier(pci_address()).capabilities()) {
|
||||
if (capability.id() == PCI_CAPABILITY_MSIX)
|
||||
if (capability.id().value() == PCI::Capabilities::ID::MSIX)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue