summaryrefslogtreecommitdiff
path: root/Kernel/Bus/PCI/Device.cpp
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-09-23 09:14:51 +0300
committerAndreas Kling <kling@serenityos.org>2021-09-29 11:24:33 +0200
commitda327746a2702bd40ae6fa79017850ed357f5c1f (patch)
tree2c270fd138684e6713105c9c1eb93941cea256ec /Kernel/Bus/PCI/Device.cpp
parent82bb08a15cbe447b5b0deeac16cccc22bf1c1c57 (diff)
downloadserenity-da327746a2702bd40ae6fa79017850ed357f5c1f.zip
Kernel: Rename two PCI components
Rename ID => HardwareID, and PhysicalID => DeviceIdentifier. This change merely does that to clarify what these objects really are.
Diffstat (limited to 'Kernel/Bus/PCI/Device.cpp')
-rw-r--r--Kernel/Bus/PCI/Device.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Bus/PCI/Device.cpp b/Kernel/Bus/PCI/Device.cpp
index e371f16ffb..b2c7862483 100644
--- a/Kernel/Bus/PCI/Device.cpp
+++ b/Kernel/Bus/PCI/Device.cpp
@@ -17,7 +17,7 @@ Device::Device(Address address)
bool Device::is_msi_capable() const
{
- for (const auto& capability : PCI::get_physical_id(pci_address()).capabilities()) {
+ for (const auto& capability : PCI::get_device_identifier(pci_address()).capabilities()) {
if (capability.id() == PCI_CAPABILITY_MSI)
return true;
}
@@ -25,7 +25,7 @@ bool Device::is_msi_capable() const
}
bool Device::is_msix_capable() const
{
- for (const auto& capability : PCI::get_physical_id(pci_address()).capabilities()) {
+ for (const auto& capability : PCI::get_device_identifier(pci_address()).capabilities()) {
if (capability.id() == PCI_CAPABILITY_MSIX)
return true;
}