xref: /rk3399_ARM-atf/bl1/bl1_private.h (revision c3cf06f1a3a9b9ee8ac7a0ae505f95c45f7dca84)
15b827a8fSDan Handley /*
29f85f9e3SJoel Hutton  * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
35b827a8fSDan Handley  *
482cb2c1aSdp-arm  * SPDX-License-Identifier: BSD-3-Clause
55b827a8fSDan Handley  */
65b827a8fSDan Handley 
7*c3cf06f1SAntonio Nino Diaz #ifndef BL1_PRIVATE_H
8*c3cf06f1SAntonio Nino Diaz #define BL1_PRIVATE_H
95b827a8fSDan Handley 
1093c78ed2SAntonio Nino Diaz #include <stdint.h>
119f85f9e3SJoel Hutton #include <utils_def.h>
1248bfb88eSYatharth Kochar 
138f55dfb4SSandrine Bailleux /*******************************************************************************
148f55dfb4SSandrine Bailleux  * Declarations of linker defined symbols which will tell us where BL1 lives
15c02fcc4aSSandrine Bailleux  * in Trusted ROM and RAM
168f55dfb4SSandrine Bailleux  ******************************************************************************/
179f85f9e3SJoel Hutton IMPORT_SYM(uintptr_t, __BL1_ROM_END__,   BL1_ROM_END);
18c02fcc4aSSandrine Bailleux 
199f85f9e3SJoel Hutton IMPORT_SYM(uintptr_t, __BL1_RAM_START__, BL1_RAM_BASE);
209f85f9e3SJoel Hutton IMPORT_SYM(uintptr_t, __BL1_RAM_END__,   BL1_RAM_LIMIT);
218f55dfb4SSandrine Bailleux 
225b827a8fSDan Handley /******************************************
235b827a8fSDan Handley  * Function prototypes
245b827a8fSDan Handley  *****************************************/
25c6bc0710SDan Handley void bl1_arch_setup(void);
26c6bc0710SDan Handley void bl1_arch_next_el_setup(void);
275b827a8fSDan Handley 
287baff11fSYatharth Kochar void bl1_prepare_next_image(unsigned int image_id);
2948bfb88eSYatharth Kochar 
3048bfb88eSYatharth Kochar register_t bl1_fwu_smc_handler(unsigned int smc_fid,
3148bfb88eSYatharth Kochar 		register_t x1,
3248bfb88eSYatharth Kochar 		register_t x2,
3348bfb88eSYatharth Kochar 		register_t x3,
3448bfb88eSYatharth Kochar 		register_t x4,
3548bfb88eSYatharth Kochar 		void *cookie,
3648bfb88eSYatharth Kochar 		void *handle,
3748bfb88eSYatharth Kochar 		unsigned int flags);
38*c3cf06f1SAntonio Nino Diaz #endif /* BL1_PRIVATE_H */
39