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:
Jesse Buhagiar 2022-04-15 01:11:15 +10:00 committed by Andreas Kling
commit 300dcb6f5e
Notes: sideshowbarker 2024-07-17 18:08:55 +09:00
5 changed files with 121 additions and 4 deletions

View file

@ -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);
}