1 /* 2 * Copyright (c) 2022 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 */ 15 #ifndef __MPI_HDMI_H__ 16 #define __MPI_HDMI_H__ 17 18 #include "hi_comm_hdmi.h" 19 20 #ifdef __cplusplus 21 #if __cplusplus 22 extern "C" { 23 #endif 24 #endif 25 26 hi_s32 HI_MPI_HDMI_Init(hi_void); 27 28 hi_s32 HI_MPI_HDMI_DeInit(hi_void); 29 30 hi_s32 HI_MPI_HDMI_Open(HI_HDMI_ID_E enHdmi); 31 32 hi_s32 HI_MPI_HDMI_Close(HI_HDMI_ID_E enHdmi); 33 34 hi_s32 HI_MPI_HDMI_GetSinkCapability(HI_HDMI_ID_E enHdmi, HI_HDMI_SINK_CAPABILITY_S *pstSinkCap); 35 36 hi_s32 HI_MPI_HDMI_SetAttr(HI_HDMI_ID_E enHdmi, const HI_HDMI_ATTR_S *pstAttr); 37 38 hi_s32 HI_MPI_HDMI_GetAttr(HI_HDMI_ID_E enHdmi, HI_HDMI_ATTR_S *pstAttr); 39 40 hi_s32 HI_MPI_HDMI_Start(HI_HDMI_ID_E enHdmi); 41 42 hi_s32 HI_MPI_HDMI_Stop(HI_HDMI_ID_E enHdmi); 43 44 hi_s32 HI_MPI_HDMI_Force_GetEDID(HI_HDMI_ID_E enHdmi, HI_HDMI_EDID_S *pstEdidData); 45 46 hi_s32 HI_MPI_HDMI_RegCallbackFunc(HI_HDMI_ID_E enHdmi, const HI_HDMI_CALLBACK_FUNC_S *pstCallbackFunc); 47 48 hi_s32 HI_MPI_HDMI_UnRegCallbackFunc(HI_HDMI_ID_E enHdmi, const HI_HDMI_CALLBACK_FUNC_S *pstCallbackFunc); 49 50 hi_s32 HI_MPI_HDMI_RegCECCallBackFunc(HI_HDMI_ID_E enHdmi, const HI_HDMI_CECCALLBACK_FUNC_S *pstCECCallback); 51 52 hi_s32 HI_MPI_HDMI_UnRegCECCallBackFunc(HI_HDMI_ID_E enHdmi, const HI_HDMI_CECCALLBACK_FUNC_S *pstCECCallback); 53 54 hi_s32 HI_MPI_HDMI_SetCECCommand(HI_HDMI_ID_E enHdmi, const HI_HDMI_CEC_CMD_S *pCECCmd); 55 56 hi_s32 HI_MPI_HDMI_CECStatus(HI_HDMI_ID_E enHdmi, HI_HDMI_CEC_STATUS_S *pStatus); 57 58 hi_s32 HI_MPI_HDMI_CEC_Enable(HI_HDMI_ID_E enHdmi); 59 60 hi_s32 HI_MPI_HDMI_CEC_Disable(HI_HDMI_ID_E enHdmi); 61 62 hi_s32 HI_MPI_HDMI_SetModParam(HI_HDMI_ID_E enHdmi, const HI_HDMI_MOD_PARAM_S *pstModParam); 63 64 hi_s32 HI_MPI_HDMI_GetModParam(HI_HDMI_ID_E enHdmi, HI_HDMI_MOD_PARAM_S *pstModParam); 65 66 /* Normally, these functions are not necessary */ 67 hi_s32 HI_MPI_HDMI_SetInfoFrame(HI_HDMI_ID_E enHdmi, const HI_HDMI_INFOFRAME_S *pstInfoFrame); 68 69 hi_s32 HI_MPI_HDMI_GetInfoFrame(HI_HDMI_ID_E enHdmi, 70 HI_HDMI_INFOFRAME_TYPE_E enInfoFrameType, HI_HDMI_INFOFRAME_S *pstInfoFrame); 71 72 #ifdef __cplusplus 73 #if __cplusplus 74 } 75 #endif 76 #endif 77 #endif /* __MPI_HDMI_H__ */ 78 79