cbfs: Simplify cbfs_load_and_decompress() and stop exporting it
With the last external user to cbfs_load_and_decompress() gone, we can stop exporting this function to the rest of coreboot and make it local to cbfs.c. Also remove a couple of arguments that no longer really make a difference and fold the stage-specific code for in-place LZ4 decompression into cbfs_prog_stage_load(). Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I4b459650a28e020c4342a66090f55264fbd26363 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52083 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
committed by
Patrick Georgi
parent
a0ca786a6e
commit
eca99af229
@@ -165,13 +165,6 @@ void *cbfs_boot_map_optionrom(uint16_t vendor, uint16_t device);
|
||||
/* Return mapping of option ROM with revision number. Returns NULL on error. */
|
||||
void *cbfs_boot_map_optionrom_revision(uint16_t vendor, uint16_t device, uint8_t rev);
|
||||
|
||||
/* Load |in_size| bytes from |rdev| at |offset| to the |buffer_size| bytes large |buffer|,
|
||||
decompressing it according to |compression| in the process. Returns the decompressed file
|
||||
size, or 0 on error. LZMA files will be mapped for decompression. LZ4 files will be
|
||||
decompressed in-place with the buffer size requirements outlined in compression.h. */
|
||||
size_t cbfs_load_and_decompress(const struct region_device *rdev, size_t offset,
|
||||
size_t in_size, void *buffer, size_t buffer_size, uint32_t compression);
|
||||
|
||||
|
||||
/**********************************************************************************************
|
||||
* INTERNAL HELPERS FOR INLINES, DO NOT USE. *
|
||||
|
Reference in New Issue
Block a user