aboutsummaryrefslogtreecommitdiff
path: root/platform/include
diff options
context:
space:
mode:
authorEdison Ai <edison.ai@arm.com>2020-07-02 18:53:36 +0800
committerKen Liu <ken.liu@arm.com>2020-08-24 01:10:45 +0000
commit9b6289868a6538bc635b6e7d2250236844b64046 (patch)
tree6906eee7fc4598a216987512719d079d4730013c /platform/include
parent2ecfc9fa17456fd99abb81ea0cae9be6aeec8fa6 (diff)
downloadtrusted-firmware-m-9b6289868a6538bc635b6e7d2250236844b64046.tar.gz
HAL: Add HAL definition header file
The HAL definition header file includes the common status code for all HAL APIs. Change-Id: Ie6ce8951b16a293e4ad9244575611095e4b6c6f8 Signed-off-by: Edison Ai <edison.ai@arm.com>
Diffstat (limited to 'platform/include')
-rw-r--r--platform/include/tfm_hal_defs.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/platform/include/tfm_hal_defs.h b/platform/include/tfm_hal_defs.h
new file mode 100644
index 0000000000..e099077da2
--- /dev/null
+++ b/platform/include/tfm_hal_defs.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2020, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#ifndef __TFM_HAL_DEFS_H__
+#define __TFM_HAL_DEFS_H__
+
+#include <limits.h>
+#include <stdint.h>
+
+enum tfm_hal_status_t {
+ TFM_HAL_ERROR_MEM_FAULT = CHAR_MIN,
+ TFM_HAL_ERROR_MAX_VALUE,
+ TFM_HAL_ERROR_BAD_STATE,
+ TFM_HAL_ERROR_NOT_SUPPORTED,
+ TFM_HAL_ERROR_INVALID_INPUT,
+ TFM_HAL_ERROR_NOT_INIT,
+ TFM_HAL_ERROR_GENERIC,
+ TFM_HAL_SUCCESS = 0
+};
+
+#endif /* __TFM_HAL_DEFS_H__ */