/DragonOS-0.1.9/kernel/src/driver/pci/ |
D | pci_irq.rs | 11 use super::pci::{PciDeviceStructure, PciDeviceStructureGeneralDevice, PciError}; 224 fn irq_enable(&mut self, enable: bool) -> Result<u8, PciError> { in irq_enable() argument 234 return Err(PciError::PciIrqError(PciIrqError::IrqTypeNotSupported)); in irq_enable() 237 return Err(PciError::PciIrqError(PciIrqError::IrqNotInited)); in irq_enable() 241 return Err(PciError::PciIrqError(PciIrqError::PciDeviceNotSupportIrq)); in irq_enable() 246 fn msix_enable(&mut self, enable: bool) -> Result<u8, PciError> { in msix_enable() argument 265 return Err(PciError::PciIrqError(PciIrqError::IrqNotInited)); in msix_enable() 268 return Err(PciError::PciIrqError(PciIrqError::IrqTypeUnmatch)); in msix_enable() 272 return Err(PciError::PciIrqError(PciIrqError::PciDeviceNotSupportIrq)); in msix_enable() 277 fn msi_enable(&mut self, enable: bool) -> Result<u8, PciError> { in msi_enable() argument [all …]
|
D | pci.rs | 241 pub enum PciError { enum 254 impl Display for PciError { implementation 341 fn bar_ioremap(&mut self) -> Option<Result<u8, PciError>> { in bar_ioremap() argument 450 fn bar_ioremap(&mut self) -> Option<Result<u8, PciError>> { in bar_ioremap() argument 622 pub fn new(segment_group_number: SegmentGroupNumber) -> Result<Self, PciError> { in new() argument 629 fn map(&mut self) -> Result<u8, PciError> { in map() argument 638 .map_err(|_| PciError::CreateMmioError)?; in map() 730 ) -> Result<Box<dyn PciDeviceStructure>, PciError> { in pci_read_header() argument 752 return Err(PciError::GetWrongHeader); in pci_read_header() 798 HeaderType::Unrecognised(_) => Err(PciError::UnrecognisedHeaderType), in pci_read_header() [all …]
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/pci/ |
D | pci.rs | 4 BusDeviceFunction, PciAddr, PciError, PciRoot, SegmentGroupNumber, PORT_PCI_CONFIG_ADDRESS, 46 fn ecam_root(segement: SegmentGroupNumber) -> Result<PciRoot, PciError> { in ecam_root() argument 51 .map_err(|_| PciError::McfgTableNotFound)?; in ecam_root() 63 return Err(PciError::SegmentNotFound); in ecam_root()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/pci/ |
D | mod.rs | 3 driver::pci::pci::{BusDeviceFunction, PciAddr, PciError, PciRoot, SegmentGroupNumber}, 20 fn ecam_root(segement: SegmentGroupNumber) -> Result<PciRoot, PciError> { in ecam_root() argument
|
/DragonOS-0.1.9/kernel/src/arch/ |
D | mod.rs | 2 driver::pci::pci::{BusDeviceFunction, PciAddr, PciError, PciRoot, SegmentGroupNumber}, 37 fn ecam_root(segement: SegmentGroupNumber) -> Result<PciRoot, PciError>; in ecam_root() argument
|
/DragonOS-0.1.9/kernel/src/driver/virtio/ |
D | transport_pci.rs | 5 BusDeviceFunction, PciDeviceStructure, PciDeviceStructureGeneralDevice, PciError, 460 Pci(PciError), 504 impl From<PciError> for VirtioPciError { 505 fn from(error: PciError) -> Self { in from()
|
/DragonOS-0.1.9/kernel/src/driver/net/e1000e/ |
D | e1000e.rs | 18 get_pci_device_structure_mut, PciDeviceStructure, PciDeviceStructureGeneralDevice, PciError, 805 Pci(PciError), 809 impl From<PciError> for E1000EPciError { 810 fn from(error: PciError) -> Self { in from()
|