summaryrefslogtreecommitdiffstats
path: root/src/include/cbfs.h
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2021-03-10 18:49:37 -0800
committerPatrick Georgi <pgeorgi@google.com>2021-04-06 07:48:40 +0000
commiteca99af22918d1fe8775ed7d299d235147d82228 (patch)
tree2581665ef4063bd765af221609c5c8e93b449aca /src/include/cbfs.h
parenta0ca786a6ea72a3cac2f880bb1d099e3034cbca7 (diff)
downloadcoreboot-eca99af22918d1fe8775ed7d299d235147d82228.tar.gz
coreboot-eca99af22918d1fe8775ed7d299d235147d82228.tar.bz2
coreboot-eca99af22918d1fe8775ed7d299d235147d82228.zip
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>
Diffstat (limited to 'src/include/cbfs.h')
-rw-r--r--src/include/cbfs.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/include/cbfs.h b/src/include/cbfs.h
index 37bac308d8bf..9ed5233d0397 100644
--- a/src/include/cbfs.h
+++ b/src/include/cbfs.h
@@ -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. *