Marc Moreno Berengue | 20dab39 | 2017-11-29 13:18:58 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2017, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef __PLAT_DEFS_H__ |
| 9 | #define __PLAT_DEFS_H__ |
| 10 | /** |
| 11 | * \note The interfaces defined in this file must be implemented for each |
| 12 | * target. |
| 13 | */ |
| 14 | #ifdef __cplusplus |
| 15 | extern "C" { |
| 16 | #endif |
| 17 | |
| 18 | #include <stdint.h> |
| 19 | #include <limits.h> |
| 20 | |
| 21 | enum tfm_plat_errno_t { |
| 22 | TFM_PLAT_ERRNO_SUCCESS = 0, |
| 23 | TFM_PLAT_ERRNO_SYSTEM_ERR, |
| 24 | /* Following entry is only to ensure the error code of int size */ |
| 25 | TFM_PLAT_ERRNO_FORCE_INT_SIZE = INT_MAX |
| 26 | }; |
| 27 | |
| 28 | #ifdef __cplusplus |
| 29 | } |
| 30 | #endif |
| 31 | |
| 32 | #endif /* __PLAT_DEFS_H__ */ |