feat: support for USB mass storage devices, hotplugging
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* MassStorage.hpp
|
||||
* USB Mass Storage Bulk-Only Transport driver
|
||||
* Copyright (c) 2026 Daniel Hammer
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
|
||||
namespace Drivers::USB::MassStorage {
|
||||
|
||||
// Register a USB Mass Storage interface after xHCI has configured its
|
||||
// bulk IN and bulk OUT endpoints.
|
||||
void RegisterDevice(uint8_t slotId);
|
||||
|
||||
// Tear down every mass-storage LUN associated with an xHCI slot.
|
||||
void UnregisterDevice(uint8_t slotId);
|
||||
|
||||
// True while a bulk-only transport command is in flight.
|
||||
bool IsTransportBusy();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user