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:
parent
4b327bdc95
commit
b857c6b92f
2 changed files with 15 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue