feat: support for USB mass storage devices, hotplugging

This commit is contained in:
2026-05-18 17:47:12 +02:00
parent f8e8af1d78
commit 41d2841cc9
36 changed files with 1537 additions and 130 deletions
+22
View File
@@ -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();
}