Home
last modified time | relevance | path

Searched refs:cmdtbl (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.7/kernel/src/driver/disk/ahci/
Dahcidisk.rs99 let cmdtbl = unsafe { in read_at() localVariable
108 write_bytes(cmdtbl, 0, 1); in read_at()
113 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in read_at()
114 … volatile_write_bit!(cmdtbl.prdt_entry[i].dbc, (1 << 22) - 1, 8 * 1024 - 1); // 数据长度 prdt_entry.dbc in read_at()
115 volatile_set_bit!(cmdtbl.prdt_entry[i].dbc, 1 << 31, true); // 允许中断 prdt_entry.i in read_at()
122 volatile_write!(cmdtbl.prdt_entry[las].dba, virt_2_phys(buf_ptr) as u64); in read_at()
124 cmdtbl.prdt_entry[las].dbc, in read_at()
128 volatile_set_bit!(cmdtbl.prdt_entry[las].dbc, 1 << 31, true); // 允许中断 in read_at()
132 ((&mut cmdtbl.cfis) as *mut [u8] as *mut usize as *mut FisRegH2D) in read_at()
235 let cmdtbl = unsafe { in write_at() localVariable
[all …]