blob: 01f6c6bd2c83c3150d00add303bbbf7df9abe4ae [file] [log] [blame]
Dan Handleybcd60ba2014-04-17 18:53:42 +01001/*
Roberto Vargas05712702018-02-12 12:36:17 +00002 * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
Dan Handleybcd60ba2014-04-17 18:53:42 +01003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Dan Handleybcd60ba2014-04-17 18:53:42 +01005 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef BL2_PRIVATE_H
8#define BL2_PRIVATE_H
Dan Handleybcd60ba2014-04-17 18:53:42 +01009
Jiafei Pan43a7bf42018-03-21 07:20:09 +000010#if BL2_IN_XIP_MEM
Yann Gautier3364cd42018-12-10 10:41:03 +010011
12#include <stdint.h>
13
Jiafei Pan43a7bf42018-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 Handleybcd60ba2014-04-17 18:53:42 +010027/******************************************
Yatharth Kochar51f76f62016-09-12 16:10:33 +010028 * Forward declarations
29 *****************************************/
30struct entry_point_info;
31
32/******************************************
Dan Handleybcd60ba2014-04-17 18:53:42 +010033 * Function prototypes
34 *****************************************/
Dan Handleya17fefa2014-05-14 12:38:32 +010035void bl2_arch_setup(void);
Yatharth Kochar51f76f62016-09-12 16:10:33 +010036struct entry_point_info *bl2_load_images(void);
Roberto Vargas05712702018-02-12 12:36:17 +000037void bl2_run_next_image(const struct entry_point_info *bl_ep_info);
Dan Handleybcd60ba2014-04-17 18:53:42 +010038
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000039#endif /* BL2_PRIVATE_H */