1*4ecca339SDan Handley /* 2*4ecca339SDan Handley * Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved. 3*4ecca339SDan Handley * 4*4ecca339SDan Handley * Redistribution and use in source and binary forms, with or without 5*4ecca339SDan Handley * modification, are permitted provided that the following conditions are met: 6*4ecca339SDan Handley * 7*4ecca339SDan Handley * Redistributions of source code must retain the above copyright notice, this 8*4ecca339SDan Handley * list of conditions and the following disclaimer. 9*4ecca339SDan Handley * 10*4ecca339SDan Handley * Redistributions in binary form must reproduce the above copyright notice, 11*4ecca339SDan Handley * this list of conditions and the following disclaimer in the documentation 12*4ecca339SDan Handley * and/or other materials provided with the distribution. 13*4ecca339SDan Handley * 14*4ecca339SDan Handley * Neither the name of ARM nor the names of its contributors may be used 15*4ecca339SDan Handley * to endorse or promote products derived from this software without specific 16*4ecca339SDan Handley * prior written permission. 17*4ecca339SDan Handley * 18*4ecca339SDan Handley * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19*4ecca339SDan Handley * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20*4ecca339SDan Handley * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21*4ecca339SDan Handley * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 22*4ecca339SDan Handley * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23*4ecca339SDan Handley * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24*4ecca339SDan Handley * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25*4ecca339SDan Handley * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26*4ecca339SDan Handley * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27*4ecca339SDan Handley * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28*4ecca339SDan Handley * POSSIBILITY OF SUCH DAMAGE. 29*4ecca339SDan Handley */ 30*4ecca339SDan Handley 31*4ecca339SDan Handley #ifndef __BL31_H__ 32*4ecca339SDan Handley #define __BL31_H__ 33*4ecca339SDan Handley 34*4ecca339SDan Handley #include <bl_common.h> 35*4ecca339SDan Handley 36*4ecca339SDan Handley /******************************************************************************* 37*4ecca339SDan Handley * Data declarations 38*4ecca339SDan Handley ******************************************************************************/ 39*4ecca339SDan Handley extern unsigned long bl31_entrypoint; 40*4ecca339SDan Handley 41*4ecca339SDan Handley /******************************************************************************* 42*4ecca339SDan Handley * Function prototypes 43*4ecca339SDan Handley ******************************************************************************/ 44*4ecca339SDan Handley extern void bl31_next_el_arch_setup(uint32_t security_state); 45*4ecca339SDan Handley extern void bl31_set_next_image_type(uint32_t type); 46*4ecca339SDan Handley extern uint32_t bl31_get_next_image_type(void); 47*4ecca339SDan Handley extern void bl31_prepare_next_image_entry(); 48*4ecca339SDan Handley extern el_change_info *bl31_get_next_image_info(uint32_t type); 49*4ecca339SDan Handley extern void bl31_platform_setup(void); 50*4ecca339SDan Handley extern meminfo *bl31_plat_get_bl32_mem_layout(void); 51*4ecca339SDan Handley extern meminfo *bl31_plat_sec_mem_layout(void); 52*4ecca339SDan Handley extern void bl31_register_bl32_init(int32_t (*)(meminfo *)); 53*4ecca339SDan Handley #endif /* __BL31_H__ */ 54