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/status.h b/protocols/service/fwu/packed-c/status.h
new file mode 100644
index 0000000..b53e8b8
--- /dev/null
+++ b/protocols/service/fwu/packed-c/status.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2022, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef FWU_PROTO_STATUS_H
+#define FWU_PROTO_STATUS_H
+
+/**
+ * Service-level status codes
+ */
+#define FWU_STATUS_SUCCESS ((int32_t)0)
+#define FWU_STATUS_UNKNOWN ((int32_t)-1)
+#define FWU_STATUS_BUSY ((int32_t)-2)
+#define FWU_STATUS_OUT_OF_BOUNDS ((int32_t)-3)
+#define FWU_STATUS_AUTH_FAIL ((int32_t)-4)
+#define FWU_STATUS_NO_PERMISSION ((int32_t)-5)
+#define FWU_STATUS_DENIED ((int32_t)-6)
+#define FWU_STATUS_RESUME ((int32_t)-7)
+#define FWU_STATUS_NOT_AVAILABLE ((int32_t)-8)
+
+#endif /* FWU_PROTO_STATUS_H */