1 /* 2 * Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 */ 18 19 20 #ifndef __PROC_EXT_H__ 21 #define __PROC_EXT_H__ 22 23 #include "hi_osal.h" 24 25 #include "hi_type.h" 26 #include "hi_common.h" 27 28 #define PROC_ENTRY_VI MPP_MOD_VI 29 #define PROC_ENTRY_VO MPP_MOD_VO 30 #define PROC_ENTRY_VGS MPP_MOD_VGS 31 #define PROC_ENTRY_VENC MPP_MOD_VENC 32 #define PROC_ENTRY_VDEC MPP_MOD_VDEC 33 #define PROC_ENTRY_H264E MPP_MOD_H264E 34 #define PROC_ENTRY_H265E MPP_MOD_H265E 35 #define PROC_ENTRY_H264D MPP_MOD_H264D 36 #define PROC_ENTRY_JPEGE MPP_MOD_JPEGE 37 #define PROC_ENTRY_JPEGD MPP_MOD_JPEGD 38 #define PROC_ENTRY_PRORES MPP_MOD_PRORES 39 #define PROC_ENTRY_IOP MPP_MOD_IOP 40 41 #define PROC_ENTRY_MPEG4E MPP_MOD_MPEG4E 42 #define PROC_ENTRY_CHNL MPP_MOD_CHNL 43 #define PROC_ENTRY_AIO MPP_MOD_AIO 44 #define PROC_ENTRY_AI MPP_MOD_AI 45 #define PROC_ENTRY_AO MPP_MOD_AO 46 #define PROC_ENTRY_AENC MPP_MOD_AENC 47 #define PROC_ENTRY_ADEC MPP_MOD_ADEC 48 #define PROC_ENTRY_ACODEC MPP_MOD_ACODEC 49 #define PROC_ENTRY_VB MPP_MOD_VB 50 #define PROC_ENTRY_VB_USER MPP_MOD_VB_USER 51 #define PROC_ENTRY_GRP MPP_MOD_GRP 52 #define PROC_ENTRY_VPSS MPP_MOD_VPSS 53 #define PROC_ENTRY_RGN MPP_MOD_RGN 54 #define PROC_ENTRY_SYS MPP_MOD_SYS 55 #define PROC_ENTRY_SYS_USER MPP_MOD_SYS_USER 56 #define PROC_ENTRY_PCIV MPP_MOD_PCIV 57 #define PROC_ENTRY_LOG MPP_MOD_LOG 58 #define PROC_ENTRY_LOG_USER MPP_MOD_LOG_USER 59 #define PROC_ENTRY_DCCM MPP_MOD_DCCM 60 #define PROC_ENTRY_DCCS MPP_MOD_DCCS 61 #define PROC_ENTRY_MST_LOG MPP_MOD_MST_LOG 62 #define PROC_ENTRY_PCIVFMW MPP_MOD_PCIVFMW 63 #define PROC_ENTRY_RC MPP_MOD_RC 64 #define PROC_ENTRY_IVE MPP_MOD_IVE 65 #define PROC_ENTRY_FD MPP_MOD_FD 66 #define PROC_ENTRY_SVP MPP_MOD_SVP 67 #define PROC_ENTRY_SVP_NNIE MPP_MOD_SVP_NNIE 68 #define PROC_ENTRY_SVP_ALG MPP_MOD_SVP_ALG 69 #define PROC_ENTRY_SVP_DSP MPP_MOD_SVP_DSP 70 #define PROC_ENTRY_DPU_RECT MPP_MOD_DPU_RECT 71 #define PROC_ENTRY_DPU_MATCH MPP_MOD_DPU_MATCH 72 #define PROC_ENTRY_IVP MPP_MOD_IVP 73 74 #define PROC_ENTRY_MD MPP_MOD_MD 75 #define PROC_ENTRY_HDMI MPP_MOD_HDMI 76 #define PROC_ENTRY_ISP MPP_MOD_ISP 77 #define PROC_ENTRY_DIS MPP_MOD_DIS 78 #define PROC_ENTRY_GYRODIS MPP_MOD_GYRODIS 79 #define PROC_ENTRY_GDC MPP_MOD_GDC 80 #define PROC_ENTRY_AVS MPP_MOD_AVS 81 #define PROC_ENTRY_MCF MPP_MOD_MCF 82 #define PROC_ENTRY_PM MPP_MOD_PM 83 #define PROC_ENTRY_MFUSION MPP_MOD_MFUSION 84 #define PROC_ENTRY_VO_DEV MPP_MOD_VO_DEV 85 86 #define CMPI_PROC_SHOW CMPI_PROC_READ 87 typedef hi_s32 (*CMPI_PROC_READ)(struct osal_proc_dir_entry *entry); 88 typedef hi_s32 (*CMPI_PROC_WRITE)(char *buf, int count); 89 90 extern hi_s32 cmpi_log_init(hi_u32); 91 extern hi_void cmpi_log_exit(hi_void); 92 93 #endif /* __PROC_EXT_H__ */ 94