[][src]Struct acpi::PciConfigRegions

pub struct PciConfigRegions { /* fields omitted */ }

Describes a set of regions of physical memory used to access the PCIe configuration space. A region is created for each entry in the MCFG. Given the segment group, bus, device number, and function of a PCIe 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 PCIe).

Implementations

impl PciConfigRegions[src]

pub fn new<H>(tables: &AcpiTables<H>) -> Result<PciConfigRegions, AcpiError> where
    H: AcpiHandler
[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 PCIe device function. Returns None if there isn't an entry in the MCFG that manages that device.

Trait Implementations

impl Clone for PciConfigRegions[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.