实现了rtc的抽象,并且把x86的cmos rtc接入到设备驱动模型 (#674)

* 实现了rtc的抽象,并且把x86的cmos rtc接入到设备驱动模型。
This commit is contained in:
LoGin
2024-03-28 00:28:13 +08:00
committed by GitHub
parent 597ecc08c2
commit da15231979
28 changed files with 1441 additions and 156 deletions

View File

@ -9,7 +9,7 @@ use crate::{
device::{bus::Bus, driver::Driver, Device, DeviceState, DeviceType, IdTable},
kobject::{KObjType, KObject, KObjectState, LockedKObjectState},
kset::KSet,
platform::{platform_device::PlatformDevice, CompatibleTable},
platform::platform_device::PlatformDevice,
},
filesystem::kernfs::KernFSInode,
libs::{
@ -184,10 +184,6 @@ impl PlatformDevice for I8042PlatformDevice {
self.inner.lock().pdev_id_auto = id_auto;
}
fn compatible_table(&self) -> CompatibleTable {
todo!()
}
fn is_initialized(&self) -> bool {
self.inner.lock().device_state == DeviceState::Initialized
}