diff options
author | Olivier Deprez <olivier.deprez@arm.com> | 2022-03-04 13:22:50 +0100 |
---|---|---|
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | 2022-03-04 13:22:50 +0100 |
commit | 0c2a132bb2be5c1feb4a967952123f427ff0bcda (patch) | |
tree | 76f3c080d553dae51dbf3130d951d61bc72acd90 /include | |
parent | 6a185d89f6fac101b3ce5af0f56baabc5072c1e1 (diff) | |
parent | 2ac55f2d57601d4c2c9013983f0d8c0bf6a6e05c (diff) |
Merge "test(ff-a): versioned partition info descriptors"
Diffstat (limited to 'include')
-rw-r--r-- | include/runtime_services/ffa_helpers.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/runtime_services/ffa_helpers.h b/include/runtime_services/ffa_helpers.h index e4929b7..23b2439 100644 --- a/include/runtime_services/ffa_helpers.h +++ b/include/runtime_services/ffa_helpers.h @@ -72,6 +72,19 @@ struct ffa_partition_info { struct ffa_uuid uuid; }; +/** + * Partition info descriptor as defined in Table 8.25 of the v1.0 + * FF-A Specification + */ +struct ffa_partition_info_v1_0 { + /** The ID of the VM the information is about */ + ffa_id_t id; + /** The number of execution contexts implemented by the partition */ + uint16_t exec_context; + /** The Partition's properties, e.g. supported messaging methods */ + uint32_t properties; +}; + static inline uint32_t ffa_func_id(smc_ret_values val) { return (uint32_t) val.ret0; @@ -86,6 +99,11 @@ static inline ffa_id_t ffa_endpoint_id(smc_ret_values val) { return (ffa_id_t) val.ret2 & 0xffff; } +static inline uint32_t ffa_partition_info_count(smc_ret_values val) +{ + return (uint32_t) val.ret2; +} + static inline uint32_t ffa_feature_intid(smc_ret_values val) { return (uint32_t)val.ret2; |