Skip to main content

ecam_read32

Function ecam_read32 

Source
unsafe fn ecam_read32(
    ecam_base: usize,
    bus: u8,
    device: u8,
    function: u8,
    offset: u16,
) -> u32
Expand description

Read a 32-bit register from an ECAM-mapped PCI config space.

ecam_base is the MMIO base address of the ECAM region. bus, device, function identify the device; offset is the register.