SpiDev::new takes as input the MCFG table and calculates the base address of the Intel SPI device. It would be useful to have access to this logic outside of constructing this one specific device, as ECAM could be useful for all PCIe devices on x86 (Intel and AMD) without relying on legacy port IO (in/out).
SpiDev::newtakes as input the MCFG table and calculates the base address of the Intel SPI device. It would be useful to have access to this logic outside of constructing this one specific device, as ECAM could be useful for all PCIe devices on x86 (Intel and AMD) without relying on legacy port IO (in/out).