mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
Kernel/USB: Get all interface descriptors on enumeration
This creates all interfaces when the device is enumerated, with a link to the configuration that it is a part of. As such, a new class, `USBInterface` has been introduced to express this state.
This commit is contained in:
parent
d313fa98ec
commit
300dcb6f5e
5 changed files with 121 additions and 4 deletions
|
@ -132,6 +132,7 @@ ErrorOr<void> Device::enumerate_device()
|
|||
}
|
||||
|
||||
USBConfiguration device_configuration(*this, configuration_descriptor);
|
||||
TRY(device_configuration.get_interfaces());
|
||||
m_configurations.append(device_configuration);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue