diff options
author | Zhang Jiejing <jiejing.zhang@freescale.com> | 2012-07-09 12:38:05 +0800 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2012-07-25 13:10:57 +0800 |
commit | d38cbf2648d63295e8f0c0c24243ac72692e5f3a (patch) | |
tree | 0cd1d8be533b341bf14594e898c79da08cbee826 /include/linux | |
parent | e406119f203b40485ee9282bdad69cfbba5f30fe (diff) |
ENGR00216013-1 memblock: add memblock_end_of_DRAM_with_reserved() function.
add a function to check the end address including reserved memory,
this API can provide the top address of phy memory,
it can be used to check if the phy memory is valild in some driver
like VPU.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/memblock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 7525e38c434d..7b72782d862d 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -81,6 +81,7 @@ extern phys_addr_t __memblock_alloc_base(phys_addr_t size, phys_addr_t max_addr); extern phys_addr_t memblock_phys_mem_size(void); extern phys_addr_t memblock_end_of_DRAM(void); +extern phys_addr_t memblock_end_of_DRAM_with_reserved(void); extern void memblock_enforce_memory_limit(phys_addr_t memory_limit); extern int memblock_is_memory(phys_addr_t addr); extern int memblock_is_region_memory(phys_addr_t base, phys_addr_t size); |