diff options
author | Liav A <liavalb@gmail.com> | 2021-09-28 20:18:51 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-29 11:24:33 +0200 |
commit | ef9b8ff0c7f5f5d7ae53a560218dd3c1a8fcbc49 (patch) | |
tree | e1833482c25510bd6039f2dc172efd07af5c4f95 /Kernel/Bus/PCI/Device.cpp | |
parent | 9d9d57056ea1a9a9ce599d69309d0d78b8c27b8b (diff) | |
download | serenity-ef9b8ff0c7f5f5d7ae53a560218dd3c1a8fcbc49.zip |
Kernel/PCI: Remove all macros and replace them with enum classes
Diffstat (limited to 'Kernel/Bus/PCI/Device.cpp')
-rw-r--r-- | Kernel/Bus/PCI/Device.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Bus/PCI/Device.cpp b/Kernel/Bus/PCI/Device.cpp index b2c7862483..66239a426e 100644 --- a/Kernel/Bus/PCI/Device.cpp +++ b/Kernel/Bus/PCI/Device.cpp @@ -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; |