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