1 /* 2 * Copyright (c) 2020-2026, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef FFA_SVC_H 8 #define FFA_SVC_H 9 10 #include <stdbool.h> 11 12 #include <lib/smccc.h> 13 #include <lib/utils_def.h> 14 #include <tools_share/uuid.h> 15 16 /* FFA error codes. */ 17 #define FFA_ERROR_NOT_SUPPORTED -1 18 #define FFA_ERROR_INVALID_PARAMETER -2 19 #define FFA_ERROR_NO_MEMORY -3 20 #define FFA_ERROR_BUSY -4 21 #define FFA_ERROR_INTERRUPTED -5 22 #define FFA_ERROR_DENIED -6 23 #define FFA_ERROR_RETRY -7 24 #define FFA_ERROR_ABORTED -8 25 26 /* The macros below are used to identify FFA calls from the SMC function ID */ 27 #define FFA_FNUM_MIN_VALUE U(0x60) 28 #define FFA_FNUM_MAX_VALUE U(0x90) 29 #define is_ffa_fid(fid) __extension__ ({ \ 30 __typeof__(fid) _fid = (fid); \ 31 ((GET_SMC_NUM(_fid) >= FFA_FNUM_MIN_VALUE) && \ 32 (GET_SMC_NUM(_fid) <= FFA_FNUM_MAX_VALUE)); }) 33 34 /* FFA_VERSION helpers */ 35 #define FFA_VERSION_MAJOR_SHIFT 16 36 #define FFA_VERSION_MAJOR_MASK U(0x7FFF) 37 #define FFA_VERSION_MINOR_SHIFT 0 38 #define FFA_VERSION_MINOR_MASK U(0xFFFF) 39 #define FFA_VERSION_BIT31_MASK U(0x1u << 31) 40 #define FFA_VERSION_MASK U(0xFFFFFFFF) 41 42 #define FFA_VERSION_MAJOR U(1) 43 #define FFA_VERSION_MINOR U(3) 44 45 #define MAKE_FFA_VERSION(major, minor) \ 46 ((((major) & FFA_VERSION_MAJOR_MASK) << FFA_VERSION_MAJOR_SHIFT) | \ 47 (((minor) & FFA_VERSION_MINOR_MASK) << FFA_VERSION_MINOR_SHIFT)) 48 #define FFA_VERSION_COMPILED MAKE_FFA_VERSION(FFA_VERSION_MAJOR, \ 49 FFA_VERSION_MINOR) 50 51 /* FFA_MSG_SEND helpers */ 52 #define FFA_MSG_SEND_ATTRS_BLK_SHIFT U(0) 53 #define FFA_MSG_SEND_ATTRS_BLK_MASK U(0x1) 54 #define FFA_MSG_SEND_ATTRS_BLK U(0) 55 #define FFA_MSG_SEND_ATTRS_BLK_NOT U(1) 56 #define FFA_MSG_SEND_ATTRS(blk) \ 57 (((blk) & FFA_MSG_SEND_ATTRS_BLK_MASK) \ 58 << FFA_MSG_SEND_ATTRS_BLK_SHIFT) 59 60 /* Defines for FF-A framework messages exchanged using direct messages. */ 61 #define FFA_FWK_MSG_BIT BIT_32(31) 62 #define FFA_FWK_MSG_MASK U(0xFF) 63 #define FFA_FWK_MSG_PSCI U(0x0) 64 65 /* Defines for FF-A power management messages framework messages. */ 66 #define FFA_PM_MSG_WB_REQ U(0x1) /* Warm boot request. */ 67 #define FFA_PM_MSG_PM_RESP U(0x2) /* Response to PSCI or warmboot req. */ 68 69 /* FF-A warm boot types. */ 70 #define FFA_WB_TYPE_S2RAM 0x0 71 #define FFA_WB_TYPE_NOTS2RAM 0x1 72 73 /* Get FFA fastcall std FID from function number */ 74 #define FFA_FID(smc_cc, func_num) \ 75 ((SMC_TYPE_FAST << FUNCID_TYPE_SHIFT) | \ 76 ((smc_cc) << FUNCID_CC_SHIFT) | \ 77 (OEN_STD_START << FUNCID_OEN_SHIFT) | \ 78 ((func_num) << FUNCID_NUM_SHIFT)) 79 80 /* FFA function numbers */ 81 #define FFA_FNUM_ERROR U(0x60) 82 #define FFA_FNUM_SUCCESS U(0x61) 83 #define FFA_FNUM_INTERRUPT U(0x62) 84 #define FFA_FNUM_VERSION U(0x63) 85 #define FFA_FNUM_FEATURES U(0x64) 86 #define FFA_FNUM_RX_RELEASE U(0x65) 87 #define FFA_FNUM_RXTX_MAP U(0x66) 88 #define FFA_FNUM_RXTX_UNMAP U(0x67) 89 #define FFA_FNUM_PARTITION_INFO_GET U(0x68) 90 #define FFA_FNUM_ID_GET U(0x69) 91 #define FFA_FNUM_MSG_POLL U(0x6A) /* Legacy FF-A v1.0 */ 92 #define FFA_FNUM_MSG_WAIT U(0x6B) 93 #define FFA_FNUM_MSG_YIELD U(0x6C) 94 #define FFA_FNUM_MSG_RUN U(0x6D) 95 #define FFA_FNUM_MSG_SEND U(0x6E) /* Legacy FF-A v1.0 */ 96 #define FFA_FNUM_MSG_SEND_DIRECT_REQ U(0x6F) 97 #define FFA_FNUM_MSG_SEND_DIRECT_RESP U(0x70) 98 #define FFA_FNUM_MEM_DONATE U(0x71) 99 #define FFA_FNUM_MEM_LEND U(0x72) 100 #define FFA_FNUM_MEM_SHARE U(0x73) 101 #define FFA_FNUM_MEM_RETRIEVE_REQ U(0x74) 102 #define FFA_FNUM_MEM_RETRIEVE_RESP U(0x75) 103 #define FFA_FNUM_MEM_RELINQUISH U(0x76) 104 #define FFA_FNUM_MEM_RECLAIM U(0x77) 105 #define FFA_FNUM_MEM_FRAG_RX U(0x7A) 106 #define FFA_FNUM_MEM_FRAG_TX U(0x7B) 107 #define FFA_FNUM_NORMAL_WORLD_RESUME U(0x7C) 108 109 /* FF-A v1.1 */ 110 #define FFA_FNUM_NOTIFICATION_BITMAP_CREATE U(0x7D) 111 #define FFA_FNUM_NOTIFICATION_BITMAP_DESTROY U(0x7E) 112 #define FFA_FNUM_NOTIFICATION_BIND U(0x7F) 113 #define FFA_FNUM_NOTIFICATION_UNBIND U(0x80) 114 #define FFA_FNUM_NOTIFICATION_SET U(0x81) 115 #define FFA_FNUM_NOTIFICATION_GET U(0x82) 116 #define FFA_FNUM_NOTIFICATION_INFO_GET U(0x83) 117 #define FFA_FNUM_RX_ACQUIRE U(0x84) 118 #define FFA_FNUM_SPM_ID_GET U(0x85) 119 #define FFA_FNUM_MSG_SEND2 U(0x86) 120 #define FFA_FNUM_SECONDARY_EP_REGISTER U(0x87) 121 #define FFA_FNUM_MEM_PERM_GET U(0x88) 122 #define FFA_FNUM_MEM_PERM_SET U(0x89) 123 124 /* FF-A v1.2 */ 125 #define FFA_FNUM_PARTITION_INFO_GET_REGS U(0x8B) 126 #define FFA_FNUM_EL3_INTR_HANDLE U(0x8C) 127 #define FFA_FNUM_MSG_SEND_DIRECT_REQ2 U(0x8D) 128 #define FFA_FNUM_MSG_SEND_DIRECT_RESP2 U(0x8E) 129 #define FFA_FNUM_NS_RES_INFO_GET U(0x8F) 130 131 #define FFA_FNUM_CONSOLE_LOG U(0x8A) 132 133 /* FFA SMC32 FIDs */ 134 #define FFA_ERROR FFA_FID(SMC_32, FFA_FNUM_ERROR) 135 #define FFA_SUCCESS_SMC32 FFA_FID(SMC_32, FFA_FNUM_SUCCESS) 136 #define FFA_INTERRUPT FFA_FID(SMC_32, FFA_FNUM_INTERRUPT) 137 #define FFA_VERSION FFA_FID(SMC_32, FFA_FNUM_VERSION) 138 #define FFA_FEATURES FFA_FID(SMC_32, FFA_FNUM_FEATURES) 139 #define FFA_RX_RELEASE FFA_FID(SMC_32, FFA_FNUM_RX_RELEASE) 140 #define FFA_RX_ACQUIRE FFA_FID(SMC_32, FFA_FNUM_RX_ACQUIRE) 141 #define FFA_RXTX_MAP_SMC32 FFA_FID(SMC_32, FFA_FNUM_RXTX_MAP) 142 #define FFA_RXTX_UNMAP FFA_FID(SMC_32, FFA_FNUM_RXTX_UNMAP) 143 #define FFA_PARTITION_INFO_GET FFA_FID(SMC_32, FFA_FNUM_PARTITION_INFO_GET) 144 #define FFA_ID_GET FFA_FID(SMC_32, FFA_FNUM_ID_GET) 145 #define FFA_MSG_POLL FFA_FID(SMC_32, FFA_FNUM_MSG_POLL) 146 #define FFA_MSG_WAIT FFA_FID(SMC_32, FFA_FNUM_MSG_WAIT) 147 #define FFA_MSG_YIELD FFA_FID(SMC_32, FFA_FNUM_MSG_YIELD) 148 #define FFA_MSG_RUN FFA_FID(SMC_32, FFA_FNUM_MSG_RUN) 149 #define FFA_MSG_SEND FFA_FID(SMC_32, FFA_FNUM_MSG_SEND) 150 #define FFA_MSG_SEND2 FFA_FID(SMC_32, FFA_FNUM_MSG_SEND2) 151 #define FFA_MSG_SEND_DIRECT_REQ_SMC32 \ 152 FFA_FID(SMC_32, FFA_FNUM_MSG_SEND_DIRECT_REQ) 153 #define FFA_MSG_SEND_DIRECT_RESP_SMC32 \ 154 FFA_FID(SMC_32, FFA_FNUM_MSG_SEND_DIRECT_RESP) 155 #define FFA_MEM_DONATE_SMC32 FFA_FID(SMC_32, FFA_FNUM_MEM_DONATE) 156 #define FFA_MEM_LEND_SMC32 FFA_FID(SMC_32, FFA_FNUM_MEM_LEND) 157 #define FFA_MEM_SHARE_SMC32 FFA_FID(SMC_32, FFA_FNUM_MEM_SHARE) 158 #define FFA_MEM_RETRIEVE_REQ_SMC32 \ 159 FFA_FID(SMC_32, FFA_FNUM_MEM_RETRIEVE_REQ) 160 #define FFA_MEM_RETRIEVE_RESP FFA_FID(SMC_32, FFA_FNUM_MEM_RETRIEVE_RESP) 161 #define FFA_MEM_RELINQUISH FFA_FID(SMC_32, FFA_FNUM_MEM_RELINQUISH) 162 #define FFA_MEM_RECLAIM FFA_FID(SMC_32, FFA_FNUM_MEM_RECLAIM) 163 #define FFA_NOTIFICATION_BITMAP_CREATE \ 164 FFA_FID(SMC_32, FFA_FNUM_NOTIFICATION_BITMAP_CREATE) 165 #define FFA_NOTIFICATION_BITMAP_DESTROY \ 166 FFA_FID(SMC_32, FFA_FNUM_NOTIFICATION_BITMAP_DESTROY) 167 #define FFA_NOTIFICATION_BIND FFA_FID(SMC_32, FFA_FNUM_NOTIFICATION_BIND) 168 #define FFA_NOTIFICATION_UNBIND FFA_FID(SMC_32, FFA_FNUM_NOTIFICATION_UNBIND) 169 #define FFA_NOTIFICATION_SET FFA_FID(SMC_32, FFA_FNUM_NOTIFICATION_SET) 170 #define FFA_NOTIFICATION_GET FFA_FID(SMC_32, FFA_FNUM_NOTIFICATION_GET) 171 #define FFA_NOTIFICATION_INFO_GET \ 172 FFA_FID(SMC_32, FFA_FNUM_NOTIFICATION_INFO_GET) 173 #define FFA_MEM_FRAG_RX FFA_FID(SMC_32, FFA_FNUM_MEM_FRAG_RX) 174 #define FFA_MEM_FRAG_TX FFA_FID(SMC_32, FFA_FNUM_MEM_FRAG_TX) 175 #define FFA_SPM_ID_GET FFA_FID(SMC_32, FFA_FNUM_SPM_ID_GET) 176 #define FFA_NORMAL_WORLD_RESUME FFA_FID(SMC_32, FFA_FNUM_NORMAL_WORLD_RESUME) 177 #define FFA_EL3_INTR_HANDLE FFA_FID(SMC_32, FFA_FNUM_EL3_INTR_HANDLE) 178 #define FFA_MEM_PERM_GET_SMC32 FFA_FID(SMC_32, FFA_FNUM_MEM_PERM_GET) 179 #define FFA_MEM_PERM_SET_SMC32 FFA_FID(SMC_32, FFA_FNUM_MEM_PERM_SET) 180 #define FFA_CONSOLE_LOG_SMC32 FFA_FID(SMC_32, FFA_FNUM_CONSOLE_LOG) 181 182 /* FFA SMC64 FIDs */ 183 #define FFA_ERROR_SMC64 FFA_FID(SMC_64, FFA_FNUM_ERROR) 184 #define FFA_SUCCESS_SMC64 FFA_FID(SMC_64, FFA_FNUM_SUCCESS) 185 #define FFA_RXTX_MAP_SMC64 FFA_FID(SMC_64, FFA_FNUM_RXTX_MAP) 186 #define FFA_MSG_SEND_DIRECT_REQ_SMC64 \ 187 FFA_FID(SMC_64, FFA_FNUM_MSG_SEND_DIRECT_REQ) 188 #define FFA_MSG_SEND_DIRECT_RESP_SMC64 \ 189 FFA_FID(SMC_64, FFA_FNUM_MSG_SEND_DIRECT_RESP) 190 #define FFA_MEM_DONATE_SMC64 FFA_FID(SMC_64, FFA_FNUM_MEM_DONATE) 191 #define FFA_MEM_LEND_SMC64 FFA_FID(SMC_64, FFA_FNUM_MEM_LEND) 192 #define FFA_MEM_SHARE_SMC64 FFA_FID(SMC_64, FFA_FNUM_MEM_SHARE) 193 #define FFA_MEM_RETRIEVE_REQ_SMC64 \ 194 FFA_FID(SMC_64, FFA_FNUM_MEM_RETRIEVE_REQ) 195 #define FFA_SECONDARY_EP_REGISTER_SMC64 \ 196 FFA_FID(SMC_64, FFA_FNUM_SECONDARY_EP_REGISTER) 197 #define FFA_NOTIFICATION_INFO_GET_SMC64 \ 198 FFA_FID(SMC_64, FFA_FNUM_NOTIFICATION_INFO_GET) 199 #define FFA_PARTITION_INFO_GET_REGS_SMC64 \ 200 FFA_FID(SMC_64, FFA_FNUM_PARTITION_INFO_GET_REGS) 201 #define FFA_CONSOLE_LOG_SMC64 FFA_FID(SMC_64, FFA_FNUM_CONSOLE_LOG) 202 #define FFA_MSG_SEND_DIRECT_REQ2_SMC64 \ 203 FFA_FID(SMC_64, FFA_FNUM_MSG_SEND_DIRECT_REQ2) 204 #define FFA_MSG_SEND_DIRECT_RESP2_SMC64 \ 205 FFA_FID(SMC_64, FFA_FNUM_MSG_SEND_DIRECT_RESP2) 206 #define FFA_MEM_PERM_GET_SMC64 FFA_FID(SMC_64, FFA_FNUM_MEM_PERM_GET) 207 #define FFA_MEM_PERM_SET_SMC64 FFA_FID(SMC_64, FFA_FNUM_MEM_PERM_SET) 208 #define FFA_NS_RES_INFO_GET_SMC64 \ 209 FFA_FID(SMC_64, FFA_FNUM_NS_RES_INFO_GET) 210 211 /* FF-A v1.3 ALP2 specification. */ 212 #define FFA_FNUM_ABORT U(0x90) 213 #define FFA_ABORT_SMC32 FFA_FID(SMC_32, FFA_FNUM_ABORT) 214 #define FFA_ABORT_SMC64 FFA_FID(SMC_64, FFA_FNUM_ABORT) 215 /* 216 * FF-A partition properties values. 217 */ 218 #define FFA_PARTITION_DIRECT_REQ_RECV U(1 << 0) 219 #define FFA_PARTITION_DIRECT_REQ_SEND U(1 << 1) 220 #define FFA_PARTITION_INDIRECT_MSG U(1 << 2) 221 #define FFA_PARTITION_VM_CREATED U(1 << 6) 222 #define FFA_PARTITION_VM_DESTROYED U(1 << 7) 223 #define FFA_PARTITION_DIRECT_REQ2_RECV U(1 << 9) 224 #define FFA_PARTITION_DIRECT_REQ2_SEND U(1 << 10) 225 #define FFA_PARTITION_LIVE_ACTIVATION U(1 << 11) 226 #define FFA_PARTITION_CPU_RENDEZVOUS U(1 << 12) 227 228 /* 229 * "vm-availability-messages" values. 230 */ 231 #define FFA_VM_AVAILABILITY_CREATED U(1 << 0) 232 #define FFA_VM_AVAILABILITY_DESTROYED U(1 << 1) 233 234 /* 235 * Reserve a special value for traffic targeted to the Hypervisor or SPM. 236 */ 237 #define FFA_TARGET_INFO_MBZ U(0x0) 238 239 /* 240 * Reserve a special value for MBZ parameters. 241 */ 242 #define FFA_PARAM_MBZ U(0x0) 243 244 /* 245 * Maximum FF-A endpoint id value 246 */ 247 #define FFA_ENDPOINT_ID_MAX U(1 << 16) 248 249 /* 250 * Reserve endpoint id for the SPMD. 251 */ 252 #define SPMD_DIRECT_MSG_ENDPOINT_ID U(FFA_ENDPOINT_ID_MAX - 1) 253 254 /* Mask and shift to check valid secure FF-A Endpoint ID. */ 255 #define SPMC_SECURE_ID_MASK U(1) 256 #define SPMC_SECURE_ID_SHIFT U(15) 257 258 /* 259 * Partition Count Flag in FFA_PARTITION_INFO_GET. 260 */ 261 #define FFA_PARTITION_INFO_GET_COUNT_FLAG_MASK U(1 << 0) 262 263 /* 264 * Mask for source and destination endpoint id in 265 * a direct message request/response. 266 */ 267 #define FFA_DIRECT_MSG_ENDPOINT_ID_MASK U(0xffff) 268 269 /* 270 * Bit shift for destination endpoint id in a direct message request/response. 271 */ 272 #define FFA_DIRECT_MSG_DESTINATION_SHIFT U(0) 273 274 /* 275 * Bit shift for source endpoint id in a direct message request/response. 276 */ 277 #define FFA_DIRECT_MSG_SOURCE_SHIFT U(16) 278 279 /****************************************************************************** 280 * ffa_endpoint_destination 281 *****************************************************************************/ 282 static inline uint16_t ffa_endpoint_destination(unsigned int ep) 283 { 284 return (ep >> FFA_DIRECT_MSG_DESTINATION_SHIFT) & 285 FFA_DIRECT_MSG_ENDPOINT_ID_MASK; 286 } 287 288 /****************************************************************************** 289 * ffa_endpoint_source 290 *****************************************************************************/ 291 static inline uint16_t ffa_endpoint_source(unsigned int ep) 292 { 293 return (ep >> FFA_DIRECT_MSG_SOURCE_SHIFT) & 294 FFA_DIRECT_MSG_ENDPOINT_ID_MASK; 295 } 296 297 /****************************************************************************** 298 * FF-A helper functions to determine partition ID world. 299 *****************************************************************************/ 300 301 /* 302 * Determine if provided ID is in the secure world. 303 */ 304 static inline bool ffa_is_secure_world_id(uint16_t id) 305 { 306 return ((id >> SPMC_SECURE_ID_SHIFT) & SPMC_SECURE_ID_MASK) == 1; 307 } 308 309 /* 310 * Determine if provided ID is in the normal world. 311 */ 312 static inline bool ffa_is_normal_world_id(uint16_t id) 313 { 314 return !ffa_is_secure_world_id(id); 315 } 316 317 318 /****************************************************************************** 319 * Boot information protocol as per the FF-A v1.1 spec. 320 *****************************************************************************/ 321 #define FFA_INIT_DESC_SIGNATURE 0x00000FFA 322 323 /* Boot information type. */ 324 #define FFA_BOOT_INFO_TYPE_STD U(0x0) 325 #define FFA_BOOT_INFO_TYPE_IMPL U(0x1) 326 327 #define FFA_BOOT_INFO_TYPE_MASK U(0x1) 328 #define FFA_BOOT_INFO_TYPE_SHIFT U(0x7) 329 #define FFA_BOOT_INFO_TYPE(type) \ 330 (((type) & FFA_BOOT_INFO_TYPE_MASK) \ 331 << FFA_BOOT_INFO_TYPE_SHIFT) 332 333 /* Boot information identifier. */ 334 #define FFA_BOOT_INFO_TYPE_ID_FDT U(0x0) 335 #define FFA_BOOT_INFO_TYPE_ID_HOB U(0x1) 336 337 #define FFA_BOOT_INFO_TYPE_ID_MASK U(0x3F) 338 #define FFA_BOOT_INFO_TYPE_ID_SHIFT U(0x0) 339 #define FFA_BOOT_INFO_TYPE_ID(type) \ 340 (((type) & FFA_BOOT_INFO_TYPE_ID_MASK) \ 341 << FFA_BOOT_INFO_TYPE_ID_SHIFT) 342 343 /* Format of Flags Name field. */ 344 #define FFA_BOOT_INFO_FLAG_NAME_STRING U(0x0) 345 #define FFA_BOOT_INFO_FLAG_NAME_UUID U(0x1) 346 347 #define FFA_BOOT_INFO_FLAG_NAME_MASK U(0x3) 348 #define FFA_BOOT_INFO_FLAG_NAME_SHIFT U(0x0) 349 #define FFA_BOOT_INFO_FLAG_NAME(type) \ 350 (((type) & FFA_BOOT_INFO_FLAG_NAME_MASK)\ 351 << FFA_BOOT_INFO_FLAG_NAME_SHIFT) 352 353 /* Format of Flags Contents field. */ 354 #define FFA_BOOT_INFO_FLAG_CONTENT_ADR U(0x0) 355 #define FFA_BOOT_INFO_FLAG_CONTENT_VAL U(0x1) 356 357 #define FFA_BOOT_INFO_FLAG_CONTENT_MASK U(0x1) 358 #define FFA_BOOT_INFO_FLAG_CONTENT_SHIFT U(0x2) 359 #define FFA_BOOT_INFO_FLAG_CONTENT(content) \ 360 (((content) & FFA_BOOT_INFO_FLAG_CONTENT_MASK) \ 361 << FFA_BOOT_INFO_FLAG_CONTENT_SHIFT) 362 363 /* Boot information descriptor. */ 364 struct ffa_boot_info_desc { 365 uint8_t name[16]; 366 uint8_t type; 367 uint8_t reserved; 368 uint16_t flags; 369 uint32_t size_boot_info; 370 uint64_t content; 371 }; 372 373 /* Boot information header. */ 374 struct ffa_boot_info_header { 375 uint32_t signature; /* 0xFFA */ 376 uint32_t version; 377 uint32_t size_boot_info_blob; 378 uint32_t size_boot_info_desc; 379 uint32_t count_boot_info_desc; 380 uint32_t offset_boot_info_desc; 381 uint64_t reserved; 382 }; 383 384 /* FF-A Partition Info Get related macros. */ 385 #define FFA_PARTITION_INFO_GET_PROPERTIES_V1_0_MASK U(0x7) 386 #define FFA_PARTITION_INFO_GET_EXEC_STATE_SHIFT U(8) 387 #define FFA_PARTITION_INFO_GET_AARCH32_STATE U(0) 388 #define FFA_PARTITION_INFO_GET_AARCH64_STATE U(1) 389 390 /** 391 * Holds information returned for each partition by the FFA_PARTITION_INFO_GET 392 * interface. 393 */ 394 struct ffa_partition_info_v1_0 { 395 uint16_t ep_id; 396 uint16_t execution_ctx_count; 397 uint32_t properties; 398 }; 399 400 /* Extended structure for FF-A v1.1. */ 401 struct ffa_partition_info_v1_1 { 402 uint16_t ep_id; 403 uint16_t execution_ctx_count; 404 uint32_t properties; 405 uint32_t uuid[4]; 406 }; 407 408 /* Extended structure for FF-A v1.3. */ 409 struct ffa_partition_info_v1_3 { 410 uint16_t ep_id; 411 uint16_t execution_ctx_count; 412 uint32_t properties; 413 uint32_t protocol_uuid[4]; 414 uint32_t image_uuid[4]; 415 uint32_t ffa_version; 416 uint32_t reserved; 417 }; 418 419 #endif /* FFA_SVC_H */ 420