Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/base/platform/
H A Dplatform_driver.rs10 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 Dsubsys.rs9 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 Dplatform_device.rs50 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 Di8042_driver.rs13 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 Dmod.rs10 platform_device::{platform_device_manager, PlatformDevice},
39 platform_device_manager().device_add(i8042_device.clone() as Arc<dyn PlatformDevice>)?; in i8042_init()
H A Di8042_device.rs14 platform::platform_device::PlatformDevice,
25 #[cast_to([sync] PlatformDevice)]
178 impl PlatformDevice for I8042PlatformDevice {
/DragonOS/kernel/src/driver/rtc/
H A Drtc_cmos.rs25 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 Dmod.rs25 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 Drtc.rs22 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 Dvesafb.rs23 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()