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 | |
Antonio Nino Diaz | c3cf06f | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef BL1_PRIVATE_H |
| 8 | #define BL1_PRIVATE_H |
Dan Handley | 5b827a8 | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 9 | |
Antonio Nino Diaz | 93c78ed | 2018-08-16 16:52:57 +0100 | [diff] [blame] | 10 | #include <stdint.h> |
Antonio Nino Diaz | 09d40e0 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 11 | |
| 12 | #include <lib/utils_def.h> |
Yatharth Kochar | 48bfb88 | 2015-10-10 19:06:53 +0100 | [diff] [blame] | 13 | |
Sandrine Bailleux | 8f55dfb | 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 | c02fcc4 | 2016-06-15 13:53:50 +0100 | [diff] [blame] | 16 | * in Trusted ROM and RAM |
Sandrine Bailleux | 8f55dfb | 2014-06-24 14:02:34 +0100 | [diff] [blame] | 17 | ******************************************************************************/ |
Joel Hutton | 9f85f9e | 2018-03-21 11:40:57 +0000 | [diff] [blame] | 18 | IMPORT_SYM(uintptr_t, __BL1_ROM_END__, BL1_ROM_END); |
Sandrine Bailleux | c02fcc4 | 2016-06-15 13:53:50 +0100 | [diff] [blame] | 19 | |
Joel Hutton | 9f85f9e | 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 | 8f55dfb | 2014-06-24 14:02:34 +0100 | [diff] [blame] | 22 | |
Dan Handley | 5b827a8 | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 23 | /****************************************** |
| 24 | * Function prototypes |
| 25 | *****************************************/ |
Dan Handley | c6bc071 | 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 | 5b827a8 | 2014-04-17 18:53:42 +0100 | [diff] [blame] | 28 | |
Yatharth Kochar | 7baff11 | 2015-10-09 18:06:13 +0100 | [diff] [blame] | 29 | void bl1_prepare_next_image(unsigned int image_id); |
Yatharth Kochar | 48bfb88 | 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 | c3cf06f | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 39 | #endif /* BL1_PRIVATE_H */ |