Max Filippov | 9ba067f | 2014-03-23 03:17:43 +0400 | [diff] [blame^] | 1 | /* |
| 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 | |
| 16 | struct meminfo { |
| 17 | unsigned long start; |
| 18 | unsigned long end; |
| 19 | }; |
| 20 | |
| 21 | struct sysmem_info { |
| 22 | int nr_banks; |
| 23 | struct meminfo bank[SYSMEM_BANKS_MAX]; |
| 24 | }; |
| 25 | |
| 26 | extern struct sysmem_info sysmem; |
| 27 | |
| 28 | int add_sysmem_bank(unsigned long start, unsigned long end); |
| 29 | int mem_reserve(unsigned long, unsigned long, int); |
| 30 | void bootmem_init(void); |
| 31 | void zones_init(void); |
| 32 | |
| 33 | #endif /* _XTENSA_SYSMEM_H */ |