Searched refs:PciDevice (Results 1 – 8 of 8) sorted by relevance
/DragonOS/kernel/src/driver/pci/ |
H A D | driver.rs | 9 use super::{dev_id::PciDeviceID, device::PciDevice, subsys::pci_bus}; 27 fn probe(&self, device: &Arc<dyn PciDevice>, id: &PciDeviceID) -> Result<(), SystemError>; in probe() argument 28 fn remove(&self, device: &Arc<dyn PciDevice>) -> Result<(), SystemError>; in remove() 29 fn shutdown(&self, device: &Arc<dyn PciDevice>) -> Result<(), SystemError>; in shutdown() 30 fn suspend(&self, device: &Arc<dyn PciDevice>) -> Result<(), SystemError>; in suspend() 31 fn resume(&self, device: &Arc<dyn PciDevice>) -> Result<(), SystemError>; in resume() 58 fn match_dev(&self, dev: &Arc<dyn PciDevice>) -> Option<Arc<PciDeviceID>> { in match_dev()
|
H A D | attr.rs | 16 use super::{device::PciDevice, pci_irq::IrqType}; 61 .cast::<dyn PciDevice>() in show() 92 .cast::<dyn PciDevice>() in show() 123 .cast::<dyn PciDevice>() in show() 154 .cast::<dyn PciDevice>() in show() 185 .cast::<dyn PciDevice>() in show() 216 .cast::<dyn PciDevice>() in show() 247 .cast::<dyn PciDevice>() in show() 282 .cast::<dyn PciDevice>() in show()
|
H A D | dev_id.rs | 3 use super::device::PciDevice; 44 pub fn match_dev(&self, dev: &Arc<dyn PciDevice>) -> bool { in match_dev()
|
H A D | subsys.rs | 24 device::{PciBusDevice, PciDevice}, 99 let pci_dev = device.clone().cast::<dyn PciDevice>().map_err(|_| { in probe() 136 let pci_dev = device.clone().cast::<dyn PciDevice>().map_err(|_| { in match_device()
|
H A D | raw_device.rs | 20 attr::BasicPciReadOnlyAttrs, dev_id::PciDeviceID, device::PciDevice, 25 #[cast_to([sync] PciDevice)] 63 impl PciDevice for PciGeneralDevice {
|
H A D | device.rs | 46 pub fn device_add(&self, pci_dev: Arc<dyn PciDevice>) -> Result<(), SystemError> { in device_add() 70 pub trait PciDevice: Device { interface
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_driver.rs | 18 pci::{dev_id::PciDeviceID, device::PciDevice, driver::PciDriver}, 59 _device: &Arc<dyn PciDevice>, in probe() argument 65 fn remove(&self, _device: &Arc<dyn PciDevice>) -> Result<(), system_error::SystemError> { in remove() 69 fn resume(&self, _device: &Arc<dyn PciDevice>) -> Result<(), system_error::SystemError> { in resume() 73 fn shutdown(&self, _device: &Arc<dyn PciDevice>) -> Result<(), system_error::SystemError> { in shutdown() 77 fn suspend(&self, _device: &Arc<dyn PciDevice>) -> Result<(), system_error::SystemError> { in suspend()
|
H A D | pt_device.rs | 17 pci::{dev_id::PciDeviceID, device::PciDevice, pci_irq::IrqType}, 30 #[cast_to([sync] PciDevice)] 55 impl PciDevice for TestDevice {
|