/DragonOS/kernel/src/driver/base/platform/ |
H A D | platform_driver.rs | 10 use super::{platform_bus, platform_device::PlatformDevice}; 25 fn probe(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in probe() 26 fn remove(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in remove() 27 fn shutdown(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in shutdown() 28 fn suspend(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in suspend() 29 fn resume(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in resume()
|
H A D | subsys.rs | 9 platform_bus_device, platform_device::PlatformDevice, platform_driver::PlatformDriver, 68 let pdev = device.clone().cast::<dyn PlatformDevice>().map_err(|_| { in probe() 136 .cast::<dyn PlatformDevice>() in match_device()
|
H A D | platform_device.rs | 50 pub trait PlatformDevice: Device { trait 82 pub fn device_add(&self, pdev: Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in device_add()
|
/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_driver.rs | 13 platform::{platform_device::PlatformDevice, platform_driver::PlatformDriver}, 67 fn probe(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in probe() 81 fn remove(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in remove() 86 fn shutdown(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in shutdown() 90 fn suspend(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in suspend() 95 fn resume(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in resume()
|
H A D | mod.rs | 10 platform_device::{platform_device_manager, PlatformDevice}, 39 platform_device_manager().device_add(i8042_device.clone() as Arc<dyn PlatformDevice>)?; in i8042_init()
|
H A D | i8042_device.rs | 14 platform::platform_device::PlatformDevice, 25 #[cast_to([sync] PlatformDevice)] 178 impl PlatformDevice for I8042PlatformDevice {
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | rtc_cmos.rs | 25 platform_device::PlatformDevice, 71 fn probe(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in probe() 105 fn remove(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in remove() 110 fn shutdown(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in shutdown() 114 fn suspend(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in suspend() 118 fn resume(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in resume()
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | mod.rs | 25 platform_device::{platform_device_manager, PlatformDevice}, 114 .device_add(serial8250_isa_dev.clone() as Arc<dyn PlatformDevice>) in init() 193 #[cast_to([sync] Device, PlatformDevice)] 221 impl PlatformDevice for Serial8250ISADevices { 443 fn probe(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in probe() 457 fn remove(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in remove() 461 fn shutdown(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in shutdown() 465 fn suspend(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in suspend() 469 fn resume(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in resume()
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | rtc.rs | 22 platform::platform_device::{platform_device_manager, PlatformDevice}, 37 #[cast_to([sync] Device, PlatformDevice, RtcDevice)] 90 impl PlatformDevice for CmosRtcDevice {
|
/DragonOS/kernel/src/driver/video/fbdev/ |
H A D | vesafb.rs | 23 platform_device::{platform_device_manager, PlatformDevice}, 76 #[cast_to([sync] PlatformDevice)] 131 impl PlatformDevice for VesaFb { 737 fn probe(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in probe() 749 fn remove(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in remove() 753 fn shutdown(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in shutdown() 758 fn suspend(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in suspend() 763 fn resume(&self, _device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError> { in resume() 1002 .device_add(device.clone() as Arc<dyn PlatformDevice>) in vesa_fb_device_init()
|