mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/Quaker762
Commit: 300dcb6f5e
Pull-request: https://github.com/SerenityOS/serenity/pull/13688
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/supercomputer7
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