feat: disconnect Bluetooth devices, flush disks on shutdown/reboot, display progress in login.elf window
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user