#ifndef _UMF_IOCTL_H_ #define _UMF_IOCTL_H_ #include "drv_adc_external.h" #include "drv_kmf_interface.h" #define CLEAR_HDMI_WAKE_SOURCE 0xff typedef enum _InputSrc_t { INPUTSRC_ATV, INPUTSRC_DTV, INPUTSRC_SCART1, INPUTSRC_SCART2, INPUTSRC_AV1, INPUTSRC_AV2, INPUTSRC_AV3, INPUTSRC_SV1, INPUTSRC_SV2, INPUTSRC_SV3, INPUTSRC_COMP1, INPUTSRC_COMP2, INPUTSRC_COMP3, //Only 506 chip support YPP3 source INPUTSRC_HDMI1, INPUTSRC_HDMI2, INPUTSRC_HDMI3, INPUTSRC_HDMI4, INPUTSRC_PC, INPUTSRC_USB, INPUTSRC_MUSIC, INPUTSRC_PVR, INPUTSRC_KOK, INPUTSRC_MPEG, INPUTSRC_MEDIA, INPUTSRC_ANDROID, INPUTSRC_ANYPLEX, INPUTSRC_EMENU, #ifdef CONFIG_DVD_COMBO INPUTSRC_DVD, #endif INPUTSRC_END, INPUTSRC_SCART_AUTO, INPUTSRC_SCART_CVBS, INPUTSRC_SCART_SVIDEO, INPUTSRC_SCART_RGB, #ifdef CONFIG_BLUETOOTH_SUPPORT INPUTSRC_BLUETOOTH, #endif #ifdef CONFIG_MULTIMEDIA1_SUPPORT INPUTSRC_MEDIA1, #endif #if defined(CONFIG_SUPPORT_NES_GAME) || defined(CONFIG_OSD_GAME_SUPPORT) INPUTSRC_GAME, #endif #ifdef CONFIG_SUPPORT_USB_MCAST INPUTSRC_NET, #endif INPUTSRC_DISABLE }InputSrc_t; typedef enum { Module_TS_power =0, Module_DTV_power, Module_CVD2_Power, Module_ADC_power, Module_HDMI_Power, Module_TunerDTV_Power, Module_TunerATV_Power, Module_TunerAV_Power, }MODULE_POWER; #if (CONFIG_CHIPID != 0x330) #define LVDSFORMATREQTYPENUM 7 #else #define LVDSFORMATREQTYPENUM 5 #endif typedef enum{ LVDS_PANEL_BIT = 0x1, LVDS_TYPE = 0x2, LVDS_DUAL_CHANNEL_ENABLE = 0x4, LVDS_CHANNEL_SWAP_ENABLE = 0x8, LVDS_PORT_AB_VALUE = 0x10, LVDS_SWING_DATA = 0x20, LVDS_SWING_CLK = 0x40, LVDS_SWING_OFFSET = 0x80, }LVDSFormatReqType_t; typedef enum { LVDS_IDX_Panl_ColorDepth, LVDS_IDX_Panl_LVDSConverter, LVDS_IDX_Panl_LVDSSingleDual, LVDS_IDX_Panl_LVDSChannelSwap, LVDS_IDX_SWING_DATA, LVDS_IDX_SWING_CLK, LVDS_IDX_SWING_OFFSET, } LVDSFormatIdx_t; typedef struct _LVDSFormatReq_t { UINT8 bSet; UINT8 reqType; UINT8 LVDSValue[LVDSFORMATREQTYPENUM]; }LVDSFormatReq_t; enum { EMICMD_DRAMSSC, EMICMD_DRAMMODE, EMICMD_LVDSSSC, EMICMD_UFRCDRAM, }; void Cmd_SetKMFgVal(Kmfgvar userEvent); void tv_Set_Source(unsigned int input_type, unsigned char linkno); void tv_Set_Source_Pin_Config(unsigned int input_type, InputVideoConf_st InputSrcPin); /***************************************************************************** ** Date : 2013_0917 ChungCheng ** FUNCTION : tv_SetBootTime ** ** DESCRIPTION : Set boot timer ** ** PARAMETERS : ** (1) range : ** (2) value : second *****************************************************************************/ void tv_SetBootTime(unsigned int Wsec); void tv_SetBootTimeWithType(unsigned int Wsec, unsigned char type); /***************************************************************************** ** Date : 2013_0917 ChungCheng ** FUNCTION : tv_GetBootType ** ** DESCRIPTION : Get boot type ** ** PARAMETERS : ** ** RETURN : 0: manual boot ** 1: auto boot *****************************************************************************/ unsigned char tv_GetBootType(void); UINT32 SW_Timer_Get_Jiffies(void); void tv_SetPowerSaving(void); void Cmd_SetPanelBacklightPower(unsigned char value); void Cmd_SetPanelPower(BOOL status); UINT32 SW_Timer_Get_HZ(void); void tv_UpdateDBGStatus(void); void Cmd_SetLcdBackLight(Backlight_t BacklightSetting); #ifdef CONFIG_EXTRA_PWM_CONTROL_FOR_FAN void Cmd_SetExtraPwm(ExtraPwm_t ExtraPwmSetting); #endif BOOL CMD_GetACPowerONFlag(void); void Cmd_SetPanlBackLight( UINT8 u8Backlight); void Cmd_SetPanlBackLightPolarity( UINT8 u8BackLight_Polarity); void Cmd_SetPanlDutyPWM( UINT16 u16DutyPWM); void Cmd_SetPanlChannelSetting( UINT32 u32Value); void tv_SetRebootAfterPowerOff(void); void tv_SetBootRomHideLogo(UINT32 status); void tv_SetBootRomHideSecondLogo(UINT32 status); void tv_SetPanelInverse(BOOL status); void tv_SetPanelIndex(UINT8 index); void tv_SetPanelResolution(UINT32 index); UINT8 tv_GetPanelIndex(void); void tv_SetBootRomAutoPowerOn(UINT8 status); #ifdef CONFIG_DVD_COMBO void tv_SendDVDKeycode(UINT8 protocol, UINT32 keycode); #endif void tv_SetUartATx(BOOL value); void tv_SetUartATxNotSaveShareData(BOOL value); void tv_SetEMIUTIL(UINT8 cmd, UINT8 mode); void tv_SetPWMFreq(UINT8 value); UINT32 tv_AccessLVDSFormat(LVDSFormatReq_t* req); UINT32 tv_InitLVDSFormat(void); UINT32 tv_SetModifiedCount(UINT32 value); INT8 *tv_GetKernelTimeInfo(void); INT8 tv_GetUsbPath(INT8 *usbPath); int tv_GetSfsFileSize(UINT16 index); void tv_SetGammaTableID(UINT8 index); void tv_SetVIPTableID(UINT8 index); void tv_SetCLUTTableID(UINT8 index); UINT8 tv_GetPanelIndexFromRegister(void); int tv_GetSfsObjFileSize(UINT16 index); void tv_SetKeypadPowerKey(UINT32 KPPowerKey); void tv_SetStandbyLEDPWMParam(UINT32 Period, UINT32 Duty); void tv_GetStandbyLEDPWMParam(UINT32 *Period, UINT32 *Duty); void tv_SetPWMParam(UINT8 PWMNum, UINT32 Period, UINT8 Duty); void tv_SetKeypadPowerKey(UINT32 KPPowerKey); void tv_setFactoryRemote(UINT8 status); void tv_DISSAVE_BOOTSHAREDATA(void); #ifdef CONFIG_CIPLUS_SUPPORT void tv_EraseCIKey(); #endif void tv_EraseHDCPKey(); #ifdef CONFIG_SUPPORT_STORE_HDCP2X_TO_FLASH void tv_EraseHDCP2XKey(); #endif void tv_GetReseveAddr(ReserveMemInfo_t *ReserveMemInfo); void tv_SWResetUSB(void); void tv_DisableSingleLED(UINT32 status); void tv_SetCECOnOff(UINT8 OnOffFlag); void tv_SetDeviceID(UINT8 devID); #ifdef CONFIG_HDMI_NOSIGNAL_POWEROFF_HDMI_WAKE_UP void tv_SetBootRomHdmiSrc(UINT8 linkno); #endif void tv_SetBootRomMenuSrcType(UINT8 type); #ifdef CONFIG_DDC_CI_SUPPORT void tv_SetDDCCIEnable(BOOL enable); void tv_FBOsdLanguage(UINT8 Language); #endif void tv_SetNewControlValue(UINT8 status); #endif