pub struct NodeRefPci<'a> {
pub node: NodeRefGen<'a>,
}Fields§
§node: NodeRefGen<'a>Implementations§
Source§impl<'a> NodeRefPci<'a>
impl<'a> NodeRefPci<'a>
pub fn try_from(node: NodeRefGen<'a>) -> Result<Self, NodeRefGen<'a>>
pub fn interrupt_cells(&self) -> u32
Sourcepub fn interrupt_map_mask(&self) -> Option<U32Iter<'_>>
pub fn interrupt_map_mask(&self) -> Option<U32Iter<'_>>
Get the interrupt-map-mask property if present
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)
Sourcepub fn interrupt_map(&self) -> Result<Vec<PciInterruptMap>, FdtError>
pub fn interrupt_map(&self) -> Result<Vec<PciInterruptMap>, FdtError>
解析 interrupt-map 属性
Trait Implementations§
Source§impl<'a> Clone for NodeRefPci<'a>
impl<'a> Clone for NodeRefPci<'a>
Source§fn clone(&self) -> NodeRefPci<'a>
fn clone(&self) -> NodeRefPci<'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> Debug for NodeRefPci<'a>
impl<'a> Debug for NodeRefPci<'a>
Auto Trait Implementations§
impl<'a> Freeze for NodeRefPci<'a>
impl<'a> RefUnwindSafe for NodeRefPci<'a>
impl<'a> Send for NodeRefPci<'a>
impl<'a> Sync for NodeRefPci<'a>
impl<'a> Unpin for NodeRefPci<'a>
impl<'a> UnwindSafe for NodeRefPci<'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