Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46348 )
Change subject: libpayload: Store pacc pointer in lib_sysinfo ......................................................................
libpayload: Store pacc pointer in lib_sysinfo
Change-Id: I496c5a3d78c7fb5d7c9f119a0c9a0314d54e729f Signed-off-by: Felix Singer felix.singer@secunet.com --- M payloads/libpayload/arch/x86/sysinfo.c M payloads/libpayload/include/sysinfo.h 2 files changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/48/46348/1
diff --git a/payloads/libpayload/arch/x86/sysinfo.c b/payloads/libpayload/arch/x86/sysinfo.c index ffa57bb..e38e641 100644 --- a/payloads/libpayload/arch/x86/sysinfo.c +++ b/payloads/libpayload/arch/x86/sysinfo.c @@ -78,5 +78,10 @@ lib_sysinfo.memrange[1].type = CB_MEM_RAM; }
+#if CONFIG(PCI) + lib_sysinfo.pacc = pci_alloc(); + pci_scan_bus(lib_sysinfo.pacc); +#endif + return ret; } diff --git a/payloads/libpayload/include/sysinfo.h b/payloads/libpayload/include/sysinfo.h index fe3d330..26e3287 100644 --- a/payloads/libpayload/include/sysinfo.h +++ b/payloads/libpayload/include/sysinfo.h @@ -130,6 +130,8 @@
/* Pointer to FMAP cache in CBMEM */ uintptr_t fmap_cache; + + struct pci_access *pacc; };
extern struct sysinfo_t lib_sysinfo;