[−][src]Struct acpi::PciConfigRegions
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]
H: AcpiHandler,
pub fn physical_address(
&self,
segment_group_no: u16,
bus: u8,
device: u8,
function: u8
) -> Option<u64>
[src]
&self,
segment_group_no: u16,
bus: u8,
device: u8,
function: u8
) -> Option<u64>
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]
pub fn clone(&self) -> PciConfigRegions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PciConfigRegions
[src]
Auto Trait Implementations
impl Send for PciConfigRegions
[src]
impl Sync for PciConfigRegions
[src]
impl Unpin for PciConfigRegions
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,