1
0
mirror of https://github.com/marqs85/ossc.git synced 2024-11-18 14:06:03 +00:00
ossc/software/sys_controller/it6613/hdmitx.h
2016-02-23 01:03:50 +02:00

120 lines
2.6 KiB
C

#ifndef _HDMITX_H_
#define _HDMITX_H_
#ifdef EXTERN_HDCPROM
#pragma message("Defined EXTERN_HDCPROM")
#endif // EXTERN_HDCPROM
#define SUPPORT_EDID
//#define SUPPORT_HDCP
#define SUPPORT_INPUTRGB
//#define SUPPORT_INPUTYUV444
//#define SUPPORT_INPUTYUV422
//#define SUPPORT_SYNCEMBEDDED
//#define SUPPORT_DEGEN
//#define SUPPORT_INPUTYUV // richard add
//#define INVERT_VID_LATCHEDGE //latch at falling edge
#ifdef SUPPORT_SYNCEMBEDDED
#pragma message("defined SUPPORT_SYNCEMBEDDED for Sync Embedded timing input or CCIR656 input.")
#endif
#ifndef _MCU_ // DSSSHA need large computation data rather than 8051 supported.
#define SUPPORT_DSSSHA
#endif
#if defined(SUPPORT_INPUTYUV444) || defined(SUPPORT_INPUTYUV422)
#define SUPPORT_INPUTYUV
#endif
/*#ifdef _MCU_
#include "mcu.h"
#else // not MCU
#include <windows.h>
#include <winioctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "ioaccess.h"
#include "install.h"
#include "pc.h"
#endif // MCU*/
#include "typedef.h"
#include "HDMI_COMMON.h"
/*typedef unsigned char BYTE;
#define _CODE const
#define SYS_STATUS unsigned int
#define TRUE 1
#define FALSE 0*/
//#define NULL 0
//typedef unsigned char bool;
#include "Altera_UP_SD_Card_Avalon_Interface_mod.h"
#include "sysconfig.h"
// Hardwired to CPU reset
#define HDMITX_Reset(x)
#ifndef SUPPORT_HDCP
static SYS_STATUS
HDCP_Authenticate()
{
return ER_SUCCESS;
}
static void
HDCP_ResetAuth()
{
return;
}
static void
HDCP_ResumeAuthentication()
{
return;
}
#endif
//#include "edid.h"
// #include "dss_sha.h"
#include "it6613_drv.h"
#define HDMITX_INSTANCE_MAX 1
#define SIZEOF_CSCMTX 18
#define SIZEOF_CSCGAIN 6
#define SIZEOF_CSCOFFSET 3
///////////////////////////////////////////////////////////////////////
// Output Mode Type
///////////////////////////////////////////////////////////////////////
#define RES_ASPEC_4x3 0
#define RES_ASPEC_16x9 1
#define F_MODE_REPT_NO 0
#define F_MODE_REPT_TWICE 1
#define F_MODE_REPT_QUATRO 3
#define F_MODE_CSC_ITU601 0
#define F_MODE_CSC_ITU709 1
///////////////////////////////////////////////////////////////////////
// ROM OFFSET
///////////////////////////////////////////////////////////////////////
#define ROMOFF_INT_TYPE 0
#define ROMOFF_INPUT_VIDEO_TYPE 1
#define ROMOFF_OUTPUT_AUDIO_MODE 8
#define ROMOFF_AUDIO_CH_SWAP 9
#define TIMER_LOOP_LEN 10
#define MS(x) (((x)+(TIMER_LOOP_LEN-1))/TIMER_LOOP_LEN) ; // for timer loop
#endif // _HDMITX_H_