blob: 01f6c6bd2c83c3150d00add303bbbf7df9abe4ae [file] [log] [blame]
Dan Handley5b827a82014-04-17 18:53:42 +01001/*
Roberto Vargas7fabe1a2018-02-12 12:36:17 +00002 * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
Dan Handley5b827a82014-04-17 18:53:42 +01003 *
dp-arm82cb2c12017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Dan Handley5b827a82014-04-17 18:53:42 +01005 */
6
Antonio Nino Diazc3cf06f2018-11-08 10:20:19 +00007#ifndef BL2_PRIVATE_H
8#define BL2_PRIVATE_H
Dan Handley5b827a82014-04-17 18:53:42 +01009
Jiafei Pan7d173fc2018-03-21 07:20:09 +000010#if BL2_IN_XIP_MEM
Yann Gautier1b18c6c2018-12-10 10:41:03 +010011
12#include <stdint.h>
13
Jiafei Pan7d173fc2018-03-21 07:20:09 +000014/*******************************************************************************
15 * Declarations of linker defined symbols which will tell us where BL2 lives
16 * in Trusted ROM and RAM
17 ******************************************************************************/
18extern uintptr_t __BL2_ROM_END__;
19#define BL2_ROM_END (uintptr_t)(&__BL2_ROM_END__)
20
21extern uintptr_t __BL2_RAM_START__;
22extern uintptr_t __BL2_RAM_END__;
23#define BL2_RAM_BASE (uintptr_t)(&__BL2_RAM_START__)
24#define BL2_RAM_LIMIT (uintptr_t)(&__BL2_RAM_END__)
25#endif
26
Dan Handley5b827a82014-04-17 18:53:42 +010027/******************************************
Yatharth Kochar42019bf2016-09-12 16:10:33 +010028 * Forward declarations
29 *****************************************/
30struct entry_point_info;
31
32/******************************************
Dan Handley5b827a82014-04-17 18:53:42 +010033 * Function prototypes
34 *****************************************/
Dan Handleyc6bc0712014-05-14 12:38:32 +010035void bl2_arch_setup(void);
Yatharth Kochar42019bf2016-09-12 16:10:33 +010036struct entry_point_info *bl2_load_images(void);
Roberto Vargas7fabe1a2018-02-12 12:36:17 +000037void bl2_run_next_image(const struct entry_point_info *bl_ep_info);
Dan Handley5b827a82014-04-17 18:53:42 +010038
Antonio Nino Diazc3cf06f2018-11-08 10:20:19 +000039#endif /* BL2_PRIVATE_H */