Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahcidisk.rs70 volatile_write!(port.is, u32::MAX); // Clear pending interrupt bits in read_at()
95 volatile_write!(cmdheader.prdtl, check_length as u16); // PRDT entries count in read_at()
136 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in read_at()
145 volatile_write!(cmdtbl.prdt_entry[las].dba, virt_2_phys(buf_ptr) as u64); in read_at()
159 volatile_write!(cmdfis.fis_type, FisType::RegH2D as u8); in read_at()
161 volatile_write!(cmdfis.command, ATA_CMD_READ_DMA_EXT); in read_at()
163 volatile_write!(cmdfis.lba0, (lba_id_start & 0xFF) as u8); in read_at()
164 volatile_write!(cmdfis.lba1, ((lba_id_start >> 8) & 0xFF) as u8); in read_at()
165 volatile_write!(cmdfis.lba2, ((lba_id_start >> 16) & 0xFF) as u8); in read_at()
166 volatile_write!(cmdfis.lba3, ((lba_id_start >> 24) & 0xFF) as u8); in read_at()
[all …]
Dhba.rs151 volatile_write!(self.cmd, val); in start()
158 volatile_write!( in stop()
172 volatile_write!( in stop()
200 volatile_write!(self.clb, clb); in init()
210 volatile_write!(self.fb, fb); in init()
221 volatile_write!((*cmdheaders).prdtl, 0); // 一开始没有询问,prdtl = 0 in init()
222 volatile_write!((*cmdheaders).ctba, ctbas[i]); in init()
234 volatile_write!(self.ie, 0 /*TODO: Enable interrupts: 0b10111*/); in init()
237 volatile_write!(self.serr, volatile_read!(self.serr)); in init()
240 volatile_write!(self.sctl, volatile_read!(self.sctl) | 7 << 8); in init()
[all …]
/DragonOS-0.1.8/kernel/src/libs/
Dvolatile.rs7 macro_rules! volatile_write { macro
18 volatile_write!(