fix(ff-a): use messaging info from the manifest
Adds a messaging method to the VM structure. Refactor messaging info
field in the manifest to comply with information in specification. In
particular - distinguish between the direct message send/receive.
Use messaging method from the manifest to populate partition info for
FFA_PARTITION_INFO_GET ABI. Populates partition info based on the
caller id (SP can send direct messages to other SPs).
Refactors managed exit check to use messaging method value.
Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com>
Change-Id: Id0734c18d14879b89ba3517b8ff4b3b41b53b56f
diff --git a/inc/hf/manifest.h b/inc/hf/manifest.h
index 8a01883..f9a899b 100644
--- a/inc/hf/manifest.h
+++ b/inc/hf/manifest.h
@@ -45,14 +45,6 @@
enum xlat_granule { PAGE_4KB = 0, PAGE_16KB, PAGE_64KB };
-enum messaging_method {
- DIRECT_MESSAGING = 0,
- INDIRECT_MESSAGING,
- BOTH_MESSAGING,
- DIRECT_MESSAGING_MANAGED_EXIT,
- BOTH_MESSAGING_MANAGED_EXIT
-};
-
/**
* Partition Memory region as described in PSA FFA v1.0 spec, Table 10
*/
@@ -145,7 +137,7 @@
struct rx_tx rxtx;
/** mandatory - direct/indirect msg or both */
- enum messaging_method messaging_method;
+ uint8_t messaging_method;
/** optional */
bool has_primary_scheduler;
/** optional - preemptible / run to completion */