mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
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:
parent
82bb08a15c
commit
da327746a2
26 changed files with 97 additions and 97 deletions
|
@ -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) };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue