xref: /rk3399_ARM-atf/bl2/bl2_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 __BL2_PRIVATE_H__
8 #define __BL2_PRIVATE_H__
9 
10 #if BL2_IN_XIP_MEM
11 /*******************************************************************************
12  * Declarations of linker defined symbols which will tell us where BL2 lives
13  * in Trusted ROM and RAM
14  ******************************************************************************/
15 extern uintptr_t __BL2_ROM_END__;
16 #define BL2_ROM_END (uintptr_t)(&__BL2_ROM_END__)
17 
18 extern uintptr_t __BL2_RAM_START__;
19 extern uintptr_t __BL2_RAM_END__;
20 #define BL2_RAM_BASE (uintptr_t)(&__BL2_RAM_START__)
21 #define BL2_RAM_LIMIT (uintptr_t)(&__BL2_RAM_END__)
22 #endif
23 
24 /******************************************
25  * Forward declarations
26  *****************************************/
27 struct entry_point_info;
28 
29 /******************************************
30  * Function prototypes
31  *****************************************/
32 void bl2_arch_setup(void);
33 struct entry_point_info *bl2_load_images(void);
34 void bl2_run_next_image(const struct entry_point_info *bl_ep_info);
35 
36 #endif /* __BL2_PRIVATE_H__ */
37