1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:57:35 +00:00

Kernel/USB: Make USBControllers pseudo StorageControllers

This will be needed in the next commit to generate valid LUNs
This commit is contained in:
Hendiadyoin1 2023-09-15 21:12:58 +02:00 committed by Andrew Kaster
parent 4b327bdc95
commit b857c6b92f
2 changed files with 15 additions and 0 deletions

View file

@ -5,9 +5,15 @@
*/
#include <Kernel/Bus/USB/USBController.h>
#include <Kernel/Devices/Storage/StorageManagement.h>
namespace Kernel::USB {
USBController::USBController()
: m_storage_controller_id(StorageManagement::generate_controller_id())
{
}
u8 USBController::allocate_address()
{
// FIXME: This can be smarter.