Dan Handley | bcd60ba | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 1 | /* |
Joel Hutton | 5cc3bc8 | 2018-03-21 11:40:57 +0000 | [diff] [blame] | 2 | * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. |
Dan Handley | bcd60ba | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Dan Handley | bcd60ba | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __BL1_PRIVATE_H__ |
| 8 | #define __BL1_PRIVATE_H__ |
| 9 | |
Antonio Nino Diaz | 4b32e62 | 2018-08-16 16:52:57 +0100 | [diff] [blame] | 10 | #include <stdint.h> |
Joel Hutton | 5cc3bc8 | 2018-03-21 11:40:57 +0000 | [diff] [blame] | 11 | #include <utils_def.h> |
Yatharth Kochar | 71c9a5e | 2015-10-10 19:06:53 +0100 | [diff] [blame] | 12 | |
Sandrine Bailleux | 467d057 | 2014-06-24 14:02:34 +0100 | [diff] [blame] | 13 | /******************************************************************************* |
| 14 | * Declarations of linker defined symbols which will tell us where BL1 lives |
Sandrine Bailleux | 6c2daed | 2016-06-15 13:53:50 +0100 | [diff] [blame] | 15 | * in Trusted ROM and RAM |
Sandrine Bailleux | 467d057 | 2014-06-24 14:02:34 +0100 | [diff] [blame] | 16 | ******************************************************************************/ |
Joel Hutton | 5cc3bc8 | 2018-03-21 11:40:57 +0000 | [diff] [blame] | 17 | IMPORT_SYM(uintptr_t, __BL1_ROM_END__, BL1_ROM_END); |
Sandrine Bailleux | 6c2daed | 2016-06-15 13:53:50 +0100 | [diff] [blame] | 18 | |
Joel Hutton | 5cc3bc8 | 2018-03-21 11:40:57 +0000 | [diff] [blame] | 19 | IMPORT_SYM(uintptr_t, __BL1_RAM_START__, BL1_RAM_BASE); |
| 20 | IMPORT_SYM(uintptr_t, __BL1_RAM_END__, BL1_RAM_LIMIT); |
Sandrine Bailleux | 467d057 | 2014-06-24 14:02:34 +0100 | [diff] [blame] | 21 | |
Dan Handley | bcd60ba | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 22 | /****************************************** |
| 23 | * Function prototypes |
| 24 | *****************************************/ |
Dan Handley | a17fefa | 2014-05-14 12:38:32 +0100 | [diff] [blame] | 25 | void bl1_arch_setup(void); |
| 26 | void bl1_arch_next_el_setup(void); |
Dan Handley | bcd60ba | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 27 | |
Yatharth Kochar | a65be2f | 2015-10-09 18:06:13 +0100 | [diff] [blame] | 28 | void bl1_prepare_next_image(unsigned int image_id); |
Yatharth Kochar | 71c9a5e | 2015-10-10 19:06:53 +0100 | [diff] [blame] | 29 | |
| 30 | register_t bl1_fwu_smc_handler(unsigned int smc_fid, |
| 31 | register_t x1, |
| 32 | register_t x2, |
| 33 | register_t x3, |
| 34 | register_t x4, |
| 35 | void *cookie, |
| 36 | void *handle, |
| 37 | unsigned int flags); |
Dan Handley | bcd60ba | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 38 | #endif /* __BL1_PRIVATE_H__ */ |