• 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: Module ID definition.
15  */
16 
17 #ifndef __SOC_MODULE_H__
18 #define __SOC_MODULE_H__
19 
20 #define SOC_INVALID_MODULE_ID (0xffffffff)
21 
22 typedef enum {
23     /* common */ /* CNcomment: 系统通用模块 */
24     SOC_ID_RESERVED = 0x00,
25     SOC_ID_LIBC = 0x01,
26     SOC_ID_BSP = 0x02,
27     SOC_ID_SYS = 0x03,
28     SOC_ID_MAIN = 0x04,
29 
30     /* Peripheral */ /* CNcomment: 外设相关模块 */
31     SOC_ID_VAU = 0x05,
32     SOC_ID_DPU = 0x06,
33     SOC_ID_AIDSP = 0x07,
34     SOC_ID_CGRA = 0x08,
35 
36     /* Component */ /* CNcomment: 组件相关模块 */
37     DIAG_MOD_ID_WIFI_HOST               = 0x00,
38     DIAG_MOD_ID_WIFI_DEVICE             = 0x00,
39     DIAG_MOD_ID_OAM_HOST                = 0x00,
40 
41     DIAG_MOD_ID_PLC_NM                  = 0x20,
42 
43     SOC_ID_MAX = 0x3F
44 } soc_mod_id;
45 
46 #endif /* __SOC_MODULE_H__ */
47 
48