⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

ecam_read_config

Function ecam_read_config 

Source
pub fn ecam_read_config(
    ecam_base: u64,
    bus: u8,
    device: u8,
    func: u8,
    offset: u16,
) -> Option<u32>
Expand description

Read a PCI config register using memory-mapped ECAM access (PCIe).

ecam_base is the physical base address of the ECAM region from ACPI MCFG. Returns None if the physical-to-virtual translation is unavailable.