Attention is currently required from: Nico Huber, Edward O'Callaghan. Hello build bot (Jenkins), Nico Huber,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/62951
to look at the new patch set (#3).
Change subject: pcidev: Construct a API to handle phantom pci controllers ......................................................................
pcidev: Construct a API to handle phantom pci controllers
On Intel the SPI PCI device can have hiden PCI vendor and device IDs. So we need a PCI access method that works even when the OS doesn't know the PCI device.
This however does not generalise since it would bring along other constraints (e.g. on PCI domains, extended PCIe config space).
Fortunately the logic exists inside chipset_enable.c however the interaction with the rest of the pcidev workers are quite invasive and hard to reason about. Therefore here we implement a definable API to manage this special casing by having methods define on a handle with a known life-time.
BUG=b:220950271 TEST=`sudo ./flashrom -p internal -r /tmp/bios` on Found chipset "Intel Kaby Lake U w/ iHDCP2.2 Prem.".
Change-Id: Ic75573a14c9997a2d0347cd683ffc0c78d1b3a4f Signed-off-by: Edward O'Callaghan quasisec@google.com --- M chipset_enable.c M include/programmer.h M pcidev.c 3 files changed, 82 insertions(+), 30 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/51/62951/3