[][src]Struct acpi::PciConfigRegions

pub struct PciConfigRegions { /* fields omitted */ }

Describes a set of regions of physical memory used to access the PCI-E configuration space. A region is created for each entry in the MCFG. Given the segment group, bus, device number, and function of a PCI-E device, the physical_address method on this will give you the physical address of the start of that device function's configuration space (each function has 4096 bytes of configuration space in PCI-E).

Methods

impl PciConfigRegions[src]

pub fn physical_address(
    &self,
    segment_group_no: u16,
    bus: u8,
    device: u8,
    function: u8
) -> Option<u64>
[src]

Get the physical address of the start of the configuration space for a given PCI-E device function. Returns None if there isn't an entry in the MCFG that manages that device.

Trait Implementations

impl Debug for PciConfigRegions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.