Cactus: FFA_PARTITION_INFO_GET test.
Calls FFA_PARTITION_INFO_GET API from secure virtual FFA-A instance.
* Gets information about primary SP.
* Gets information about secondary SP.
* Gets information about all SP running.
* Attempts to get information about non-existing SP.
Signed-off-by: Max Shvetsov <maksims.svecovs@arm.com>
Change-Id: Ief4de45b4d7decb1e1dba9bdb0e7e05516062dd2
diff --git a/include/runtime_services/ffa_helpers.h b/include/runtime_services/ffa_helpers.h
index 1a49fa8..0692aa9 100644
--- a/include/runtime_services/ffa_helpers.h
+++ b/include/runtime_services/ffa_helpers.h
@@ -28,6 +28,20 @@
#include <stdint.h>
+struct mailbox_buffers {
+ const void *recv;
+ void *send;
+};
+
+struct ffa_partition_info {
+ /** The ID of the VM the information is about */
+ ffa_vm_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;
+};
+
/*
* TODO: In the future this file should be placed in a common folder, and not
* under tftf. The functions in this file are also used by SPs for SPM tests.
@@ -43,6 +57,8 @@
ffa_vm_id_t dest_id, uint32_t message);
smc_ret_values ffa_error(int32_t error_code);
smc_ret_values ffa_features(uint32_t feature);
+smc_ret_values ffa_partition_info_get(const uint32_t uuid[4]);
+smc_ret_values ffa_rx_release(void);
#endif /* __ASSEMBLY__ */