feat(manifest): check interrupt IDs are unique
Add a checks to prevent two endpoints from declaring the same
interrupt ID resource for a device peripheral.
Also add macros used to access the bitmask that tracks
interrupts.
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Change-Id: I5074e8d4209588a6c8f62ee06e0eb05b20cac387
diff --git a/inc/hf/manifest.h b/inc/hf/manifest.h
index 69955e2..91da3f7 100644
--- a/inc/hf/manifest.h
+++ b/inc/hf/manifest.h
@@ -226,12 +226,14 @@
MANIFEST_ERROR_DEVICE_REGION_NODE_EMPTY,
MANIFEST_ERROR_RXTX_SIZE_MISMATCH,
MANIFEST_ERROR_INVALID_MEM_PERM,
+ MANIFEST_ERROR_INTERRUPT_ID_REPEATED,
};
enum manifest_return_code manifest_init(struct mm_stage1_locked stage1_locked,
struct manifest *manifest,
struct memiter *manifest_fdt,
struct mpool *ppool);
+void manifest_deinit(struct mpool *ppool);
enum manifest_return_code parse_ffa_manifest(struct fdt *fdt,
struct manifest_vm *vm,