This commit is contained in:
parent
311755c812
commit
5c3d4ac7a9
30 changed files with 177 additions and 108 deletions
|
|
@ -95,7 +95,7 @@ impl Command {
|
|||
command: SataCommand::DmaReadExt,
|
||||
lba,
|
||||
sector_cnt: lba_count,
|
||||
paddr: paddr,
|
||||
paddr,
|
||||
memory_region: None,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,9 +44,8 @@ impl PortController {
|
|||
};
|
||||
|
||||
// This leaves space for 8 prdt entries.
|
||||
for i in 0..32 {
|
||||
command_list[i].command_table_base_addr =
|
||||
(command_paddr + 0x500) + (0x100 * (i as u64));
|
||||
for (i, header) in command_list.iter_mut().enumerate() {
|
||||
header.command_table_base_addr = (command_paddr + 0x500) + (0x100 * (i as u64));
|
||||
}
|
||||
|
||||
let command_slots = array::from_fn(|_| Arc::new(Mutex::new(CommandStatus::Empty)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue