Mistake on this page?
Report an issue in GitHub or email us
error.h
1 /*
2 * Copyright (c) 2019 ARM Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 * Licensed under the Apache License, Version 2.0 (the License); you may
7 * not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18 
19 /* psa/error.h
20 Standard error codes for the SPM and RoT Services
21 As defined in PSA Firmware Framework v1.0
22 */
23 
24 #ifndef __PSA_ERROR__
25 #define __PSA_ERROR__
26 
27 #include <stddef.h>
28 #include <stdint.h>
29 
30 typedef int32_t psa_status_t;
31 
32 #define PSA_SUCCESS ((psa_status_t)0)
33 
34 #define PSA_ERROR_PROGRAMMER_ERROR ((psa_status_t)-129)
35 #define PSA_ERROR_CONNECTION_REFUSED ((psa_status_t)-130)
36 #define PSA_ERROR_CONNECTION_BUSY ((psa_status_t)-131)
37 #define PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132)
38 #define PSA_ERROR_NOT_PERMITTED ((psa_status_t)-133)
39 #define PSA_ERROR_NOT_SUPPORTED ((psa_status_t)-134)
40 #define PSA_ERROR_INVALID_ARGUMENT ((psa_status_t)-135)
41 #define PSA_ERROR_INVALID_HANDLE ((psa_status_t)-136)
42 #define PSA_ERROR_BAD_STATE ((psa_status_t)-137)
43 #define PSA_ERROR_BUFFER_TOO_SMALL ((psa_status_t)-138)
44 #define PSA_ERROR_ALREADY_EXISTS ((psa_status_t)-139)
45 #define PSA_ERROR_DOES_NOT_EXIST ((psa_status_t)-140)
46 #define PSA_ERROR_INSUFFICIENT_MEMORY ((psa_status_t)-141)
47 #define PSA_ERROR_INSUFFICIENT_STORAGE ((psa_status_t)-142)
48 #define PSA_ERROR_INSUFFICIENT_DATA ((psa_status_t)-143)
49 #define PSA_ERROR_SERVICE_FAILURE ((psa_status_t)-144)
50 #define PSA_ERROR_COMMUNICATION_FAILURE ((psa_status_t)-145)
51 #define PSA_ERROR_STORAGE_FAILURE ((psa_status_t)-146)
52 #define PSA_ERROR_HARDWARE_FAILURE ((psa_status_t)-147)
53 #define PSA_ERROR_INVALID_SIGNATURE ((psa_status_t)-149)
54 #define PSA_ERROR_DATA_CORRUPT ((psa_status_t)-152)
55 
56 #endif // __PSA_ERROR__
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.