Skip to main content

find_ext_capability

Function find_ext_capability 

Source
pub fn find_ext_capability(dev: &PciDevice, cap_id: u16) -> Option<u16>
Expand description

Find the PCIe extended capability offset for a given capability ID.

Extended capabilities are always at offsets >= 0x100 in PCIe config space. Requires ECAM support (MCFG ACPI table) to read.