Runtime provisioning: Add partition
Add the runtime provisioning partition. This is a very basic partition
which allows platforms to hook in an interrupt from a provisioning comms
interface. The partition will wait for the interrupt and then process it
by calling into a platform specific HAL.
Change-Id: I478306c823e34cf6d18575039f5959d310b2afb2
Signed-off-by: Jackson Cooper-Driver <jackson.cooper-driver@arm.com>
diff --git a/partitions/runtime_provisioning/runtime_provisioning_hal.h b/partitions/runtime_provisioning/runtime_provisioning_hal.h
new file mode 100644
index 0000000..aadb701
--- /dev/null
+++ b/partitions/runtime_provisioning/runtime_provisioning_hal.h
@@ -0,0 +1,22 @@
+/*
+ * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#ifndef __RUNTIME_PROVISIONING_HAL_H__
+#define __RUNTIME_PROVISIONING_HAL_H__
+
+enum runtime_provisioning_error_t {
+ RUNTIME_PROVISIONING_SUCCESS = 0,
+ RUNTIME_PROVISIONING_INVALID_STATE,
+ RUNTIME_PROVISIONING_NO_INTERRUPT,
+ RUNTIME_PROVISIONING_GENERIC_ERROR,
+};
+
+enum runtime_provisioning_error_t runtime_provisioning_hal_init(void);
+
+enum runtime_provisioning_error_t runtime_provisioning_hal_process_message(void);
+
+#endif /* __RUNTIME_PROVISIONING_HAL_H__ */