57d4bc63f0
This patch adds cbfs_get_size() and cbfs_get_type() helper functions (and _ro_ variations) to look up the size or type of a CBFS file without loading it. Generally, use of these should be discouraged because that tends to mean that the file needs to be looked up more than once, and cbfs_alloc() or cbfs_type_load() are usually the more efficient alternative... but sometimes they're unavoidable, so we might as well offer them. Also remove the <cbfs_private.h> header which had already become sort of unnecessary with previous changes. cbfs_boot_lookup() is now exported in <cbfs.h> for use in inlines, but should not be used directly by other files (and is prefixed with an underscore to highlight that). Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I8092d8f6e04bdfb4df6c626dc7d42b402fe0a8ba Reviewed-on: https://review.coreboot.org/c/coreboot/+/59312 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Jakub Czapiga <jacz@semihalf.com> Reviewed-by: Lean Sheng Tan <lean.sheng.tan@intel.com> |
||
---|---|---|
.. | ||
gnat | ||
asan.c | ||
b64_decode.c | ||
bmp_logo.c | ||
boot_device.c | ||
bootblock.c | ||
bootmem.c | ||
bootmode.c | ||
bootsplash.c | ||
cb.ads | ||
cbfs.c | ||
cbmem_common.c | ||
cbmem_console.c | ||
cbmem_stage_cache.c | ||
compute_ip_checksum.c | ||
coreboot_table.c | ||
crc_byte.c | ||
decompressor.c | ||
delay.c | ||
device_tree.c | ||
dimm_info_util.c | ||
dp_aux.c | ||
edid.c | ||
edid_fill_fb.c | ||
espi_debug.c | ||
ext_stage_cache.c | ||
fallback_boot.c | ||
fit.c | ||
fit_payload.c | ||
fmap.c | ||
fw_config.c | ||
gcc.c | ||
gcov-glue.c | ||
gcov-io.c | ||
gcov-io.h | ||
gcov-iov.h | ||
gpio.c | ||
halt.c | ||
hardwaremain.c | ||
hexdump.c | ||
hexstrtobin.c | ||
hw-time-timer.adb | ||
imd.c | ||
imd_cbmem.c | ||
jpeg.c | ||
jpeg.h | ||
Kconfig | ||
Kconfig.cbfs_verification | ||
libgcc.c | ||
libgcov.c | ||
list.c | ||
lzma.c | ||
lzmadecode.c | ||
lzmadecode.h | ||
Makefile.inc | ||
malloc.c | ||
memchr.c | ||
memcmp.c | ||
memcpy.c | ||
memmove.c | ||
memrange.c | ||
memset.c | ||
metadata_hash.c | ||
nhlt.c | ||
primitive_memtest.c | ||
prog_loaders.c | ||
prog_ops.c | ||
program.ld | ||
ramdetect.c | ||
ramtest.c | ||
reg_script.c | ||
region_file.c | ||
reset.c | ||
rmodule.c | ||
rmodule.ld | ||
romstage_handoff.c | ||
rtc.c | ||
selfboot.c | ||
spd_bin.c | ||
spd_cache.c | ||
stack.c | ||
string.c | ||
thread.c | ||
timer.c | ||
timer_queue.c | ||
timestamp.c | ||
ubsan.c | ||
uuid.c | ||
version.c | ||
wrdd.c |