• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef __DRV_HDMI_COMPATIBILITY_H__
19 #define __DRV_HDMI_COMPATIBILITY_H__
20 
21 #include "drv_hdmi_common.h"
22 #include "drv_hdmi_intf.h"
23 
24 typedef struct {
25     hi_bool avi_use_gen5;
26     hi_bool avi_use_gen5_debug;
27     hi_u8   ctl_type_config;
28 } compatibility_info;
29 
30 hi_s32 drv_hdmi_compat_hdcp_ms_get(hdmi_device_id hdmi_id, hi_u64 *wait_ms);
31 
32 hi_s32 drv_hdmi_compat_avmute_get(hdmi_device_id hdmi_id, hi_bool avmute, hdmi_avmute_cfg *avmute_cfg);
33 
34 hi_bool drv_hdmi_compat_scdc_in_start_get(hdmi_device_id hdmi_id);
35 
36 hi_s32 drv_hdmi_compat_delay_get(hdmi_device_id hdmi_id, hdmi_delay *delay);
37 
38 hi_s32 drv_hdmi_compat_stop_delay(hdmi_device_id hdmi_id);
39 
40 compatibility_info *compat_info_get(hdmi_device_id hdmi_id);
41 
42 hi_s32 compatibility_info_update(hdmi_device_id hdmi_id);
43 
44 hi_void compatibility_info_default_set(hdmi_device_id hdmi_id);
45 
46 #endif  /* __DRV_HDMI_COMPATIBILITY_H__ */
47 
48