summaryrefslogtreecommitdiff
path: root/include/bloblist.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-12-27 13:07:09 -0800
committerSimon Glass <sjg@chromium.org>2023-12-31 07:21:02 -0700
commit7d790a80b67958b49da591d32662c4b168737012 (patch)
tree6c108428cebedc5b31a8436d18c9b47bf2263456 /include/bloblist.h
parentb86b2d940caf27aa80b7c657e48770349e15491b (diff)
bloblist: Add alignment to bloblist_new()
Allow the alignment to be specified when creating a bloblist. Signed-off-by: Simon Glass <sjg@chromium.org> Co-developed-by: Raymond Mao <raymond.mao@linaro.org> Signed-off-by: Raymond Mao <raymond.mao@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/bloblist.h')
-rw-r--r--include/bloblist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/bloblist.h b/include/bloblist.h
index 4ec4b3d449e..145e5c0242c 100644
--- a/include/bloblist.h
+++ b/include/bloblist.h
@@ -330,10 +330,11 @@ int bloblist_resize(uint tag, int new_size);
* @addr: Address of bloblist
* @size: Initial size for bloblist
* @flags: Flags to use for bloblist
+ * @align_log2: Log base 2 of maximum alignment provided by this bloblist
* Return: 0 if OK, -EFAULT if addr is not aligned correctly, -ENOSPC is the
* area is not large enough
*/
-int bloblist_new(ulong addr, uint size, uint flags);
+int bloblist_new(ulong addr, uint size, uint flags, uint align_log2);
/**
* bloblist_check() - Check if a bloblist exists