David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2019 The Hafnium Authors. |
| 3 | * |
Andrew Walbran | e959ec1 | 2020-06-17 15:01:09 +0100 | [diff] [blame] | 4 | * Use of this source code is governed by a BSD-style |
| 5 | * license that can be found in the LICENSE file or at |
| 6 | * https://opensource.org/licenses/BSD-3-Clause. |
David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #pragma once |
| 10 | |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 11 | #include "hf/addr.h" |
Raghu Krishnamurthy | b49549e | 2021-07-02 08:27:38 -0700 | [diff] [blame] | 12 | #include "hf/fdt.h" |
Andrew Walbran | b5ab43c | 2020-04-30 11:32:54 +0100 | [diff] [blame] | 13 | #include "hf/ffa.h" |
David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 14 | #include "hf/memiter.h" |
David Brazdil | 136f294 | 2019-09-23 14:11:03 +0100 | [diff] [blame] | 15 | #include "hf/string.h" |
Andrew Scull | ae9962e | 2019-10-03 16:51:16 +0100 | [diff] [blame] | 16 | #include "hf/vm.h" |
David Brazdil | 0dbb41f | 2019-09-09 18:03:35 +0100 | [diff] [blame] | 17 | |
David Brazdil | 080ee31 | 2020-02-25 15:30:30 -0800 | [diff] [blame] | 18 | #define MANIFEST_INVALID_ADDRESS UINT64_MAX |
Madhukar Pappireddy | 54680c7 | 2020-10-23 15:02:38 -0500 | [diff] [blame] | 19 | #define MANIFEST_INVALID_ID UINT32_MAX |
David Brazdil | 080ee31 | 2020-02-25 15:30:30 -0800 | [diff] [blame] | 20 | |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 21 | #define SP_RTX_BUF_NAME_SIZE 10 |
| 22 | |
Olivier Deprez | 035fa15 | 2022-03-14 11:19:10 +0100 | [diff] [blame] | 23 | /** FF-A manifest memory and device regions attributes. */ |
| 24 | #define MANIFEST_REGION_ATTR_READ (UINT32_C(1) << 0) |
| 25 | #define MANIFEST_REGION_ATTR_WRITE (UINT32_C(1) << 1) |
| 26 | #define MANIFEST_REGION_ATTR_EXEC (UINT32_C(1) << 2) |
| 27 | #define MANIFEST_REGION_ATTR_SECURITY (UINT32_C(1) << 3) |
| 28 | |
| 29 | #define MANIFEST_REGION_ALL_ATTR_MASK \ |
| 30 | (MANIFEST_REGION_ATTR_READ | MANIFEST_REGION_ATTR_WRITE | \ |
| 31 | MANIFEST_REGION_ATTR_EXEC | MANIFEST_REGION_ATTR_SECURITY) |
Manish Pandey | 6542f5c | 2020-04-27 14:37:46 +0100 | [diff] [blame] | 32 | |
Olivier Deprez | a15f235 | 2022-09-26 09:17:24 +0200 | [diff] [blame] | 33 | #define MANIFEST_POWER_MANAGEMENT_CPU_OFF_SUPPORTED (UINT32_C(1) << 0) |
| 34 | #define MANIFEST_POWER_MANAGEMENT_CPU_ON_SUPPORTED (UINT32_C(1) << 3) |
| 35 | #define MANIFEST_POWER_MANAGEMENT_NONE_MASK (UINT32_C(0)) |
| 36 | #define MANIFEST_POWER_MANAGEMENT_ALL_MASK \ |
| 37 | (MANIFEST_POWER_MANAGEMENT_CPU_OFF_SUPPORTED | \ |
| 38 | MANIFEST_POWER_MANAGEMENT_CPU_ON_SUPPORTED) |
| 39 | |
J-Alves | beeb6dc | 2021-12-08 18:21:32 +0000 | [diff] [blame] | 40 | /* Highest possible value for the boot-order field. */ |
| 41 | #define DEFAULT_BOOT_ORDER 0xFFFF |
J-Alves | 3531578 | 2022-01-25 17:58:32 +0000 | [diff] [blame] | 42 | #define DEFAULT_BOOT_GP_REGISTER UINT32_C(-1) |
J-Alves | b37fd08 | 2020-10-22 12:29:21 +0100 | [diff] [blame] | 43 | |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 44 | enum run_time_el { |
| 45 | EL1 = 0, |
| 46 | S_EL0, |
| 47 | S_EL1, |
| 48 | SUPERVISOR_MODE, |
| 49 | SECURE_USER_MODE, |
| 50 | SECURE_SUPERVISOR_MODE |
| 51 | }; |
| 52 | |
| 53 | enum execution_state { AARCH64 = 0, AARCH32 }; |
| 54 | |
| 55 | enum xlat_granule { PAGE_4KB = 0, PAGE_16KB, PAGE_64KB }; |
| 56 | |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 57 | /** |
Olivier Deprez | c13a869 | 2022-04-08 17:47:14 +0200 | [diff] [blame] | 58 | * Partition Memory region as described in FFA v1.0 spec, Table 10 |
Manish Pandey | 6542f5c | 2020-04-27 14:37:46 +0100 | [diff] [blame] | 59 | */ |
| 60 | struct memory_region { |
| 61 | /** |
| 62 | * Specify PA, VA for S-EL0 partitions or IPA |
| 63 | * for S-EL1 partitions - optional. |
| 64 | */ |
| 65 | uintptr_t base_address; |
| 66 | /** Page count - mandatory */ |
| 67 | uint32_t page_count; |
| 68 | /** Memory attributes - mandatory */ |
| 69 | uint32_t attributes; |
| 70 | /** Name of memory region - optional */ |
| 71 | struct string name; |
| 72 | }; |
| 73 | |
Raghu Krishnamurthy | ad38a9c | 2022-07-20 07:30:36 -0700 | [diff] [blame] | 74 | struct interrupt_info { |
Manish Pandey | e68e793 | 2020-04-23 15:29:28 +0100 | [diff] [blame] | 75 | uint32_t id; |
| 76 | uint32_t attributes; |
Raghu Krishnamurthy | 98da1ca | 2022-10-04 08:59:01 -0700 | [diff] [blame] | 77 | bool mpidr_valid; |
| 78 | uint64_t mpidr; |
Manish Pandey | e68e793 | 2020-04-23 15:29:28 +0100 | [diff] [blame] | 79 | }; |
| 80 | |
| 81 | /** |
Olivier Deprez | c13a869 | 2022-04-08 17:47:14 +0200 | [diff] [blame] | 82 | * Partition Device region as described in FFA v1.0 spec, Table 11 |
Manish Pandey | e68e793 | 2020-04-23 15:29:28 +0100 | [diff] [blame] | 83 | */ |
| 84 | struct device_region { |
| 85 | /** Device base PA - mandatory */ |
| 86 | uintptr_t base_address; |
| 87 | /** Page count - mandatory */ |
| 88 | uint32_t page_count; |
| 89 | /** Memory attributes - mandatory */ |
| 90 | uint32_t attributes; |
| 91 | /** List of physical interrupt ID's and their attributes - optional */ |
Raghu Krishnamurthy | ad38a9c | 2022-07-20 07:30:36 -0700 | [diff] [blame] | 92 | struct interrupt_info interrupts[PARTITION_MAX_INTERRUPTS_PER_DEVICE]; |
Madhukar Pappireddy | 5fc8be1 | 2021-08-03 11:42:53 -0500 | [diff] [blame] | 93 | /** Count of physical interrupts - optional */ |
| 94 | uint8_t interrupt_count; |
Manish Pandey | e68e793 | 2020-04-23 15:29:28 +0100 | [diff] [blame] | 95 | /** SMMU ID - optional */ |
| 96 | uint32_t smmu_id; |
Madhukar Pappireddy | 54680c7 | 2020-10-23 15:02:38 -0500 | [diff] [blame] | 97 | /** Count of Stream IDs assigned to device - optional */ |
| 98 | uint8_t stream_count; |
Manish Pandey | e68e793 | 2020-04-23 15:29:28 +0100 | [diff] [blame] | 99 | /** List of Stream IDs assigned to device - optional */ |
Raghu Krishnamurthy | 641dcd8 | 2022-07-19 23:21:20 -0700 | [diff] [blame] | 100 | uint32_t stream_ids[PARTITION_MAX_STREAMS_PER_DEVICE]; |
Manish Pandey | e68e793 | 2020-04-23 15:29:28 +0100 | [diff] [blame] | 101 | /** Exclusive access to an endpoint - optional */ |
| 102 | bool exclusive_access; |
| 103 | /** Name of Device region - optional */ |
| 104 | struct string name; |
| 105 | }; |
| 106 | |
Manish Pandey | 6542f5c | 2020-04-27 14:37:46 +0100 | [diff] [blame] | 107 | /** |
Manish Pandey | fa1f291 | 2020-05-05 12:57:01 +0100 | [diff] [blame] | 108 | * RX/TX buffer, reference to memory-region entries that describe RX/TX |
| 109 | * buffers in partition manifest. |
| 110 | */ |
| 111 | struct rx_tx { |
| 112 | bool available; |
| 113 | uint32_t rx_phandle; |
| 114 | uint32_t tx_phandle; |
| 115 | struct memory_region *rx_buffer; |
| 116 | struct memory_region *tx_buffer; |
| 117 | }; |
| 118 | |
| 119 | /** |
Olivier Deprez | c13a869 | 2022-04-08 17:47:14 +0200 | [diff] [blame] | 120 | * Partition manifest as described in FF-A v1.0 spec section 3.1 |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 121 | */ |
Raghu Krishnamurthy | 8c250a9 | 2021-07-02 12:16:42 -0700 | [diff] [blame] | 122 | struct partition_manifest { |
Olivier Deprez | c13a869 | 2022-04-08 17:47:14 +0200 | [diff] [blame] | 123 | /** FF-A expected version - mandatory */ |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 124 | uint32_t ffa_version; |
| 125 | /** UUID - mandatory */ |
Fuad Tabba | e4efcc3 | 2020-07-16 15:37:27 +0100 | [diff] [blame] | 126 | struct ffa_uuid uuid; |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 127 | /** Partition id - optional */ |
| 128 | ffa_vm_id_t id; |
| 129 | /** Aux ids for mem transactions - optional */ |
| 130 | ffa_vm_id_t aux_id; |
| 131 | |
| 132 | /* NOTE: optional name field maps to VM debug_name field */ |
| 133 | |
| 134 | /** mandatory */ |
| 135 | ffa_vcpu_count_t execution_ctx_count; |
| 136 | /** EL1 or secure EL1, secure EL0 - mandatory */ |
| 137 | enum run_time_el run_time_el; |
| 138 | /** AArch32 / AArch64 - mandatory */ |
| 139 | enum execution_state execution_state; |
| 140 | /** optional */ |
| 141 | uintpaddr_t load_addr; |
| 142 | /** optional */ |
| 143 | size_t ep_offset; |
J-Alves | 4369bd9 | 2020-08-07 16:35:36 +0100 | [diff] [blame] | 144 | /** 4/16/64KB - optional */ |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 145 | enum xlat_granule xlat_granule; |
J-Alves | 3531578 | 2022-01-25 17:58:32 +0000 | [diff] [blame] | 146 | /** Register id from w0/x0-w3/x3 - optional. */ |
| 147 | uint32_t gp_register_num; |
| 148 | /** |
| 149 | * Flags the presence of the optional IMPDEF node to define Partition's |
| 150 | * Boot Info. |
| 151 | */ |
| 152 | bool boot_info; |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 153 | /** optional */ |
| 154 | uint16_t boot_order; |
| 155 | |
| 156 | /** Optional RX/TX buffers */ |
Manish Pandey | fa1f291 | 2020-05-05 12:57:01 +0100 | [diff] [blame] | 157 | struct rx_tx rxtx; |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 158 | |
| 159 | /** mandatory - direct/indirect msg or both */ |
Maksims Svecovs | b596eab | 2021-04-27 00:52:27 +0100 | [diff] [blame] | 160 | uint8_t messaging_method; |
Madhukar Pappireddy | 8415405 | 2022-06-21 18:30:25 -0500 | [diff] [blame] | 161 | /** mandatory - action in response to non secure interrupt */ |
| 162 | uint8_t ns_interrupts_action; |
Madhukar Pappireddy | 046dad0 | 2022-06-21 18:43:33 -0500 | [diff] [blame] | 163 | /** optional - managed exit signaled through vIRQ */ |
| 164 | bool me_signal_virq; |
J-Alves | a4730db | 2021-11-02 10:31:01 +0000 | [diff] [blame] | 165 | /** optional - receipt of notifications. */ |
| 166 | bool notification_support; |
Olivier Deprez | a15f235 | 2022-09-26 09:17:24 +0200 | [diff] [blame] | 167 | /** |
| 168 | * optional - power management messages bitfield. |
| 169 | * |
| 170 | * See [1] power-management-messages manifest field. |
| 171 | * |
| 172 | * The Hafnium supported combinations for a MP SP are: |
| 173 | * Bit 0 - relay PSCI cpu off message to the SP. |
| 174 | * Bit 3 - relay PSCI cpu on to the SP. |
| 175 | * |
| 176 | * [1] |
| 177 | * https://trustedfirmware-a.readthedocs.io/en/latest/components/ffa-manifest-binding.html#partition-properties |
| 178 | */ |
| 179 | uint32_t power_management; |
Maksims Svecovs | 9ddf86a | 2021-05-06 17:17:21 +0100 | [diff] [blame] | 180 | /** optional */ |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 181 | bool has_primary_scheduler; |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 182 | /** optional - tuples SEPID/SMMUID/streamId */ |
| 183 | uint32_t stream_ep_ids[1]; |
Manish Pandey | 6542f5c | 2020-04-27 14:37:46 +0100 | [diff] [blame] | 184 | |
| 185 | /** Memory regions */ |
Raghu Krishnamurthy | 641dcd8 | 2022-07-19 23:21:20 -0700 | [diff] [blame] | 186 | uint16_t mem_region_count; |
| 187 | struct memory_region mem_regions[PARTITION_MAX_MEMORY_REGIONS]; |
Manish Pandey | e68e793 | 2020-04-23 15:29:28 +0100 | [diff] [blame] | 188 | /** Device regions */ |
Raghu Krishnamurthy | 641dcd8 | 2022-07-19 23:21:20 -0700 | [diff] [blame] | 189 | uint16_t dev_region_count; |
| 190 | struct device_region dev_regions[PARTITION_MAX_DEVICE_REGIONS]; |
Madhukar Pappireddy | 5c04a38 | 2022-12-28 11:29:26 -0600 | [diff] [blame] | 191 | /** optional - action in response to Other-Secure interrupt */ |
| 192 | uint8_t other_s_interrupts_action; |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 193 | }; |
| 194 | |
| 195 | /** |
David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 196 | * Holds information about one of the VMs described in the manifest. |
| 197 | */ |
| 198 | struct manifest_vm { |
| 199 | /* Properties defined for both primary and secondary VMs. */ |
David Brazdil | 136f294 | 2019-09-23 14:11:03 +0100 | [diff] [blame] | 200 | struct string debug_name; |
| 201 | struct string kernel_filename; |
Andrew Scull | ae9962e | 2019-10-03 16:51:16 +0100 | [diff] [blame] | 202 | struct smc_whitelist smc_whitelist; |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 203 | bool is_ffa_partition; |
Raghu Krishnamurthy | b49549e | 2021-07-02 08:27:38 -0700 | [diff] [blame] | 204 | bool is_hyp_loaded; |
Raghu Krishnamurthy | 8c250a9 | 2021-07-02 12:16:42 -0700 | [diff] [blame] | 205 | struct partition_manifest partition; |
David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 206 | |
David Brazdil | e6f8322 | 2019-09-23 14:47:37 +0100 | [diff] [blame] | 207 | union { |
| 208 | /* Properties specific to the primary VM. */ |
| 209 | struct { |
David Brazdil | 080ee31 | 2020-02-25 15:30:30 -0800 | [diff] [blame] | 210 | uint64_t boot_address; |
David Brazdil | e6f8322 | 2019-09-23 14:47:37 +0100 | [diff] [blame] | 211 | struct string ramdisk_filename; |
| 212 | } primary; |
| 213 | /* Properties specific to secondary VMs. */ |
| 214 | struct { |
| 215 | uint64_t mem_size; |
Andrew Walbran | b5ab43c | 2020-04-30 11:32:54 +0100 | [diff] [blame] | 216 | ffa_vcpu_count_t vcpu_count; |
Fuad Tabba | 50469e0 | 2020-06-30 15:14:28 +0100 | [diff] [blame] | 217 | struct string fdt_filename; |
David Brazdil | e6f8322 | 2019-09-23 14:47:37 +0100 | [diff] [blame] | 218 | } secondary; |
| 219 | }; |
David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 220 | }; |
| 221 | |
| 222 | /** |
| 223 | * Hafnium manifest parsed from FDT. |
| 224 | */ |
| 225 | struct manifest { |
Andrew Walbran | b5ab43c | 2020-04-30 11:32:54 +0100 | [diff] [blame] | 226 | bool ffa_tee_enabled; |
| 227 | ffa_vm_count_t vm_count; |
David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 228 | struct manifest_vm vm[MAX_VMS]; |
| 229 | }; |
| 230 | |
| 231 | enum manifest_return_code { |
| 232 | MANIFEST_SUCCESS = 0, |
David Brazdil | a2358d4 | 2020-01-27 18:51:38 +0000 | [diff] [blame] | 233 | MANIFEST_ERROR_FILE_SIZE, |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 234 | MANIFEST_ERROR_MALFORMED_DTB, |
David Brazdil | a2358d4 | 2020-01-27 18:51:38 +0000 | [diff] [blame] | 235 | MANIFEST_ERROR_NO_ROOT_NODE, |
David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 236 | MANIFEST_ERROR_NO_HYPERVISOR_FDT_NODE, |
David Brazdil | 74e9c3b | 2019-08-28 11:09:08 +0100 | [diff] [blame] | 237 | MANIFEST_ERROR_NOT_COMPATIBLE, |
David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 238 | MANIFEST_ERROR_RESERVED_VM_ID, |
| 239 | MANIFEST_ERROR_NO_PRIMARY_VM, |
| 240 | MANIFEST_ERROR_TOO_MANY_VMS, |
| 241 | MANIFEST_ERROR_PROPERTY_NOT_FOUND, |
| 242 | MANIFEST_ERROR_MALFORMED_STRING, |
David Brazdil | 0dbb41f | 2019-09-09 18:03:35 +0100 | [diff] [blame] | 243 | MANIFEST_ERROR_STRING_TOO_LONG, |
David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 244 | MANIFEST_ERROR_MALFORMED_INTEGER, |
| 245 | MANIFEST_ERROR_INTEGER_OVERFLOW, |
Andrew Scull | ae9962e | 2019-10-03 16:51:16 +0100 | [diff] [blame] | 246 | MANIFEST_ERROR_MALFORMED_INTEGER_LIST, |
Andrew Scull | b2c3a24 | 2019-11-04 13:52:36 +0000 | [diff] [blame] | 247 | MANIFEST_ERROR_MALFORMED_BOOLEAN, |
J-Alves | 3531578 | 2022-01-25 17:58:32 +0000 | [diff] [blame] | 248 | MANIFEST_ERROR_ARGUMENTS_LIST_EMPTY, |
Manish Pandey | 6542f5c | 2020-04-27 14:37:46 +0100 | [diff] [blame] | 249 | MANIFEST_ERROR_MEMORY_REGION_NODE_EMPTY, |
Manish Pandey | e68e793 | 2020-04-23 15:29:28 +0100 | [diff] [blame] | 250 | MANIFEST_ERROR_DEVICE_REGION_NODE_EMPTY, |
Manish Pandey | f06c907 | 2020-09-29 15:41:58 +0100 | [diff] [blame] | 251 | MANIFEST_ERROR_RXTX_SIZE_MISMATCH, |
Varun Wadekar | 4afbfd7 | 2022-10-13 14:30:18 +0100 | [diff] [blame^] | 252 | MANIFEST_ERROR_MEM_REGION_EMPTY, |
Daniel Boulby | a7e9e18 | 2022-06-27 14:21:01 +0100 | [diff] [blame] | 253 | MANIFEST_ERROR_MEM_REGION_OVERLAP, |
Raghu Krishnamurthy | 384693c | 2021-10-11 13:56:24 -0700 | [diff] [blame] | 254 | MANIFEST_ERROR_INVALID_MEM_PERM, |
Daniel Boulby | 801f8ef | 2022-06-27 14:21:01 +0100 | [diff] [blame] | 255 | MANIFEST_ERROR_INTERRUPT_ID_REPEATED, |
Madhukar Pappireddy | 5c04a38 | 2022-12-28 11:29:26 -0600 | [diff] [blame] | 256 | MANIFEST_ERROR_ILLEGAL_NS_INT_ACTION, |
Raghu Krishnamurthy | 98da1ca | 2022-10-04 08:59:01 -0700 | [diff] [blame] | 257 | MANIFEST_ERROR_INTERRUPT_ID_NOT_IN_LIST, |
Madhukar Pappireddy | 5c04a38 | 2022-12-28 11:29:26 -0600 | [diff] [blame] | 258 | MANIFEST_ERROR_ILLEGAL_OTHER_S_INT_ACTION, |
David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 259 | }; |
| 260 | |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 261 | enum manifest_return_code manifest_init(struct mm_stage1_locked stage1_locked, |
Olivier Deprez | 9364465 | 2022-09-09 11:01:12 +0200 | [diff] [blame] | 262 | struct manifest **manifest, |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 263 | struct memiter *manifest_fdt, |
| 264 | struct mpool *ppool); |
Daniel Boulby | 801f8ef | 2022-06-27 14:21:01 +0100 | [diff] [blame] | 265 | void manifest_deinit(struct mpool *ppool); |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 266 | |
Raghu Krishnamurthy | b49549e | 2021-07-02 08:27:38 -0700 | [diff] [blame] | 267 | enum manifest_return_code parse_ffa_manifest(struct fdt *fdt, |
J-Alves | 3531578 | 2022-01-25 17:58:32 +0000 | [diff] [blame] | 268 | struct manifest_vm *vm, |
| 269 | struct fdt_node *boot_info); |
| 270 | |
Olivier Deprez | 62d99e3 | 2020-01-09 15:58:07 +0100 | [diff] [blame] | 271 | void manifest_dump(struct manifest_vm *vm); |
David Brazdil | 7a462ec | 2019-08-15 12:27:47 +0100 | [diff] [blame] | 272 | |
| 273 | const char *manifest_strerror(enum manifest_return_code ret_code); |