]> Git Repo - u-boot.git/blob - include/memtop.h
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sh
[u-boot.git] / include / memtop.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (c) 2024, Linaro Limited
4  */
5
6 /**
7  * get_mem_top() - Compute the value of ram_top
8  * @ram_start:  Start of RAM
9  * @ram_size:   RAM size
10  * @size:       Minimum RAM size requested
11  * @fdt:        FDT blob
12  *
13  * The function computes the top address of RAM memory that can be
14  * used by U-Boot. This is being done by going through the list of
15  * reserved memory regions specified in the devicetree blob passed
16  * to the function. The logic used here is derived from the lmb
17  * allocation function.
18  *
19  * Return: address of ram top on success, 0 on failure
20  */
21 phys_addr_t get_mem_top(phys_addr_t ram_start, phys_size_t ram_size,
22                         phys_size_t size, void *fdt);
This page took 0.026586 seconds and 4 git commands to generate.