xref: /rk3399_ARM-atf/bl1/bl1_private.h (revision 61f72a34250d063da67f4fc2b0eb8c3fda3376be)
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 <types.h>
11 #include <utils_def.h>
12 
13 /*******************************************************************************
14  * Declarations of linker defined symbols which will tell us where BL1 lives
15  * in Trusted ROM and RAM
16  ******************************************************************************/
17 IMPORT_SYM(uintptr_t, __BL1_ROM_END__,   BL1_ROM_END);
18 
19 IMPORT_SYM(uintptr_t, __BL1_RAM_START__, BL1_RAM_BASE);
20 IMPORT_SYM(uintptr_t, __BL1_RAM_END__,   BL1_RAM_LIMIT);
21 
22 /******************************************
23  * Function prototypes
24  *****************************************/
25 void bl1_arch_setup(void);
26 void bl1_arch_next_el_setup(void);
27 
28 void bl1_prepare_next_image(unsigned int image_id);
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);
38 #endif /* __BL1_PRIVATE_H__ */
39