15b827a8fSDan Handley /* 2*9f85f9e3SJoel 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 75b827a8fSDan Handley #ifndef __BL1_PRIVATE_H__ 85b827a8fSDan Handley #define __BL1_PRIVATE_H__ 95b827a8fSDan Handley 1048bfb88eSYatharth Kochar #include <types.h> 11*9f85f9e3SJoel 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 ******************************************************************************/ 17*9f85f9e3SJoel Hutton IMPORT_SYM(uintptr_t, __BL1_ROM_END__, BL1_ROM_END); 18c02fcc4aSSandrine Bailleux 19*9f85f9e3SJoel Hutton IMPORT_SYM(uintptr_t, __BL1_RAM_START__, BL1_RAM_BASE); 20*9f85f9e3SJoel 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); 385b827a8fSDan Handley #endif /* __BL1_PRIVATE_H__ */ 39