Implement read_many for denali.

This commit is contained in:
Drew Galbraith 2025-02-01 14:09:28 -08:00
parent 5ec05f9a88
commit 49c3ff8499
2 changed files with 36 additions and 3 deletions

View file

@ -285,6 +285,16 @@ impl Command {
})
}
pub fn read_manual(lba: u64, lba_count: u16, paddr: u64) -> Self {
Self {
command: SataCommand::DmaReadExt,
lba,
sector_cnt: lba_count,
paddr: paddr,
memory_region: None,
}
}
pub fn release_mem_cap(&mut self) -> u64 {
self.memory_region.take().unwrap().release()
}