• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  * Description: Common Boot for Standard Application Core
15  *
16  * Create: 2023-01-09
17  */
18 
19 #ifndef BOOT_ERRCODE_H
20 #define BOOT_ERRCODE_H
21 
22 #include "errcode.h"
23 
24 /* Generic errno */
25 #define ERRCODE_BOOT_YMODEM_TIMEOUT                         0xC35A69A6
26 #define ERRCODE_BOOT_YMODEM_CANCEL                          0xC35A69A7
27 #define ERRCODE_BOOT_YMODEM_FRAME                           0xC35A69A8
28 #define ERRCODE_BOOT_YMODEM_CS                              0xC35A69A9
29 #define ERRCODE_BOOT_YMODEM_EOT                             0xC35A69AA
30 #define ERRCODE_BOOT_YMODEM_SEQ                             0xC35A69AB
31 #define ERRCODE_BOOT_YMODEM_LENTH                           0xC35A69AC
32 
33 /* secure verify 0x800015C0~0x800015CF */
34 #define ERRCODE_BOOT_VERIFY_CHECK_ENABLE                    0x800015C0
35 #define ERRCODE_BOOT_VERIFY_INVALID_ROOT_KEY                0x800015C1
36 #define ERRCODE_BOOT_VERIFY_INVALID_IMAGE_ID                0x800015C2
37 #define ERRCODE_BOOT_VERIFY_PKE_VERIFY                      0x800015C3
38 #define ERRCODE_BOOT_VERIFY_INVALID_VERSION                 0x800015C4
39 #define ERRCODE_BOOT_VERIFY_INVALID_MSID                    0x800015C5
40 #define ERRCODE_BOOT_VERIFY_INVALID_DIE_ID                  0x800015C6
41 #define ERRCODE_BOOT_VERIFY_HASH_CALCULATION                0x800015C7
42 #define ERRCODE_BOOT_VERIFY_INVALID_HASH_RESULT             0x800015C8
43 #define ERRCODE_BOOT_VERIFY_EFUSE_READ                      0x800015C9
44 #define ERRCODE_BOOT_VERIFY_PARAM_NULL                      0x800015CA
45 #define ERRCODE_BOOT_VERIFY_HASH_DATA_IS_TOO_LONG           0x800015CB
46 #define ERRCODE_BOOT_VERIFY_MEMCPY_ERR                      0x800015CC
47 
48 #endif