summaryrefslogtreecommitdiff
path: root/include/lmb.h
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2021-03-10 12:16:27 +0300
committerTom Rini <trini@konsulko.com>2021-04-22 21:09:45 +0300
commit00fd8dad4d2ed738d11f29d992dc106bbdf4d68f (patch)
treeef20e639671e0727dee0454f6aa01311ae140097 /include/lmb.h
parent8f167da9c572845782000075e092e63a8273032d (diff)
downloadu-boot-00fd8dad4d2ed738d11f29d992dc106bbdf4d68f.tar.xz
lmb: add a max parameter in the struct lmb_region
Add a max parameter in lmb_region struct to handle test in lmb_add_region without using the MAX_LMB_REGIONS define. This patch allows to modify these size independently for memory of reserved regions in the next patches. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'include/lmb.h')
-rw-r--r--include/lmb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/lmb.h b/include/lmb.h
index a3247544c1..f3397c7f73 100644
--- a/include/lmb.h
+++ b/include/lmb.h
@@ -21,6 +21,7 @@ struct lmb_property {
struct lmb_region {
unsigned long cnt;
+ unsigned long max;
struct lmb_property region[MAX_LMB_REGIONS+1];
};