summaryrefslogtreecommitdiffstats
path: root/include/bloblist.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-13 20:29:43 -0700
committerTom Rini <trini@konsulko.com>2021-01-27 17:03:16 -0500
commit9fe064646d2c9f3914cd5ceae51c34020aa77599 (patch)
tree971f208a76257181d735a00c200ff04a7c2591b1 /include/bloblist.h
parent09d9ba9097ceb374f2802506c9e755fd8d5dd861 (diff)
downloadu-boot-9fe064646d2c9f3914cd5ceae51c34020aa77599.tar.gz
u-boot-9fe064646d2c9f3914cd5ceae51c34020aa77599.tar.xz
u-boot-9fe064646d2c9f3914cd5ceae51c34020aa77599.zip
bloblist: Support relocating to a larger space
Typically in TPL/SPL the bloblist is quite small. But U-Boot proper may want to add a lot more to it, such as ACPI tables. Add a way to expand the bloblist by relocating it in U-Boot proper, along with the other relocation activities. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bloblist.h')
-rw-r--r--include/bloblist.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/bloblist.h b/include/bloblist.h
index 8cdce61187..964b974fda 100644
--- a/include/bloblist.h
+++ b/include/bloblist.h
@@ -243,6 +243,16 @@ void bloblist_show_list(void);
const char *bloblist_tag_name(enum bloblist_tag_t tag);
/**
+ * bloblist_reloc() - Relocate the bloblist and optionally resize it
+ *
+ * @to: Pointer to new bloblist location (must not overlap old location)
+ * @to:size: New size for bloblist (must be larger than from_size)
+ * @from: Pointer to bloblist to relocate
+ * @from_size: Size of bloblist to relocate
+ */
+void bloblist_reloc(void *to, uint to_size, void *from, uint from_size);
+
+/**
* bloblist_init() - Init the bloblist system with a single bloblist
*
* This uses CONFIG_BLOBLIST_ADDR and CONFIG_BLOBLIST_SIZE to set up a bloblist