feat: disconnect Bluetooth devices, flush disks on shutdown/reboot, display progress in login.elf window

This commit is contained in:
2026-06-06 18:27:19 +02:00
parent b51ab42eb9
commit cee21738ee
24 changed files with 418 additions and 12 deletions
+5
View File
@@ -120,6 +120,7 @@ namespace Drivers::Storage::Nvme {
// NVM I/O opcodes
// =========================================================================
constexpr uint8_t IO_CMD_FLUSH = 0x00;
constexpr uint8_t IO_CMD_READ = 0x02;
constexpr uint8_t IO_CMD_WRITE = 0x01;
@@ -187,6 +188,10 @@ namespace Drivers::Storage::Nvme {
// Write sectors to an NVMe namespace
bool WriteSectors(int ns, uint64_t lba, uint32_t count, const void* buffer);
// Flush the namespace's volatile write cache to media (NVM Flush command).
// Returns true on success. Used during graceful shutdown.
bool Flush(int ns);
// Get info about a specific namespace
const NamespaceInfo* GetNamespaceInfo(int ns);