pci_types

Trait ConfigRegionAccess

Source
pub trait ConfigRegionAccess {
    // Required methods
    unsafe fn read(&self, address: PciAddress, offset: u16) -> u32;
    unsafe fn write(&self, address: PciAddress, offset: u16, value: u32);
}

Required Methods§

Source

unsafe fn read(&self, address: PciAddress, offset: u16) -> u32

Performs a PCI read at address with offset.

§Safety

address and offset must be valid for PCI reads.

Source

unsafe fn write(&self, address: PciAddress, offset: u16, value: u32)

Performs a PCI write at address with offset.

§Safety

address and offset must be valid for PCI writes.

Implementations on Foreign Types§

Source§

impl<T: ConfigRegionAccess + ?Sized> ConfigRegionAccess for &T

Source§

unsafe fn read(&self, address: PciAddress, offset: u16) -> u32

Source§

unsafe fn write(&self, address: PciAddress, offset: u16, value: u32)

Implementors§