diff options
author | Liav A <liavalb@gmail.com> | 2021-09-23 09:14:51 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-29 11:24:33 +0200 |
commit | da327746a2702bd40ae6fa79017850ed357f5c1f (patch) | |
tree | 2c270fd138684e6713105c9c1eb93941cea256ec /Kernel/GlobalProcessExposed.cpp | |
parent | 82bb08a15cbe447b5b0deeac16cccc22bf1c1c57 (diff) | |
download | serenity-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/GlobalProcessExposed.cpp')
-rw-r--r-- | Kernel/GlobalProcessExposed.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Kernel/GlobalProcessExposed.cpp b/Kernel/GlobalProcessExposed.cpp index a9989f5585..402057fcf1 100644 --- a/Kernel/GlobalProcessExposed.cpp +++ b/Kernel/GlobalProcessExposed.cpp @@ -614,19 +614,19 @@ private: virtual KResult try_generate(KBufferBuilder& builder) override { JsonArraySerializer array { builder }; - PCI::enumerate([&array](PCI::Address address, PCI::PhysicalID const& physical_id) { + PCI::enumerate([&array](PCI::Address address, PCI::DeviceIdentifier const& device_identifier) { auto obj = array.add_object(); obj.add("domain", address.domain()); obj.add("bus", address.bus()); obj.add("device", address.device()); obj.add("function", address.function()); - obj.add("vendor_id", physical_id.id().vendor_id); - obj.add("device_id", physical_id.id().device_id); - obj.add("revision_id", physical_id.revision_id().value()); - obj.add("subclass", physical_id.subclass_code().value()); - obj.add("class", physical_id.class_code().value()); - obj.add("subsystem_id", physical_id.subsystem_id().value()); - obj.add("subsystem_vendor_id", physical_id.subsystem_vendor_id().value()); + obj.add("vendor_id", device_identifier.hardware_id().vendor_id); + obj.add("device_id", device_identifier.hardware_id().device_id); + obj.add("revision_id", device_identifier.revision_id().value()); + obj.add("subclass", device_identifier.subclass_code().value()); + obj.add("class", device_identifier.class_code().value()); + obj.add("subsystem_id", device_identifier.subsystem_id().value()); + obj.add("subsystem_vendor_id", device_identifier.subsystem_vendor_id().value()); }); array.finish(); return KSuccess; |