xref: /rk3399_ARM-atf/bl1/bl1_private.h (revision 09d40e0e08283a249e7dce0e106c07c5141f9b7e)
1 /*
2  * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef BL1_PRIVATE_H
8 #define BL1_PRIVATE_H
9 
10 #include <stdint.h>
11 
12 #include <lib/utils_def.h>
13 
14 /*******************************************************************************
15  * Declarations of linker defined symbols which will tell us where BL1 lives
16  * in Trusted ROM and RAM
17  ******************************************************************************/
18 IMPORT_SYM(uintptr_t, __BL1_ROM_END__,   BL1_ROM_END);
19 
20 IMPORT_SYM(uintptr_t, __BL1_RAM_START__, BL1_RAM_BASE);
21 IMPORT_SYM(uintptr_t, __BL1_RAM_END__,   BL1_RAM_LIMIT);
22 
23 /******************************************
24  * Function prototypes
25  *****************************************/
26 void bl1_arch_setup(void);
27 void bl1_arch_next_el_setup(void);
28 
29 void bl1_prepare_next_image(unsigned int image_id);
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);
39 #endif /* BL1_PRIVATE_H */
40