Kernel: Rename two PCI components

Rename ID => HardwareID, and PhysicalID => DeviceIdentifier.
This change merely does that to clarify what these objects really are.
This commit is contained in:
Liav A 2021-09-23 09:14:51 +03:00 committed by Andreas Kling
commit da327746a2
Notes: sideshowbarker 2024-07-18 03:21:17 +09:00
26 changed files with 97 additions and 97 deletions

View file

@ -17,17 +17,17 @@ u8 read8(Address address, u32 field) { return Access::the().read8_field(address,
u16 read16(Address address, u32 field) { return Access::the().read16_field(address, field); }
u32 read32(Address address, u32 field) { return Access::the().read32_field(address, field); }
void enumerate(Function<void(Address, PhysicalID const&)> callback)
void enumerate(Function<void(Address, DeviceIdentifier const&)> callback)
{
Access::the().fast_enumerate(callback);
}
PhysicalID get_physical_id(Address address)
DeviceIdentifier get_device_identifier(Address address)
{
return Access::the().get_physical_id(address);
return Access::the().get_device_identifier(address);
}
ID get_id(Address address)
HardwareID get_hardware_id(Address address)
{
return { read16(address, PCI_VENDOR_ID), read16(address, PCI_DEVICE_ID) };
}