diff options
author | Tom Rini <trini@konsulko.com> | 2019-01-17 17:42:03 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-01-17 17:42:03 -0500 |
commit | e964df1e2ae7b2c041a9d767f03ad2b72a3f2ac7 (patch) | |
tree | 20fc239128010116c5034692afd9a82fb1ba0fa3 /include/lmb.h | |
parent | aac0c29d4b8418c5c78b552070ffeda022b16949 (diff) | |
parent | f8878da5571e5a1170f9c49214be5bafbc1b23a4 (diff) |
Merge branch '2019-01-16-master-imports'
- Fixes for CVE-2018-18440 and CVE-2018-18439
- Patch to allow disabling unneeded NAND ECC layouts
- Optimize SPI flash env read process
Diffstat (limited to 'include/lmb.h')
-rw-r--r-- | include/lmb.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/lmb.h b/include/lmb.h index f04d058093..1bb003e35e 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -28,9 +28,9 @@ struct lmb { struct lmb_region reserved; }; -extern struct lmb lmb; - extern void lmb_init(struct lmb *lmb); +extern void lmb_init_and_reserve(struct lmb *lmb, phys_addr_t base, + phys_size_t size, void *fdt_blob); extern long lmb_add(struct lmb *lmb, phys_addr_t base, phys_size_t size); extern long lmb_reserve(struct lmb *lmb, phys_addr_t base, phys_size_t size); extern phys_addr_t lmb_alloc(struct lmb *lmb, phys_size_t size, ulong align); @@ -38,6 +38,9 @@ extern phys_addr_t lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align phys_addr_t max_addr); extern phys_addr_t __lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align, phys_addr_t max_addr); +extern phys_addr_t lmb_alloc_addr(struct lmb *lmb, phys_addr_t base, + phys_size_t size); +extern phys_size_t lmb_get_unreserved_size(struct lmb *lmb, phys_addr_t addr); extern int lmb_is_reserved(struct lmb *lmb, phys_addr_t addr); extern long lmb_free(struct lmb *lmb, phys_addr_t base, phys_size_t size); |