coreboot/src/lib
Jianjun Wang d16c2aa6de coreboot_tables: Add PCIe info to coreboot table
Add 'lb_fill_pcie' function to pass PCIe information from coreboot to
libpayload, and add CB_ERR_NOT_IMPLEMENTED to the cb_err enum for the
__weak function.

ARM platform usually does not have common address for PCIe to access the
configuration space of devices. Therefore, new API is added to pass the
base address of PCIe controller for payloads to access PCIe devices.

TEST=Build pass and boot up to kernel successfully via SSD on Dojo
board, here is the SSD information in boot log:
 == NVME IDENTIFY CONTROLLER DATA ==
    PCI VID   : 0x15b7
    PCI SSVID : 0x15b7
    SN        : 21517J440114
    MN        : WDC PC SN530 SDBPTPZ-256G-1006
    RAB       : 0x4
    AERL      : 0x7
    SQES      : 0x66
    CQES      : 0x44
    NN        : 0x1
Identified NVMe model WDC PC SN530 SDBPTPZ-256G-1006

BUG=b:178565024
BRANCH=cherry

Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com>
Change-Id: I6cdce21efc66aa441ec077e6fc1d5d1c6a9aafb0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63251
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Shelley Chen <shchen@google.com>
2022-05-19 16:34:55 +00:00
..
gnat Makefile.inc: Add -fno-pie to ADAFLAGS_common 2022-01-23 18:55:16 +00:00
asan.c
b64_decode.c
bmp_logo.c
boot_device.c
bootblock.c timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
bootmem.c lib: Remove unused <stdlib.h> and use <types.h> when appropriate 2022-04-24 17:43:57 +00:00
bootmode.c
bootsplash.c
cb.ads
cbfs.c rules.h: Use more consistent naming 2022-05-16 21:52:22 +00:00
cbfs_master_header.c Makefile.inc: Generate master header and pointer as C structs 2022-05-12 11:11:53 +00:00
cbmem_common.c
cbmem_console.c cpu/x86/smm,lib/cbmem_console: Enable CBMEMC when using DEBUG_SMI 2022-03-09 14:26:26 +00:00
cbmem_stage_cache.c treewide: Remove "ERROR: "/"WARN: " prefixes from log messages 2022-02-07 23:29:09 +00:00
compute_ip_checksum.c
coreboot_table.c coreboot_tables: Add PCIe info to coreboot table 2022-05-19 16:34:55 +00:00
crc_byte.c
decompressor.c timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
delay.c
device_tree.c lib/device_tree.c: zero-initialize new DT nodes 2022-03-22 20:45:26 +00:00
dimm_info_util.c
dp_aux.c Use the fallthrough statement in switch loops 2022-02-16 21:29:53 +00:00
edid.c Use the fallthrough statement in switch loops 2022-02-16 21:29:53 +00:00
edid_fill_fb.c lib/edid_fill_fb.c: Remove unused <bootsplash.h> 2022-04-24 17:44:24 +00:00
espi_debug.c
ext_stage_cache.c
fallback_boot.c
fit.c lib: Remove unused <stdlib.h> and use <types.h> when appropriate 2022-04-24 17:43:57 +00:00
fit_payload.c timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
fmap.c FMAP: Refactor CBMEM hook 2022-04-26 05:51:08 +00:00
fw_config.c
gcc.c
gcov-glue.c
gcov-io.c
gcov-io.h
gcov-iov.h
gpio.c
halt.c
hardwaremain.c lib/hardwaremain.c: Move creating ACPI structs to bootstate hooks 2022-04-27 10:56:47 +00:00
hexdump.c
hexstrtobin.c
hw-time-timer.adb
imd.c lib: Remove unused <stdlib.h> and use <types.h> when appropriate 2022-04-24 17:43:57 +00:00
imd_cbmem.c lib: Remove unused <stdlib.h> and use <types.h> when appropriate 2022-04-24 17:43:57 +00:00
jpeg.c
jpeg.h
Kconfig
Kconfig.cbfs_verification
libgcc.c
libgcov.c
list.c
lzma.c
lzmadecode.c
lzmadecode.h
Makefile.inc lib/Makefile.inc: Correct filename to master_header_pointer.c 2022-05-17 17:44:40 +00:00
malloc.c
master_header_pointer.c Kconfig: Add an option to skip adding a cbfs bootblock on x86 2022-05-12 11:12:21 +00:00
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c
memset.c
metadata_hash.c
nhlt.c
primitive_memtest.c
prog_loaders.c timestamp: Replace TS_ROMSTAGE_END conditional 2022-04-26 05:49:33 +00:00
prog_ops.c
program.ld rules.h: Use more consistent naming 2022-05-16 21:52:22 +00:00
ramdetect.c
ramtest.c
reg_script.c
region_file.c
reset.c
rmodule.c lib: Remove unused <stdlib.h> and use <types.h> when appropriate 2022-04-24 17:43:57 +00:00
rmodule.ld
romstage_handoff.c
rtc.c
selfboot.c lib: Remove unused <stdlib.h> and use <types.h> when appropriate 2022-04-24 17:43:57 +00:00
spd_bin.c lib/spd: Demote log about using default DDR4 params to NOTICE 2022-05-16 04:34:59 +00:00
spd_cache.c lib: Check for non-existent DIMMs in check_if_dimm_changed 2022-04-20 06:57:21 +00:00
stack.c
string.c
thread.c lib: Remove unused <stdlib.h> and use <types.h> when appropriate 2022-04-24 17:43:57 +00:00
timer.c
timer_queue.c
timestamp.c treewide: Remove "ERROR: "/"WARN: " prefixes from log messages 2022-02-07 23:29:09 +00:00
ubsan.c
uuid.c
version.c
wrdd.c