Replace x86-specific port IO access with ECAM for reading PCIe config space.
|
let address = 0x80000000 |
|
| (u32::from(bus) << 16) |
|
| (u32::from(dev) << 11) |
|
| (u32::from(func) << 8) |
|
| u32::from(offset); |
|
Pio::<u32>::new(0xCF8).write(address); |
|
Ok(Pio::<u32>::new(0xCFC).read()) |
Replace x86-specific port IO access with ECAM for reading PCIe config space.
firmware-update/src/app/pci.rs
Lines 109 to 115 in 2325f02