1 ///*****************************************
2 // Copyright (C) 2009-2014
3 // ITE Tech. Inc. All Rights Reserved
4 // Proprietary and Confidential
5 ///*****************************************
6 // @file >cat66121_sys.h<
7 // @author Jau-Chih.Tseng@ite.com.tw
9 // @fileversion: cat66121_SAMPLEINTERFACE_1.12
10 //******************************************/
12 #ifndef _CAT66121_SYS_H_
13 #define _CAT66121_SYS_H_
14 ////////////////////////////////////////////////////////////////////////////////
16 ////////////////////////////////////////////////////////////////////////////////
18 typedef enum tagHDMI_Video_Type {
40 typedef enum tagHDMI_Aspec {
45 typedef enum tagHDMI_OutputColorMode {
49 } HDMI_OutputColorMode ;
51 typedef enum tagHDMI_Colorimetry {
56 typedef enum tagMODE_ID{
140 ///////////////////////////////////////////////////////////////////////
142 ///////////////////////////////////////////////////////////////////////
144 #define RES_ASPEC_4x3 0
145 #define RES_ASPEC_16x9 1
146 #define F_MODE_REPT_NO 0
147 #define F_MODE_REPT_TWICE 1
148 #define F_MODE_REPT_QUATRO 3
149 #define F_MODE_CSC_ITU601 0
150 #define F_MODE_CSC_ITU709 1
152 /* Follow prototypes need accomplish by ourself */
153 int cat66121_detect_device(void);
154 int cat66121_sys_init(struct hdmi *hdmi);
155 int cat66121_sys_unplug(struct hdmi *hdmi);
156 int cat66121_sys_detect_hpd(struct hdmi *hdmi, int *hpdstatus);
157 int cat66121_sys_detect_sink(struct hdmi *hdmi, int *sink_status);
158 int cat66121_sys_read_edid(struct hdmi *hdmi, int block, unsigned char *buff);
159 int cat66121_sys_config_video(struct hdmi *hdmi, int vic, int input_color, int output_color);
160 int cat66121_sys_config_audio(struct hdmi *hdmi, struct hdmi_audio *audio);
161 int cat66121_sys_config_hdcp(struct hdmi *hdmi, int enable);
162 int cat66121_sys_enalbe_output(struct hdmi *hdmi, int enable);
163 int cat66121_sys_check_status(struct hdmi *hdmi);
164 #endif // _cat66121_SYS_H_