mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00

All identifiers, regardless of use, that start with two underscores are reserved. This means they can't be used in header guards. The style that this project is now to use the full name of the file in capital letters followed by 'H'. For example, for a file called "uart_example.h", the header guard is UART_EXAMPLE_H. The exceptions are files that are imported from other projects: - CryptoCell driver - dt-bindings folders - zlib headers Change-Id: I50561bf6c88b491ec440d0c8385c74650f3c106e Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
40 lines
1.3 KiB
C
40 lines
1.3 KiB
C
/*
|
|
* Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#ifndef DESC_IMAGE_LOAD_H
|
|
#define DESC_IMAGE_LOAD_H
|
|
|
|
#include <bl_common.h>
|
|
|
|
/* Following structure is used to store BL ep/image info. */
|
|
typedef struct bl_mem_params_node {
|
|
unsigned int image_id;
|
|
image_info_t image_info;
|
|
entry_point_info_t ep_info;
|
|
unsigned int next_handoff_image_id;
|
|
bl_load_info_node_t load_node_mem;
|
|
bl_params_node_t params_node_mem;
|
|
} bl_mem_params_node_t;
|
|
|
|
extern bl_mem_params_node_t *bl_mem_params_desc_ptr;
|
|
extern unsigned int bl_mem_params_desc_num;
|
|
|
|
/*
|
|
* Macro to register list of BL image descriptors,
|
|
* defined as an array of bl_mem_params_node_t.
|
|
*/
|
|
#define REGISTER_BL_IMAGE_DESCS(_img_desc) \
|
|
bl_mem_params_node_t *bl_mem_params_desc_ptr = &_img_desc[0]; \
|
|
unsigned int bl_mem_params_desc_num = ARRAY_SIZE(_img_desc);
|
|
|
|
/* BL image loading utility functions */
|
|
void flush_bl_params_desc(void);
|
|
int get_bl_params_node_index(unsigned int image_id);
|
|
bl_mem_params_node_t *get_bl_mem_params_node(unsigned int image_id);
|
|
bl_load_info_t *get_bl_load_info_from_mem_params_desc(void);
|
|
bl_params_t *get_next_bl_params_from_mem_params_desc(void);
|
|
void populate_next_bl_params_config(bl_params_t *bl2_to_next_bl_params);
|
|
|
|
#endif /* DESC_IMAGE_LOAD_H */
|