feat(ff-a): introduce count flag to ffa_partition_info_get
The partition count flag controls whether to return partition
info descriptors on a call to FFA_PARTITION_INFO_GET. This
patch introduces this functionality.
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Change-Id: Ib4a13c10e107daf726e5d6ec0ce6bd0d451c1b0f
diff --git a/inc/vmapi/hf/ffa.h b/inc/vmapi/hf/ffa.h
index 0440ef8..7668b96 100644
--- a/inc/vmapi/hf/ffa.h
+++ b/inc/vmapi/hf/ffa.h
@@ -126,6 +126,14 @@
#define FFA_MEM_PERM_RW UINT32_C(0x5)
#define FFA_MEM_PERM_RX UINT32_C(0x3)
+/*
+ * Defined in Table 13.31 in the FF-A v1.1 BETA0 specification.
+ * The Partition count flag is used by FFA_PARTITION_INFO_GET to specify
+ * if partition info descriptors should be returned or just the count.
+ */
+#define FFA_PARTITION_COUNT_FLAG 0x1
+#define FFA_PARTITION_COUNT_FLAG_MASK 0x1
+
/**
* For use where the FF-A specification refers explicitly to '4K pages'. Not to
* be confused with PAGE_SIZE, which is the translation granule Hafnium is