This commit is contained in:
parent
311755c812
commit
c6b1893bb0
30 changed files with 181 additions and 108 deletions
|
|
@ -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