|
@@ -27,7 +27,7 @@ UNMAP_AFTER_INIT void USBManagement::enumerate_controllers()
|
|
|
if (kernel_command_line().disable_usb())
|
|
|
return;
|
|
|
|
|
|
- PCI::enumerate([this](PCI::Address const& address, PCI::DeviceIdentifier const& device_identifier) {
|
|
|
+ PCI::enumerate([this](PCI::DeviceIdentifier const& device_identifier) {
|
|
|
if (!(device_identifier.class_code().value() == 0xc && device_identifier.subclass_code().value() == 0x3))
|
|
|
return;
|
|
|
if (device_identifier.prog_if().value() == 0x0) {
|
|
@@ -41,21 +41,21 @@ UNMAP_AFTER_INIT void USBManagement::enumerate_controllers()
|
|
|
}
|
|
|
|
|
|
if (device_identifier.prog_if().value() == 0x10) {
|
|
|
- dmesgln("USBManagement: OHCI controller found at {} is not currently supported.", address);
|
|
|
+ dmesgln("USBManagement: OHCI controller found at {} is not currently supported.", device_identifier.address());
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (device_identifier.prog_if().value() == 0x20) {
|
|
|
- dmesgln("USBManagement: EHCI controller found at {} is not currently supported.", address);
|
|
|
+ dmesgln("USBManagement: EHCI controller found at {} is not currently supported.", device_identifier.address());
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (device_identifier.prog_if().value() == 0x30) {
|
|
|
- dmesgln("USBManagement: xHCI controller found at {} is not currently supported.", address);
|
|
|
+ dmesgln("USBManagement: xHCI controller found at {} is not currently supported.", device_identifier.address());
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- dmesgln("USBManagement: Unknown/unsupported controller at {} with programming interface 0x{:02x}", address, device_identifier.prog_if().value());
|
|
|
+ dmesgln("USBManagement: Unknown/unsupported controller at {} with programming interface 0x{:02x}", device_identifier.address(), device_identifier.prog_if().value());
|
|
|
});
|
|
|
}
|
|
|
|