1 /*
2  * Copyright (c) 2017-2023, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <common/desc_image_load.h>
8 
9 #include "qemu_private.h"
10 
11 /*******************************************************************************
12  * This function is a wrapper of a common function which flushes the data
13  * structures so that they are visible in memory for the next BL image.
14  ******************************************************************************/
plat_flush_next_bl_params(void)15 void plat_flush_next_bl_params(void)
16 {
17 	flush_bl_params_desc();
18 	qemu_bl2_sync_transfer_list();
19 }
20 
21 /*******************************************************************************
22  * This function is a wrapper of a common function which returns the list of
23  * loadable images.
24  ******************************************************************************/
plat_get_bl_image_load_info(void)25 bl_load_info_t *plat_get_bl_image_load_info(void)
26 {
27 	return get_bl_load_info_from_mem_params_desc();
28 }
29 
30 /*******************************************************************************
31  * This function is a wrapper of a common function which returns the data
32  * structures of the next BL image.
33  ******************************************************************************/
plat_get_next_bl_params(void)34 bl_params_t *plat_get_next_bl_params(void)
35 {
36 	return get_next_bl_params_from_mem_params_desc();
37 }
38