summaryrefslogtreecommitdiff
path: root/include/bloblist.h
diff options
context:
space:
mode:
authorRaymond Mao <raymond.mao@linaro.org>2025-02-19 16:02:19 -0800
committerTom Rini <trini@konsulko.com>2025-02-19 18:49:36 -0600
commit6799f09069f402a33c9cb202b71e144497bd9b7a (patch)
tree2b13bc02a4a75795ed42de3885b50bd4a2e60eb4 /include/bloblist.h
parent42aebf0f987798599b5f2d2ca6098a775bb9f448 (diff)
bloblist: refactor xferlist and bloblist
Refactor the xferlist to remove the relocating when bloblist passed from the boot args. Refactor bloblist init to use incoming standard passage by default if a valid transfer list exists in the boot args. For bloblist relocation, use the actual total size if it has a smaller BLOBLIST_SIZE_RELOC. Signed-off-by: Raymond Mao <raymond.mao@linaro.org> Suggested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/bloblist.h')
-rw-r--r--include/bloblist.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/bloblist.h b/include/bloblist.h
index 03d9862c0f1..ff9d5549052 100644
--- a/include/bloblist.h
+++ b/include/bloblist.h
@@ -483,19 +483,18 @@ static inline int bloblist_maybe_init(void)
* @rfdt: Register that holds the FDT base address.
* @rzero: Register that must be zero.
* @rsig: Register that holds signature and register conventions version.
+ * @xlist: Register that holds the transfer list.
* Return: 0 if OK, -EIO if the bloblist is not compliant to the register
* conventions.
*/
-int bloblist_check_reg_conv(ulong rfdt, ulong rzero, ulong rsig);
+int bloblist_check_reg_conv(ulong rfdt, ulong rzero, ulong rsig, ulong xlist);
/**
- * xferlist_from_boot_arg() - Get bloblist from the boot args and relocate it
- * to the specified address.
+ * xferlist_from_boot_arg() - Get bloblist from the boot args.
*
- * @addr: Address for the bloblist
- * @size: Size of space reserved for the bloblist
+ * @addr: Address of the bloblist
* Return: 0 if OK, else on error
*/
-int xferlist_from_boot_arg(ulong addr, ulong size);
+int xferlist_from_boot_arg(ulong *addr);
#endif /* __BLOBLIST_H */