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