1*91f16700Schasinglulu /* 2*91f16700Schasinglulu * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved. 3*91f16700Schasinglulu * 4*91f16700Schasinglulu * SPDX-License-Identifier: BSD-3-Clause 5*91f16700Schasinglulu */ 6*91f16700Schasinglulu 7*91f16700Schasinglulu #ifndef ARM_TRUSTED_FIRMWARE_EXPORT_COMMON_PARAM_HEADER_EXP_H 8*91f16700Schasinglulu #define ARM_TRUSTED_FIRMWARE_EXPORT_COMMON_PARAM_HEADER_EXP_H 9*91f16700Schasinglulu 10*91f16700Schasinglulu /* EXPORT HEADER -- See include/export/README for details! -- EXPORT HEADER */ 11*91f16700Schasinglulu 12*91f16700Schasinglulu #include "../lib/utils_def_exp.h" 13*91f16700Schasinglulu 14*91f16700Schasinglulu /* Param header types */ 15*91f16700Schasinglulu #define PARAM_EP U(0x01) 16*91f16700Schasinglulu #define PARAM_IMAGE_BINARY U(0x02) 17*91f16700Schasinglulu #define PARAM_BL31 U(0x03) 18*91f16700Schasinglulu #define PARAM_BL_LOAD_INFO U(0x04) 19*91f16700Schasinglulu #define PARAM_BL_PARAMS U(0x05) 20*91f16700Schasinglulu #define PARAM_PSCI_LIB_ARGS U(0x06) 21*91f16700Schasinglulu #define PARAM_SP_IMAGE_BOOT_INFO U(0x07) 22*91f16700Schasinglulu 23*91f16700Schasinglulu /* Param header version */ 24*91f16700Schasinglulu #define PARAM_VERSION_1 U(0x01) 25*91f16700Schasinglulu #define PARAM_VERSION_2 U(0x02) 26*91f16700Schasinglulu 27*91f16700Schasinglulu #ifndef __ASSEMBLER__ 28*91f16700Schasinglulu 29*91f16700Schasinglulu /*************************************************************************** 30*91f16700Schasinglulu * This structure provides version information and the size of the 31*91f16700Schasinglulu * structure, attributes for the structure it represents 32*91f16700Schasinglulu ***************************************************************************/ 33*91f16700Schasinglulu typedef struct param_header { 34*91f16700Schasinglulu uint8_t type; /* type of the structure */ 35*91f16700Schasinglulu uint8_t version; /* version of this structure */ 36*91f16700Schasinglulu uint16_t size; /* size of this structure in bytes */ 37*91f16700Schasinglulu uint32_t attr; /* attributes: unused bits SBZ */ 38*91f16700Schasinglulu } param_header_t; 39*91f16700Schasinglulu 40*91f16700Schasinglulu #endif /*__ASSEMBLER__*/ 41*91f16700Schasinglulu 42*91f16700Schasinglulu #endif /* ARM_TRUSTED_FIRMWARE_EXPORT_COMMON_PARAM_HEADER_EXP_H */ 43