feat(memory share): allow device memory lend SP to SP
This patch allows the simple case of lending device memory
between two SPs.
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Change-Id: I904fb81745f786a50b37ebff1a65266ebc76ccd4
diff --git a/inc/vmapi/hf/ffa.h b/inc/vmapi/hf/ffa.h
index 837194f..6494b52 100644
--- a/inc/vmapi/hf/ffa.h
+++ b/inc/vmapi/hf/ffa.h
@@ -485,6 +485,21 @@
}
}
+static inline const char *ffa_device_memory_cacheability_name(
+ enum ffa_memory_cacheability cacheability)
+{
+ switch (cacheability) {
+ case FFA_MEMORY_DEV_NGNRNE:
+ return "FFA_MEMORY_DEV_NGNRNE";
+ case FFA_MEMORY_DEV_NGNRE:
+ return "FFA_MEMORY_DEV_NGNRE";
+ case FFA_MEMORY_DEV_NGRE:
+ return "FFA_MEMORY_DEV_NGRE";
+ case FFA_MEMORY_DEV_GRE:
+ return "FFA_MEMORY_DEV_GRE";
+ }
+}
+
enum ffa_memory_shareability {
FFA_MEMORY_SHARE_NON_SHAREABLE,
FFA_MEMORY_SHARE_RESERVED,