mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
99047f5d7f
commit
e50a24a045
3 changed files with 28 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue