blob: fe7ad750a158b988cb1f98f4f707d027a45c032f [file] [log] [blame]
Max Filippov9ba067f2014-03-23 03:17:43 +04001/*
2 * sysmem-related prototypes.
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (C) 2014 Cadence Design Systems Inc.
9 */
10
11#ifndef _XTENSA_SYSMEM_H
12#define _XTENSA_SYSMEM_H
13
14#define SYSMEM_BANKS_MAX 31
15
16struct meminfo {
17 unsigned long start;
18 unsigned long end;
19};
20
21struct sysmem_info {
22 int nr_banks;
23 struct meminfo bank[SYSMEM_BANKS_MAX];
24};
25
26extern struct sysmem_info sysmem;
27
28int add_sysmem_bank(unsigned long start, unsigned long end);
29int mem_reserve(unsigned long, unsigned long, int);
30void bootmem_init(void);
31void zones_init(void);
32
33#endif /* _XTENSA_SYSMEM_H */