X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Flmb.h;h=6b6959fd8604d9f28d219de691928980b316eef7;hb=ad0fed46b97d3b46e9a5be2a45ff77536544926b;hp=02830756392aeb7f6998e5afee6dc12eeaa597da;hpb=730f298485984b011b6ee8f4acb511cb45a843dd;p=karo-tx-uboot.git diff --git a/include/lmb.h b/include/lmb.h index 0283075639..6b6959fd86 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -8,10 +8,7 @@ * * Copyright (C) 2001 Peter Bergner, IBM Corp. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. + * SPDX-License-Identifier: GPL-2.0+ */ #define MAX_LMB_REGIONS 8 @@ -43,7 +40,7 @@ extern phys_addr_t lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align extern phys_addr_t __lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align, phys_addr_t max_addr); extern int lmb_is_reserved(struct lmb *lmb, phys_addr_t addr); -extern long lmb_free(struct lmb *lmb, u64 base, u64 size); +extern long lmb_free(struct lmb *lmb, phys_addr_t base, phys_size_t size); extern void lmb_dump_all(struct lmb *lmb); @@ -52,6 +49,10 @@ lmb_size_bytes(struct lmb_region *type, unsigned long region_nr) { return type->region[region_nr].size; } + +void board_lmb_reserve(struct lmb *lmb); +void arch_lmb_reserve(struct lmb *lmb); + #endif /* __KERNEL__ */ #endif /* _LINUX_LMB_H */