pub struct PciNodeView<'a> { /* private fields */ }Expand description
Specialized view for PCI bridge nodes.
Implementations§
Source§impl<'a> PciNodeView<'a>
impl<'a> PciNodeView<'a>
Sourcepub fn interrupt_cells(&self) -> u32
pub fn interrupt_cells(&self) -> u32
Returns the #interrupt-cells property value.
Defaults to 1 for PCI devices if not specified.
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>
解析 interrupt-map 属性
Sourcepub fn child_interrupts(
&self,
bus: u8,
device: u8,
function: u8,
interrupt_pin: u8,
) -> Result<PciInterruptInfo, FdtError>
pub fn child_interrupts( &self, bus: u8, device: u8, function: u8, interrupt_pin: u8, ) -> Result<PciInterruptInfo, FdtError>
获取 PCI 设备的中断信息 参数: bus, device, function, pin (1=INTA, 2=INTB, 3=INTC, 4=INTD)
Methods from Deref<Target = NodeGeneric<'a>>§
pub fn id(&self) -> NodeId
pub fn path(&self) -> String
pub fn regs(&self) -> Vec<RegFixed>
Sourcepub fn interrupt_parent(&self) -> Option<Phandle>
pub fn interrupt_parent(&self) -> Option<Phandle>
Returns the effective interrupt-parent, inheriting from ancestors.
Sourcepub fn interrupts(&self) -> Vec<InterruptRef>
pub fn interrupts(&self) -> Vec<InterruptRef>
Parses the interrupts property into interrupt references.
Trait Implementations§
Source§impl<'a> Clone for PciNodeView<'a>
impl<'a> Clone for PciNodeView<'a>
Source§fn clone(&self) -> PciNodeView<'a>
fn clone(&self) -> PciNodeView<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Deref for PciNodeView<'a>
impl<'a> Deref for PciNodeView<'a>
Source§impl<'a> From<PciNodeView<'a>> for NodeType<'a>
impl<'a> From<PciNodeView<'a>> for NodeType<'a>
Source§fn from(v: PciNodeView<'a>) -> NodeType<'a>
fn from(v: PciNodeView<'a>) -> NodeType<'a>
Converts to this type from the input type.
Source§impl<'a> TryInto<PciNodeView<'a>> for NodeType<'a>
impl<'a> TryInto<PciNodeView<'a>> for NodeType<'a>
impl<'a> Copy for PciNodeView<'a>
Auto Trait Implementations§
impl<'a> Freeze for PciNodeView<'a>
impl<'a> RefUnwindSafe for PciNodeView<'a>
impl<'a> Send for PciNodeView<'a>
impl<'a> !Sync for PciNodeView<'a>
impl<'a> Unpin for PciNodeView<'a>
impl<'a> UnsafeUnpin for PciNodeView<'a>
impl<'a> UnwindSafe for PciNodeView<'a>
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