Greg Steiert / pegasus_dev

Dependents:   blinky_max32630fthr

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers halt_exports.h Source File

halt_exports.h

00001 /*
00002  * Copyright (c) 2015, ARM Limited, All Rights Reserved
00003  * SPDX-License-Identifier: Apache-2.0
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License"); you may
00006  * not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  * http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00013  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 #ifndef __UVISOR_API_HALT_EXPORTS_H__
00018 #define __UVISOR_API_HALT_EXPORTS_H__
00019 
00020 #define UVISOR_ERROR_INVALID_BOX_ID             (-2)
00021 #define UVISOR_ERROR_BUFFER_TOO_SMALL           (-3)
00022 #define UVISOR_ERROR_BOX_NAMESPACE_ANONYMOUS    (-4)
00023 #define UVISOR_ERROR_BAD_MAGIC                  (-5)
00024 #define UVISOR_ERROR_BAD_VERSION                (-6)
00025 #define UVISOR_ERROR_OUT_OF_STRUCTURES          (-7)
00026 #define UVISOR_ERROR_INVALID_PARAMETERS         (-8)
00027 #define UVISOR_ERROR_NOT_IMPLEMENTED            (-9)
00028 
00029 
00030 #define UVISOR_ERROR_CLASS_MASK     (0xFFFF0000UL)
00031 #define UVISOR_ERROR_MASK           (0x0000FFFFUL)
00032 
00033 #define UVISOR_ERROR_CLASS_PAGE     (1UL << 16)
00034 
00035 typedef enum {
00036     USER_NOT_ALLOWED = 1,
00037     DEBUG_BOX_HALT,
00038 } THaltUserError;
00039 
00040 typedef enum {
00041     HALT_NO_ERROR = 0,
00042     PERMISSION_DENIED = 1,
00043     SANITY_CHECK_FAILED,
00044     NOT_IMPLEMENTED,
00045     NOT_ALLOWED,
00046     FAULT_MEMMANAGE,
00047     FAULT_BUS,
00048     FAULT_USAGE,
00049     FAULT_HARD,
00050     FAULT_DEBUG,
00051     __THALTERROR_MAX /* always keep as the last element of the enum */
00052 } THaltError;
00053 
00054 #endif /* __UVISOR_API_HALT_EXPORTS_H__ */