pub struct Pci { /* private fields */ }
Implementations§
Source§impl Pci
impl Pci
pub fn interrupt_cells(&self) -> u32
Sourcepub fn interrupt_map_mask(&self) -> Option<Vec<u32>>
pub fn interrupt_map_mask(&self) -> Option<Vec<u32>>
Get the interrupt-map-mask property if present
Sourcepub fn interrupt_map(&self) -> Result<Vec<PciInterruptMap>, FdtError>
pub fn interrupt_map(&self) -> Result<Vec<PciInterruptMap>, FdtError>
Parse the interrupt-map property into a structured format
Sourcepub fn device_type(&self) -> Option<&str>
pub fn device_type(&self) -> Option<&str>
Get the device_type property (should be “pci” for PCI nodes)
Sourcepub fn is_pci_host_bridge(&self) -> bool
pub fn is_pci_host_bridge(&self) -> bool
Check if this is a PCI host bridge
Sourcepub fn child_interrupts(
&self,
bus: u32,
device: u32,
function: u32,
pin: u32,
) -> Result<PciInterruptInfo, FdtError>
pub fn child_interrupts( &self, bus: u32, device: u32, function: u32, pin: u32, ) -> Result<PciInterruptInfo, FdtError>
Get interrupt information for a specific PCI device Parameters: bus, device, function, pin (0=INTA, 1=INTB, 2=INTC, 3=INTD)
Methods from Deref<Target = NodeBase>§
pub fn level(&self) -> usize
pub fn name(&self) -> &str
pub fn full_path(&self) -> &str
pub fn parent(&self) -> Option<Node>
pub fn properties<'a>(&'a self) -> Vec<Property<'a>>
pub fn find_property<'a>( &'a self, name: impl AsRef<str>, ) -> Option<Property<'a>>
Sourcepub fn compatibles(&self) -> Vec<String>
pub fn compatibles(&self) -> Vec<String>
Get compatible strings for this node (placeholder implementation)
pub fn address_cells(&self) -> u8
pub fn ranges(&self) -> Option<FdtRangeSilce<'_>>
pub fn interrupt_parent_phandle(&self) -> Option<Phandle>
pub fn interrupt_parent(&self) -> Option<InterruptController>
pub fn interrupts(&self) -> Result<Vec<Vec<u32>>, FdtError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pci
impl RefUnwindSafe for Pci
impl Send for Pci
impl Sync for Pci
impl Unpin for Pci
impl UnwindSafe for Pci
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more