1 /*
2  * Copyright (c) 2023, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 #ifndef __INTERNAL_STATUS_CODE_H__
8 #define __INTERNAL_STATUS_CODE_H__
9 
10 #include "psa/error.h"
11 
12 #define SPM_SUCCESS                 PSA_SUCCESS
13 
14 /* SPM implementation status range from -249 to -256. */
15 #define SPM_ERROR_BAD_PARAMETERS   ((psa_status_t)-249)
16 #define SPM_ERROR_SHORT_BUFFER     ((psa_status_t)-250)
17 #define SPM_ERROR_VERSION          ((psa_status_t)-251)
18 #define SPM_ERROR_MEMORY_CHECK     ((psa_status_t)-252)
19 #define SPM_ERROR_GENERIC          ((psa_status_t)-253)
20 
21 #define STATUS_NEED_SCHEDULE       ((psa_status_t)-254)
22 
23 #endif /* __INTERNAL_STATUS_CODE_H__ */
24