Dan Handley | 5b827a8 | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 1 | /* |
Joel Hutton | 9f85f9e | 2018-03-21 11:40:57 +0000 | [diff] [blame] | 2 | * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. |
Dan Handley | 5b827a8 | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 3 | * |
dp-arm | 82cb2c1 | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Dan Handley | 5b827a8 | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __BL1_PRIVATE_H__ |
| 8 | #define __BL1_PRIVATE_H__ |
| 9 | |
Yatharth Kochar | 48bfb88 | 2015-10-10 19:06:53 +0100 | [diff] [blame] | 10 | #include <types.h> |
Joel Hutton | 9f85f9e | 2018-03-21 11:40:57 +0000 | [diff] [blame] | 11 | #include <utils_def.h> |
Yatharth Kochar | 48bfb88 | 2015-10-10 19:06:53 +0100 | [diff] [blame] | 12 | |
Sandrine Bailleux | 8f55dfb | 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 | c02fcc4 | 2016-06-15 13:53:50 +0100 | [diff] [blame] | 15 | * in Trusted ROM and RAM |
Sandrine Bailleux | 8f55dfb | 2014-06-24 14:02:34 +0100 | [diff] [blame] | 16 | ******************************************************************************/ |
Joel Hutton | 9f85f9e | 2018-03-21 11:40:57 +0000 | [diff] [blame] | 17 | IMPORT_SYM(uintptr_t, __BL1_ROM_END__, BL1_ROM_END); |
Sandrine Bailleux | c02fcc4 | 2016-06-15 13:53:50 +0100 | [diff] [blame] | 18 | |
Joel Hutton | 9f85f9e | 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 | 8f55dfb | 2014-06-24 14:02:34 +0100 | [diff] [blame] | 21 | |
Dan Handley | 5b827a8 | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 22 | /****************************************** |
| 23 | * Function prototypes |
| 24 | *****************************************/ |
Dan Handley | c6bc071 | 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 | 5b827a8 | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 27 | |
Yatharth Kochar | 7baff11 | 2015-10-09 18:06:13 +0100 | [diff] [blame] | 28 | void bl1_prepare_next_image(unsigned int image_id); |
Yatharth Kochar | 48bfb88 | 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 | 5b827a8 | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 38 | #endif /* __BL1_PRIVATE_H__ */ |