Platform: Add tfm_ prefix in the platform HAL
This patch adds the tfm_ prefix in all the platform HAL files,
interfaces and HAL targets' implementation.
It also aligns the files with the coding style.
Change-Id: Ic1b1f80b20c1e8a19e6b8e56ee158b42c11df63c
Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
diff --git a/platform/include/tfm_plat_defs.h b/platform/include/tfm_plat_defs.h
new file mode 100644
index 0000000..eeaf32f
--- /dev/null
+++ b/platform/include/tfm_plat_defs.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2017-2018, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#ifndef __TFM_PLAT_DEFS_H__
+#define __TFM_PLAT_DEFS_H__
+/**
+ * \note The interfaces defined in this file must be implemented for each
+ * target.
+ */
+
+#include <stdint.h>
+#include <limits.h>
+
+enum tfm_plat_errno_t {
+ TFM_PLAT_ERRNO_SUCCESS = 0,
+ TFM_PLAT_ERRNO_SYSTEM_ERR,
+ /* Following entry is only to ensure the error code of int size */
+ TFM_PLAT_ERRNO_FORCE_INT_SIZE = INT_MAX
+};
+
+#endif /* __TFM_PLAT_DEFS_H__ */