Files
serenity/Kernel/Bus/USB/USBController.cpp
Idan Horowitz c5956663f7 Kernel: Move USB device initialization to controllers
The current USB::Device::enumerate_device() implementation is UHCI
specific, and is not relevant for xHCI controllers.

Move it to a USBController virtual method to allow different
implementations for the other controller types.
2024-07-26 14:25:49 -04:00

18 lines
344 B
C++

/*
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#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())
{
}
}