Home
last modified time | relevance | path

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

/DragonOS/kernel/src/arch/x86_64/driver/
H A Drtc.rs68 fn read_cmos(&self, addr: u8) -> u8 { in read_cmos() method
250 let status_register_b: u8 = dev.read_cmos(0x0B); // 读取状态寄存器B in read_time()
257 res.year = dev.read_cmos(CMOSTimeSelector::Year as u8) as i32; in read_time()
258 res.month = dev.read_cmos(CMOSTimeSelector::Month as u8) as i32; in read_time()
259 res.mday = dev.read_cmos(CMOSTimeSelector::Day as u8) as i32; in read_time()
260 res.hour = dev.read_cmos(CMOSTimeSelector::Hour as u8) as i32; in read_time()
261 res.minute = dev.read_cmos(CMOSTimeSelector::Minute as u8) as i32; in read_time()
262 res.second = dev.read_cmos(CMOSTimeSelector::Second as u8) as i32; in read_time()
264 if res.second == dev.read_cmos(CMOSTimeSelector::Second as u8) as i32 { in read_time()