coreboot/src
Julius Werner 57d4bc63f0 cbfs: Add helper functions to look up size and type of a file
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>
2021-11-17 12:46:25 +00:00
..
acpi Rename ECAM-specific MMCONF Kconfigs 2021-11-10 17:24:16 +00:00
arch Add ENV_STAGE_SUPPORTS_SMP to clean up spinlock stubs 2021-11-13 22:26:53 +00:00
commonlib drivers/intel/fsp2_0: Allow FSP-M to be relocated 2021-11-08 19:58:46 +00:00
console src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
cpu cpu/intel: Use unsigned types in get_cpu_count() 2021-11-05 15:30:34 +00:00
device device/pci_rom: Add vga_oprom_preload 2021-11-15 16:16:02 +00:00
drivers drivers/wifi/generic: fix package_size to align with WLAN driver 2021-11-15 09:59:44 +00:00
ec ChromeOS: Fix <vc/google/chromeos/chromeos.h> 2021-11-09 00:14:46 +00:00
include cbfs: Add helper functions to look up size and type of a file 2021-11-17 12:46:25 +00:00
lib cbfs: Add helper functions to look up size and type of a file 2021-11-17 12:46:25 +00:00
mainboard soc/mediatek/mt8186: Add RTC and clkbuf drivers 2021-11-17 10:31:32 +00:00
northbridge haswell/lynxpoint/broadwell: Use azalia_codec_init() 2021-11-11 22:44:54 +00:00
security Reland "vboot_logic: Set VB2_CONTEXT_EC_TRUSTED in verstage_main" 2021-11-15 12:00:12 +00:00
soc soc/mediatek/mt8186: Add RTC and clkbuf drivers 2021-11-17 10:31:32 +00:00
southbridge lynxpoint/broadwell: Use azalia_codecs_init() 2021-11-11 22:45:11 +00:00
superio superio: Replace bad uses of find_resource 2021-11-04 17:36:32 +00:00
vendorcode vendorcode/intel/fsp: Add Alder Lake FSP headers for FSP v2422_01 2021-11-15 09:57:35 +00:00
Kconfig Kconfig: Show console DEBUG_FUNC if OVERRIDE_LOGLEVEL is set 2021-11-13 00:20:11 +00:00