diff options
author | Simon Glass <sjg@chromium.org> | 2022-01-12 19:26:23 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-01-13 09:13:41 -0700 |
commit | e50a24a0456c07d28c0d589e061dd0576f6bb917 (patch) | |
tree | a806d836573039a451b42643ad3fcb9c0951b3e2 /common | |
parent | 99047f5d7f9cb013f7040edd7d20a70cc30646b5 (diff) |
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 'common')
-rw-r--r-- | common/bloblist.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/bloblist.c b/common/bloblist.c index 0049bb9a39..1ed9172d89 100644 --- a/common/bloblist.c +++ b/common/bloblist.c @@ -367,6 +367,18 @@ int bloblist_finish(void) return 0; } +ulong bloblist_get_base(void) +{ + return map_to_sysmem(gd->bloblist); +} + +ulong bloblist_get_size(void) +{ + struct bloblist_hdr *hdr = gd->bloblist; + + return hdr->size; +} + void bloblist_get_stats(ulong *basep, ulong *sizep, ulong *allocedp) { struct bloblist_hdr *hdr = gd->bloblist; |