Searched refs:cmdfis (Results 1 – 1 of 1) sorted by relevance
/DragonOS/kernel/src/driver/disk/ahci/ |
H A D | ahcidisk.rs | 169 let cmdfis = unsafe { in read_at() localVariable 174 volatile_write!(cmdfis.fis_type, FisType::RegH2D as u8); in read_at() 175 volatile_set_bit!(cmdfis.pm, 1 << 7, true); // command_bit set in read_at() 176 volatile_write!(cmdfis.command, ATA_CMD_READ_DMA_EXT); in read_at() 178 volatile_write!(cmdfis.lba0, (lba_id_start & 0xFF) as u8); in read_at() 179 volatile_write!(cmdfis.lba1, ((lba_id_start >> 8) & 0xFF) as u8); in read_at() 180 volatile_write!(cmdfis.lba2, ((lba_id_start >> 16) & 0xFF) as u8); in read_at() 181 volatile_write!(cmdfis.lba3, ((lba_id_start >> 24) & 0xFF) as u8); in read_at() 182 volatile_write!(cmdfis.lba4, ((lba_id_start >> 32) & 0xFF) as u8); in read_at() 183 volatile_write!(cmdfis.lba5, ((lba_id_start >> 40) & 0xFF) as u8); in read_at() [all …]
|