1 /*
2  * Copyright (c) 2020-2021, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __TFM_HAL_DEFS_H__
9 #define __TFM_HAL_DEFS_H__
10 
11 #include <limits.h>
12 #include <stdint.h>
13 
14 enum tfm_hal_status_t {
15     TFM_HAL_ERROR_MEM_FAULT = SCHAR_MIN,
16     TFM_HAL_ERROR_MAX_VALUE = SCHAR_MIN + 0x3A5C,
17     TFM_HAL_ERROR_BAD_STATE = SCHAR_MIN + 0x55A3,
18     TFM_HAL_ERROR_NOT_SUPPORTED = SCHAR_MIN + 0xA3C5,
19     TFM_HAL_ERROR_INVALID_INPUT = SCHAR_MIN + 0xC35A,
20     TFM_HAL_ERROR_NOT_INIT = SCHAR_MIN + 0x33CA5,
21     TFM_HAL_ERROR_GENERIC = SCHAR_MIN + 0x3C5A,
22     TFM_HAL_SUCCESS = 0
23 };
24 
25 #endif /* __TFM_HAL_DEFS_H__ */
26