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
parent d313fa98ec
commit 300dcb6f5e
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);
}