umf_ioctl.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. #ifndef _UMF_IOCTL_H_
  2. #define _UMF_IOCTL_H_
  3. #include "drv_adc_external.h"
  4. #include "drv_kmf_interface.h"
  5. #define CLEAR_HDMI_WAKE_SOURCE 0xff
  6. typedef enum _InputSrc_t {
  7. INPUTSRC_ATV,
  8. INPUTSRC_DTV,
  9. INPUTSRC_SCART1,
  10. INPUTSRC_SCART2,
  11. INPUTSRC_AV1,
  12. INPUTSRC_AV2,
  13. INPUTSRC_AV3,
  14. INPUTSRC_SV1,
  15. INPUTSRC_SV2,
  16. INPUTSRC_SV3,
  17. INPUTSRC_COMP1,
  18. INPUTSRC_COMP2,
  19. INPUTSRC_COMP3, //Only 506 chip support YPP3 source
  20. INPUTSRC_HDMI1,
  21. INPUTSRC_HDMI2,
  22. INPUTSRC_HDMI3,
  23. INPUTSRC_HDMI4,
  24. INPUTSRC_PC,
  25. INPUTSRC_USB,
  26. INPUTSRC_MUSIC,
  27. INPUTSRC_PVR,
  28. INPUTSRC_KOK,
  29. INPUTSRC_MPEG,
  30. INPUTSRC_MEDIA,
  31. INPUTSRC_ANDROID,
  32. INPUTSRC_ANYPLEX,
  33. INPUTSRC_EMENU,
  34. #ifdef CONFIG_DVD_COMBO
  35. INPUTSRC_DVD,
  36. #endif
  37. INPUTSRC_END,
  38. INPUTSRC_SCART_AUTO,
  39. INPUTSRC_SCART_CVBS,
  40. INPUTSRC_SCART_SVIDEO,
  41. INPUTSRC_SCART_RGB,
  42. #ifdef CONFIG_BLUETOOTH_SUPPORT
  43. INPUTSRC_BLUETOOTH,
  44. #endif
  45. #ifdef CONFIG_MULTIMEDIA1_SUPPORT
  46. INPUTSRC_MEDIA1,
  47. #endif
  48. #if defined(CONFIG_SUPPORT_NES_GAME) || defined(CONFIG_OSD_GAME_SUPPORT)
  49. INPUTSRC_GAME,
  50. #endif
  51. #ifdef CONFIG_SUPPORT_USB_MCAST
  52. INPUTSRC_NET,
  53. #endif
  54. INPUTSRC_DISABLE
  55. }InputSrc_t;
  56. typedef enum {
  57. Module_TS_power =0,
  58. Module_DTV_power,
  59. Module_CVD2_Power,
  60. Module_ADC_power,
  61. Module_HDMI_Power,
  62. Module_TunerDTV_Power,
  63. Module_TunerATV_Power,
  64. Module_TunerAV_Power,
  65. }MODULE_POWER;
  66. #if (CONFIG_CHIPID != 0x330)
  67. #define LVDSFORMATREQTYPENUM 7
  68. #else
  69. #define LVDSFORMATREQTYPENUM 5
  70. #endif
  71. typedef enum{
  72. LVDS_PANEL_BIT = 0x1,
  73. LVDS_TYPE = 0x2,
  74. LVDS_DUAL_CHANNEL_ENABLE = 0x4,
  75. LVDS_CHANNEL_SWAP_ENABLE = 0x8,
  76. LVDS_PORT_AB_VALUE = 0x10,
  77. LVDS_SWING_DATA = 0x20,
  78. LVDS_SWING_CLK = 0x40,
  79. LVDS_SWING_OFFSET = 0x80,
  80. }LVDSFormatReqType_t;
  81. typedef enum {
  82. LVDS_IDX_Panl_ColorDepth,
  83. LVDS_IDX_Panl_LVDSConverter,
  84. LVDS_IDX_Panl_LVDSSingleDual,
  85. LVDS_IDX_Panl_LVDSChannelSwap,
  86. LVDS_IDX_SWING_DATA,
  87. LVDS_IDX_SWING_CLK,
  88. LVDS_IDX_SWING_OFFSET,
  89. } LVDSFormatIdx_t;
  90. typedef struct _LVDSFormatReq_t
  91. {
  92. UINT8 bSet;
  93. UINT8 reqType;
  94. UINT8 LVDSValue[LVDSFORMATREQTYPENUM];
  95. }LVDSFormatReq_t;
  96. enum {
  97. EMICMD_DRAMSSC,
  98. EMICMD_DRAMMODE,
  99. EMICMD_LVDSSSC,
  100. EMICMD_UFRCDRAM,
  101. };
  102. void Cmd_SetKMFgVal(Kmfgvar userEvent);
  103. void tv_Set_Source(unsigned int input_type, unsigned char linkno);
  104. void tv_Set_Source_Pin_Config(unsigned int input_type, InputVideoConf_st InputSrcPin);
  105. /*****************************************************************************
  106. ** Date : 2013_0917 ChungCheng
  107. ** FUNCTION : tv_SetBootTime
  108. **
  109. ** DESCRIPTION : Set boot timer
  110. **
  111. ** PARAMETERS :
  112. ** (1) range :
  113. ** (2) value : second
  114. *****************************************************************************/
  115. void tv_SetBootTime(unsigned int Wsec);
  116. void tv_SetBootTimeWithType(unsigned int Wsec, unsigned char type);
  117. /*****************************************************************************
  118. ** Date : 2013_0917 ChungCheng
  119. ** FUNCTION : tv_GetBootType
  120. **
  121. ** DESCRIPTION : Get boot type
  122. **
  123. ** PARAMETERS :
  124. **
  125. ** RETURN : 0: manual boot
  126. ** 1: auto boot
  127. *****************************************************************************/
  128. unsigned char tv_GetBootType(void);
  129. UINT32 SW_Timer_Get_Jiffies(void);
  130. void tv_SetPowerSaving(void);
  131. void Cmd_SetPanelBacklightPower(unsigned char value);
  132. void Cmd_SetPanelPower(BOOL status);
  133. UINT32 SW_Timer_Get_HZ(void);
  134. void tv_UpdateDBGStatus(void);
  135. void Cmd_SetLcdBackLight(Backlight_t BacklightSetting);
  136. #ifdef CONFIG_EXTRA_PWM_CONTROL_FOR_FAN
  137. void Cmd_SetExtraPwm(ExtraPwm_t ExtraPwmSetting);
  138. #endif
  139. BOOL CMD_GetACPowerONFlag(void);
  140. void Cmd_SetPanlBackLight( UINT8 u8Backlight);
  141. void Cmd_SetPanlBackLightPolarity( UINT8 u8BackLight_Polarity);
  142. void Cmd_SetPanlDutyPWM( UINT16 u16DutyPWM);
  143. void Cmd_SetPanlChannelSetting( UINT32 u32Value);
  144. void tv_SetRebootAfterPowerOff(void);
  145. void tv_SetBootRomHideLogo(UINT32 status);
  146. void tv_SetBootRomHideSecondLogo(UINT32 status);
  147. void tv_SetPanelInverse(BOOL status);
  148. void tv_SetPanelIndex(UINT8 index);
  149. void tv_SetPanelResolution(UINT32 index);
  150. UINT8 tv_GetPanelIndex(void);
  151. void tv_SetBootRomAutoPowerOn(UINT8 status);
  152. #ifdef CONFIG_DVD_COMBO
  153. void tv_SendDVDKeycode(UINT8 protocol, UINT32 keycode);
  154. #endif
  155. void tv_SetUartATx(BOOL value);
  156. void tv_SetUartATxNotSaveShareData(BOOL value);
  157. void tv_SetEMIUTIL(UINT8 cmd, UINT8 mode);
  158. void tv_SetPWMFreq(UINT8 value);
  159. UINT32 tv_AccessLVDSFormat(LVDSFormatReq_t* req);
  160. UINT32 tv_InitLVDSFormat(void);
  161. UINT32 tv_SetModifiedCount(UINT32 value);
  162. INT8 *tv_GetKernelTimeInfo(void);
  163. INT8 tv_GetUsbPath(INT8 *usbPath);
  164. int tv_GetSfsFileSize(UINT16 index);
  165. void tv_SetGammaTableID(UINT8 index);
  166. void tv_SetVIPTableID(UINT8 index);
  167. void tv_SetCLUTTableID(UINT8 index);
  168. UINT8 tv_GetPanelIndexFromRegister(void);
  169. int tv_GetSfsObjFileSize(UINT16 index);
  170. void tv_SetKeypadPowerKey(UINT32 KPPowerKey);
  171. void tv_SetStandbyLEDPWMParam(UINT32 Period, UINT32 Duty);
  172. void tv_GetStandbyLEDPWMParam(UINT32 *Period, UINT32 *Duty);
  173. void tv_SetPWMParam(UINT8 PWMNum, UINT32 Period, UINT8 Duty);
  174. void tv_SetKeypadPowerKey(UINT32 KPPowerKey);
  175. void tv_setFactoryRemote(UINT8 status);
  176. void tv_DISSAVE_BOOTSHAREDATA(void);
  177. #ifdef CONFIG_CIPLUS_SUPPORT
  178. void tv_EraseCIKey();
  179. #endif
  180. void tv_EraseHDCPKey();
  181. #ifdef CONFIG_SUPPORT_STORE_HDCP2X_TO_FLASH
  182. void tv_EraseHDCP2XKey();
  183. #endif
  184. void tv_GetReseveAddr(ReserveMemInfo_t *ReserveMemInfo);
  185. void tv_SWResetUSB(void);
  186. void tv_DisableSingleLED(UINT32 status);
  187. void tv_SetCECOnOff(UINT8 OnOffFlag);
  188. void tv_SetDeviceID(UINT8 devID);
  189. #ifdef CONFIG_HDMI_NOSIGNAL_POWEROFF_HDMI_WAKE_UP
  190. void tv_SetBootRomHdmiSrc(UINT8 linkno);
  191. #endif
  192. void tv_SetBootRomMenuSrcType(UINT8 type);
  193. #ifdef CONFIG_DDC_CI_SUPPORT
  194. void tv_SetDDCCIEnable(BOOL enable);
  195. void tv_FBOsdLanguage(UINT8 Language);
  196. #endif
  197. void tv_SetNewControlValue(UINT8 status);
  198. #endif