Achin Gupta | da6ef0e | 2019-10-11 14:54:48 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2020, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Olivier Deprez | 2bae35f | 2020-04-16 13:39:06 +0200 | [diff] [blame] | 7 | #ifndef SPM_CORE_MANIFEST_H |
| 8 | #define SPM_CORE_MANIFEST_H |
Achin Gupta | da6ef0e | 2019-10-11 14:54:48 +0100 | [diff] [blame] | 9 | |
| 10 | #include <stdint.h> |
| 11 | |
| 12 | /******************************************************************************* |
| 13 | * Attribute Section |
| 14 | ******************************************************************************/ |
| 15 | |
| 16 | typedef struct spm_core_manifest_sect_attribute { |
| 17 | /* |
J-Alves | 2672cde | 2020-05-07 18:42:25 +0100 | [diff] [blame] | 18 | * FFA version (mandatory). |
Achin Gupta | da6ef0e | 2019-10-11 14:54:48 +0100 | [diff] [blame] | 19 | */ |
| 20 | uint32_t major_version; |
| 21 | uint32_t minor_version; |
| 22 | |
| 23 | /* |
Achin Gupta | da6ef0e | 2019-10-11 14:54:48 +0100 | [diff] [blame] | 24 | * Run-Time Execution state (optional): |
| 25 | * - 0: AArch64 (default) |
| 26 | * - 1: AArch32 |
| 27 | */ |
| 28 | uint32_t exec_state; |
| 29 | |
| 30 | /* |
Olivier Deprez | 2bae35f | 2020-04-16 13:39:06 +0200 | [diff] [blame] | 31 | * Address of binary image containing SPM Core (optional). |
Achin Gupta | da6ef0e | 2019-10-11 14:54:48 +0100 | [diff] [blame] | 32 | */ |
| 33 | uint64_t load_address; |
| 34 | |
| 35 | /* |
| 36 | * Offset from the base of the partition's binary image to the entry |
Olivier Deprez | 2bae35f | 2020-04-16 13:39:06 +0200 | [diff] [blame] | 37 | * point of the partition (optional). |
Achin Gupta | da6ef0e | 2019-10-11 14:54:48 +0100 | [diff] [blame] | 38 | */ |
| 39 | uint64_t entrypoint; |
| 40 | |
| 41 | /* |
Olivier Deprez | 2bae35f | 2020-04-16 13:39:06 +0200 | [diff] [blame] | 42 | * Size of binary image containing SPM Core in bytes (mandatory). |
Achin Gupta | da6ef0e | 2019-10-11 14:54:48 +0100 | [diff] [blame] | 43 | */ |
| 44 | uint32_t binary_size; |
| 45 | |
Max Shvetsov | e79062e | 2020-03-12 15:16:40 +0000 | [diff] [blame] | 46 | /* |
| 47 | * ID of the SPMD (mandatory) |
| 48 | */ |
| 49 | uint16_t spmc_id; |
| 50 | |
Olivier Deprez | 2bae35f | 2020-04-16 13:39:06 +0200 | [diff] [blame] | 51 | } spmc_manifest_attribute_t; |
Achin Gupta | da6ef0e | 2019-10-11 14:54:48 +0100 | [diff] [blame] | 52 | |
Olivier Deprez | 2bae35f | 2020-04-16 13:39:06 +0200 | [diff] [blame] | 53 | #endif /* SPM_CORE_MANIFEST_H */ |