Add FWU service access protocol definition
Adds a packed-c protocol definition for the firmware update
service. The protocol defintion aims for alignment with the
ARM FWU-A specification.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I1d7e68058e7ad9447bff862026513aeef25d9ac4
diff --git a/protocols/service/fwu/packed-c/metadata.h b/protocols/service/fwu/packed-c/metadata.h
new file mode 100644
index 0000000..b89cc9e
--- /dev/null
+++ b/protocols/service/fwu/packed-c/metadata.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2022-2023, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ * FWU metadata information as per the specification section 4.1:
+ * https://developer.arm.com/documentation/den0118/a/
+ *
+ */
+
+#ifndef FWU_PROTO_METADATA_H
+#define FWU_PROTO_METADATA_H
+
+/**
+ * The number of banks for different versions of firmware.
+ * With the default configuration, a dual bank A/B scheme is used.
+ */
+#ifndef FWU_METADATA_NUM_BANKS
+#define FWU_METADATA_NUM_BANKS (2)
+#endif
+
+#endif /* FWU_PROTO_METADATA_H */