bl1_private.h 1.14 KB
Newer Older
1
/*
2
 * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved.
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
5
6
7
8
9
 */

#ifndef __BL1_PRIVATE_H__
#define __BL1_PRIVATE_H__

10
11
#include <types.h>

12
13
/*******************************************************************************
 * Declarations of linker defined symbols which will tell us where BL1 lives
14
 * in Trusted ROM and RAM
15
 ******************************************************************************/
16
17
extern uintptr_t __BL1_ROM_END__;
#define BL1_ROM_END (uintptr_t)(&__BL1_ROM_END__)
18

19
20
21
22
extern uintptr_t __BL1_RAM_START__;
extern uintptr_t __BL1_RAM_END__;
#define BL1_RAM_BASE (uintptr_t)(&__BL1_RAM_START__)
#define BL1_RAM_LIMIT (uintptr_t)(&__BL1_RAM_END__)
23

24
25
26
/******************************************
 * Function prototypes
 *****************************************/
27
28
void bl1_arch_setup(void);
void bl1_arch_next_el_setup(void);
29

30
void bl1_prepare_next_image(unsigned int image_id);
31
32
33
34
35
36
37
38
39

register_t bl1_fwu_smc_handler(unsigned int smc_fid,
		register_t x1,
		register_t x2,
		register_t x3,
		register_t x4,
		void *cookie,
		void *handle,
		unsigned int flags);
40
#endif /* __BL1_PRIVATE_H__ */