aboutsummaryrefslogtreecommitdiff
path: root/include/bloblist.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-01-12 19:26:23 -0700
committerSimon Glass <sjg@chromium.org>2022-01-13 09:13:41 -0700
commite50a24a0456c07d28c0d589e061dd0576f6bb917 (patch)
treea806d836573039a451b42643ad3fcb9c0951b3e2 /include/bloblist.h
parent99047f5d7f9cb013f7040edd7d20a70cc30646b5 (diff)
downloadu-boot-e50a24a0456c07d28c0d589e061dd0576f6bb917.zip
u-boot-e50a24a0456c07d28c0d589e061dd0576f6bb917.tar.gz
u-boot-e50a24a0456c07d28c0d589e061dd0576f6bb917.tar.bz2
bloblist: Add functions to obtain base address and size
Add a few convenience functions to obtain useful information about the bloblist. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bloblist.h')
-rw-r--r--include/bloblist.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/bloblist.h b/include/bloblist.h
index 13f2b3f..d9e108d 100644
--- a/include/bloblist.h
+++ b/include/bloblist.h
@@ -303,6 +303,20 @@ int bloblist_finish(void);
void bloblist_get_stats(ulong *basep, ulong *sizep, ulong *allocedp);
/**
+ * bloblist_get_base() - Get the base address of the bloblist
+ *
+ * @returns base address of bloblist
+ */
+ulong bloblist_get_base(void);
+
+/**
+ * bloblist_get_size() - Get the size of the bloblist
+ *
+ * @returns the size in bytes
+ */
+ulong bloblist_get_size(void);
+
+/**
* bloblist_show_stats() - Show information about the bloblist
*
* This shows useful information about the bloblist on the console