hv_comm_Event.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. /**
  2. * @file hv_comm_Event.h
  3. * @brief Header file of mute module.
  4. *
  5. * @verbatim
  6. * ==============================================================================
  7. * ##### How to use #####
  8. * ==============================================================================
  9. *
  10. * @endverbatim
  11. *
  12. * @author HiView SoC Software Team
  13. * @version 1.0.0
  14. * @date 2022-08-23
  15. */
  16. #ifndef __SDK_COMMON_EVENT_INC_EVENT_H__
  17. #define __SDK_COMMON_EVENT_INC_EVENT_H__
  18. #include "hv_comm_DataType.h"
  19. #include "hv_comm_Define.h"
  20. #define HV_DPRX_INT_EVENT_MAX_SIZE 20
  21. /*定义必须和PM51中WakeUPType保持一致*/
  22. typedef enum _PowerOnReasonType
  23. {
  24. POWER_ON_REASON_TYPE_POWER_ON = 0,
  25. POWER_ON_REASON_TYPE_HDMI_CABLE = 1,
  26. POWER_ON_REASON_TYPE_DP_CABLE = 2,
  27. POWER_ON_REASON_TYPE_TYPE_C_CABLE = 3,
  28. POWER_ON_REASON_UP_TYPE_HDMI_TMDS = 4,
  29. POWER_ON_REASON_UP_TYPE_HDMI_CEC = 5,
  30. POWER_ON_REASON_TYPE_DP_AUX = 6,
  31. POWER_ON_REASON_TYPE_TYPE_C_CC_CMD = 7,
  32. POWER_ON_REASON_TYPE_KEY = 8,
  33. POWER_ON_REASON_TYPE_IR = 9,
  34. POWER_ON_REASON_DP_GPIO = 10,
  35. POWER_ON_REASON_TYPE_POWER_OFF = 11,
  36. }PowerOnReasonType;
  37. typedef enum _PowerEventId
  38. {
  39. POWER_EVENT_ID_ON_FIRST_ENTER_STATE = 0, /*第一次切换到新状态的辅助事件,状态机自动添加,可以处理也可以忽略*/
  40. POWER_EVENT_ID_POWER_ON = 1, /*上电启动的eventhub从51传到system的上电消息,携带上电原因,如果是typec唤醒则等待TYPEC解析出具体的上电原因*/
  41. POWER_EVENT_ID_APP_TIME_OUT_OR_NO_SIGNAL = 2, /*无信号待机或者OSD APP定时器超时待机*/
  42. POWER_EVENT_ID_SIGNAL_NORMAL = 3, /*在待机状态下突然接收到了信号,退出待机事件*/
  43. POWER_EVENT_ID_POWER_OFF_KEY = 4, /*按电源Key,产生的关机事件*/
  44. POWER_EVENT_ID_STSTEM_STANDBY_READY = 5, /*系统已准备好,可以进入待机 或关机*/
  45. #ifdef CONFIG_USER_TYPE_C_ON
  46. POWER_EVENT_ID_TYPE_C_DETAIL_PD_DONE = 6, /*typec唤醒则等待TYPEC解析出具体的上电原因--充电*/
  47. POWER_EVENT_ID_TYPE_C_DETAIL_VDM_DONE = 7, /*typec唤醒则等待TYPEC解析出具体的上电原因--DP模式*/
  48. POWER_EVENT_ID_TYPE_C_PLUG_OUT = 8, /*TypeC拔出事件*/
  49. #endif
  50. POWER_EVENT_ID_INVALID = 9,
  51. }PowerEventId;
  52. /***********************SettingParamId define begin************************************************/
  53. typedef enum _SettingParamId
  54. {
  55. SETTING_PARAM_ID_BRIGHTNESS = 0,
  56. SETTING_PARAM_ID_CONTRAST = 1,
  57. SETTING_PARAM_ID_SHARPNESS = 2,
  58. SETTING_PARAM_ID_COLOR_TEMPERATURE = 3,
  59. SETTING_PARAM_ID_HDR_SWITCH = 4,
  60. SETTING_PARAM_ID_ASPECT_RATIO = 5,
  61. SETTING_PARAM_ID_PXP_CONFIG = 6,
  62. SETTING_PARAM_ID_HDMI_VER = 7,
  63. SETTING_PARAM_ID_DP_VER = 8,
  64. SETTING_PARAM_ID_MAIN_SOURCE = 9,
  65. SETTING_PARAM_ID_SUB_SOURCE = 10,
  66. SETTING_PARAM_ID_PXP_AUDIO_SOURCE = 11,
  67. SETTING_PARAM_ID_VOLUME = 12,
  68. SETTING_PARAM_ID_AUDIO_TIME_DELAY = 13,
  69. SETTING_PARAM_ID_FREE_SYNC_SWITCH = 14,
  70. SETTING_PARAM_ID_DATA_PATH_RECONFIG = 15,
  71. SETTING_PARAM_ID_PIP_SUB_WINDOW_POSITION_RECONFIG = 16,
  72. SETTING_PARAM_ID_PIP_SUB_WINDOW_SIZE_RECONFIG = 17,
  73. SETTING_PARAM_ID_VIDEO_AUTO_SELECT_SOURCE_SWITCH = 18,
  74. SETTING_PARAM_ID_MAGNIFY_GLASS_SWITCH = 19,
  75. SETTING_PARAM_ID_MAGNIFY_GLASS_SET_RATIO = 20,
  76. SETTING_PARAM_ID_MAGNIFY_GLASS_SET_POS = 21,
  77. SETTING_PARAM_ID_MAGNIFY_GLASS_SET_SIZE = 22,
  78. SETTING_PARAM_ID_HUE_BY_R = 23,
  79. SETTING_PARAM_ID_HUE_BY_G = 24,
  80. SETTING_PARAM_ID_HUE_BY_B = 25,
  81. SETTING_PARAM_ID_HUE_BY_C = 26,
  82. SETTING_PARAM_ID_HUE_BY_M = 27,
  83. SETTING_PARAM_ID_HUE_BY_Y = 28,
  84. SETTING_PARAM_ID_SAT_BY_R = 29,
  85. SETTING_PARAM_ID_SAT_BY_G = 30,
  86. SETTING_PARAM_ID_SAT_BY_B = 31,
  87. SETTING_PARAM_ID_SAT_BY_C = 32,
  88. SETTING_PARAM_ID_SAT_BY_M = 33,
  89. SETTING_PARAM_ID_SAT_BY_Y = 34,
  90. SETTING_PARAM_ID_LUM_BY_R = 35,
  91. SETTING_PARAM_ID_LUM_BY_G = 36,
  92. SETTING_PARAM_ID_LUM_BY_B = 37,
  93. SETTING_PARAM_ID_LUM_BY_C = 38,
  94. SETTING_PARAM_ID_LUM_BY_M = 39,
  95. SETTING_PARAM_ID_LUM_BY_Y = 40,
  96. SETTING_PARAM_ID_MAIN_OR_SUB_SOURCE_SWAP = 41,
  97. SETTING_PARAM_ID_VIDEO_HFLIP = 42,
  98. SETTING_PARAM_ID_VIDEO_VFLIP = 43,
  99. SETTING_PARAM_ID_AUTO_UPDATE_EDID_WHILE_SEARCH_SRC = 44,
  100. SETTING_PARAM_ID_INP_PATTERN_FRAME_RATE = 45,
  101. SETTING_PARAM_ID_MAIN_MONTAGE = 46,
  102. SETTING_PARAM_ID_MAIN_OVER_SCAN = 47,
  103. SETTING_PARAM_ID_BRIGHT_FRAME = 48,
  104. SETTING_PARAM_ID_PRO_ESPORT_SWITCH = 49,
  105. }SettingParamId;
  106. /***********************SettingParamId define end************************************************/
  107. /***********************SystemEvent define begin************************************************/
  108. typedef enum _SystemRevEventType
  109. {
  110. SYSTEM_REV_EVENT_TYPE_POWER = 0,
  111. SYSTEM_REV_EVENT_TYPE_OSD_SETTING = 1,
  112. SYSTEM_REV_EVENT_TYPE_CHANNEL = 2,
  113. SYSTEM_REV_EVENT_TYPE_INPUTPORT = 3,
  114. SYSTEM_REV_EVENT_TYPE_PANEL = 4,
  115. SYSTEM_REV_EVENT_TYPE_TIMER = 5,
  116. SYSTEM_REV_EVENT_TYPE_DDCCI = 6,
  117. }SystemRevEventType;
  118. typedef struct _SystemEvent
  119. {
  120. SystemRevEventType enEventType;
  121. USHORT16 usEventId;
  122. UCHAR8 ucPortIndex;
  123. UCHAR8 ucChannelType;
  124. UINT32 uiValue;
  125. UCHAR8* buffer;
  126. }__attribute__((aligned(4)))SystemEvent;
  127. /***********************SystemEvent define end************************************************/
  128. /***********************Channel define begin*********************************************/
  129. typedef enum _ChanelEventId
  130. {
  131. CHANNEL_EVENT_ID_ON_FIRST_ENTER_STATE = 0,
  132. CHANNEL_EVENT_ID_START = 1,
  133. CHANNEL_EVENT_ID_PERIOD_SEARCH_TIME_OUT = 2,
  134. CHANNEL_EVENT_ID_CONFIG_CHECK_AV_STABLE = 3,
  135. /* ---------InputPort ==> Channel Begin--------- */
  136. CHANNEL_EVENT_ID_TIMING_CHANGE = 4,
  137. CHANNEL_EVENT_ID_COLOR_CHANGE = 5,
  138. CHANNEL_EVENT_ID_SIGNAL_LOSS = 6,
  139. CHANNEL_EVENT_ID_PLUG_OUT = 7,
  140. CHANNEL_EVENT_ID_TIMING_STABLE = 8,
  141. /* Only Used for AMD, NVIDA, And HF-VRR. */
  142. CHANNEL_EVENT_ID_RCV_VRR_INFO = 9,
  143. /* HF-VSI 中携带的ALLM更改时候通知 ;
  144. uiValue == 1 表示进入ALLM模式 ;
  145. uiValue == 0 表示退出ALLM模式 ;
  146. 自动低延时模式;
  147. */
  148. CHANNEL_EVENT_ID_ALLM_MODE_CHANGE = 10,
  149. /* Value is xType, 0 表示关闭HDR,非0表示开启HDR */
  150. CHANNEL_EVENT_ID_HDR_CHANGED = 11,
  151. /* ---------InputPort ==> Channel End--------- */
  152. CHANNEL_EVENT_ID_PXP_ENABLE = 12,
  153. CHANNEL_EVENT_ID_PXP_DISABLE = 13,
  154. CHANNEL_EVENT_ID_SUB_PXP_DISABLE = 14,
  155. CHANNEL_EVENT_ID_MAGNIFY_ENABLE = 15,
  156. CHANNEL_EVENT_ID_MAGNIFY_DISABLE = 16,
  157. CHANNEL_EVENT_ID_SUB_MAGNIFY_DISABLE = 17,
  158. CHANNEL_EVENT_ID_HDR_SWITCH = 18,
  159. CHANNEL_EVENT_ID_DATA_PATH_RECONFIG = 19,
  160. CHANNEL_EVENT_ID_NO_SIGNAL_CHECK_TIMER = 20,
  161. CHANNEL_EVENT_ID_MUTE_STATE_NORMAL = 21,
  162. CHANNEL_EVENT_ID_MUTE_CHECK_TIMER_OUT = 22,
  163. CHANNEL_EVENT_ID_AUDIO_MUTE_STATE_CHANGE = 23,
  164. CHANNEL_EVENT_ID_AUDIO_MUTE_CHECK_TIMER_OUT = 24,
  165. CHANNEL_EVENT_ID_SET_ASPECT_RATIO = 25,
  166. CHANNEL_EVENT_ID_RESELECT_VIDEO_SRC = 26,
  167. CHANNEL_EVENT_ID_MAIN_SUB_SOURCE_SWAP = 27,
  168. CHANNEL_EVENT_ID_BURN_IN_PERIOD_CHECK_TIMER = 28,
  169. CHANNEL_EVENT_ID_FREE_SYNC_SWITCH = 29,
  170. CHANNEL_EVENT_ID_MUTE_STATE_ABNORMAL = 30,
  171. CHANNEL_EVENT_ID_AUDIO_FS_CHANGE = 31,
  172. CHANNEL_EVENT_ID_AV_WATCHDOG = 32,
  173. CHANNEL_EVENT_ID_NO_SIGNAL_TO_SEARCH = 33,
  174. CHANNEL_EVENT_ID_PRO_ESPORT_SWITCH = 34,
  175. }ChanelEventId;
  176. typedef struct _ChannelEvent
  177. {
  178. USHORT16 usEventId;
  179. USHORT16 usValue; /*RX 给DPU发送消息portindex赋值给value,为了减少Queue占用RAM资源,复用了value*/
  180. ChannelType enChannelType;
  181. }__attribute__((aligned(4)))ChannelEvent;
  182. /***********************ChannelEvent define end*********************************************/
  183. /***********************InputPortEvent define begin*********************************************/
  184. typedef struct
  185. {
  186. UCHAR8 ucSize;
  187. USHORT16 usEventList[HV_DPRX_INT_EVENT_MAX_SIZE];
  188. }__attribute__((aligned(4)))DpRxIntEventList;
  189. typedef enum _InputPortEventId
  190. {
  191. /*HDMI start*/
  192. InputPortEventId_HDMI_IdleStart = 0,
  193. InputPortEventId_HDMI_OnFirstEnterState = 1,
  194. InputPortEventId_HDMI_VersionChange = 2,
  195. InputPortEventId_HDMI_IntGen = 3,
  196. InputPortEventId_HDMI_EnteredDispaly = 4,
  197. InputPortEventId_HDMI_ExitDisplay = 5,
  198. InputPortEventId_HDMI_HpdSetLow = 6,
  199. InputPortEventId_HDMI_PllChange = 7,
  200. InputPortEventId_HDMI_ClockStable = 8,
  201. InputPortEventId_HDMI_ClockUnStable = 9,
  202. InputPortEventId_HDMI_5VPlugIn = 10,
  203. InputPortEventId_HDMI_5VPlugOut = 11,
  204. InputPortEventId_HDMI_HpdSetHigh = 12,
  205. InputPortEventId_HDMI_TimingChange = 13,
  206. InputPortEventId_HDMI_TimingStable = 14,
  207. InputPortEventId_HDMI_CDOrCFOrVICChange = 15,
  208. InputPortEventId_HDMI_RatioChange = 16,
  209. InputPortEventId_HDMI_RRChange = 17,
  210. InputPortEventId_HDMI_CECRecvData = 18,
  211. InputPortEventId_HDMI_FRLRateChange = 19,
  212. InputPortEventId_HDMI_GCPAVMutePacket = 20,
  213. InputPortEventId_HDMI_AudioPacketChange = 21,
  214. InputPortEventId_HDMI_AVIPacketChange = 22,
  215. InputPortEventId_HDMI_VSIPacketRcv = 23,
  216. InputPortEventId_HDMI_VSIPacketChange = 24,
  217. InputPortEventId_HDMI_DRMPacketChange = 25,
  218. InputPortEventId_HDMI_DRMPacketRCV = 26,
  219. InputPortEventId_HDMI_AudioResetFifo = 27,
  220. InputPortEventId_HDMI_AudioCTSOrNChang = 28,
  221. InputPortEventId_HDMI_AudioStable = 29,
  222. InputPortEventId_HDMI_DecodeError = 30,
  223. InputPortEventId_HDMI_SPDChsChanged = 31,
  224. InputPortEventId_HDMI_SPDRcved = 32,
  225. InPutPortEventId_HDMI_VRRSwitch = 33, /* Value 0: Close, Value 1: Open, used for Update EDID for VRR */
  226. InputPortEventId_HDMI_EdidUpdateDone = 34, /* Value 0: update Failed, 1: update success */
  227. InputPortEventId_HDMI_PDNewEntry = 35,
  228. InputPortEventId_HDMI_PDUnderOverFlow = 36,
  229. InputPortEventId_HDMI_PhyConf = 37,
  230. InputPortEventId_HDMI_StandbyDDC = 38,
  231. InputPortEventId_HDMI_EMPPacketRcv = 39,
  232. InputPortEventId_HDMI_PktErrForHdcp = 40,
  233. InputPortEventId_HDMI_GcpCDChg = 41,
  234. InputPortEventId_HDMI_FastLocked = 42,
  235. InputPortEventId_HDMI_TrainDone = 43,
  236. InputPortEventId_HDMI_AudioFifoStart = 44,
  237. InputPortEventId_HDMI_Max = 45,
  238. //InputPortEventId_HDMI_Max = 48,
  239. /*HDMI end*/
  240. /*DP start*/
  241. InputPortEventId_DP_IdleStart = 81,
  242. InputPortEventId_DP_OnFirstEnterState = 82,
  243. InputPortEventId_DP_Interrupt = 83,
  244. InputPortEventId_DP_CableDisconnect = 84,
  245. InputPortEventId_DP_CableConnect = 85,
  246. InputPortEventId_DP_TrainingDone = 86,
  247. InputPortEventId_DP_TrainingFail = 87,
  248. InputPortEventId_DP_VideoStream = 88,
  249. InputPortEventId_DP_TimingChange = 89,
  250. InputPortEventId_DP_ColorChange = 90,
  251. InputPortEventId_DP_HdrChange = 91,
  252. InputPortEventId_DP_SdpRecv = 92,
  253. InputPortEventId_DP_VsyncEvent = 93,
  254. InputPortEventId_DP_VbIdAudioMuteFlag = 94,
  255. InputPortEventId_DP_TimerOut = 95,
  256. InputPortEventId_DP_UpdateEdid = 96,
  257. InputPortEventId_DP_VersionChange = 97,
  258. InPutPortEventId_DP_VrrSwitch = 98, /* Value 0: Close, Value 1: Open, used for Update EDID for VRR */
  259. InputPortEventId_DP_Mccs = 99,
  260. InputPortEventId_DP_CableInt = 100,
  261. InputPortEventId_DP_VrrChange = 101,
  262. InputPortEventId_DP_AdaptiveSyncStart = 102,
  263. InputPortEventId_DP_AdaptiveSyncEnd = 103,
  264. InputPortEventId_DP_Sdp2DepthThro = 104,
  265. InputPortEventId_DP_WriteTimingIgnore = 105,
  266. InputPortEventId_DP_WakeUp = 106,
  267. InputPortEventId_DP_AudioMuteChg = 107,
  268. InputPortEventId_DP_AudioStart = 108,
  269. InputPortEventId_DP_MAX,
  270. /*DP end*/
  271. InputPortEventId_HDCP_IntGen = 200
  272. }InputPortEventId;
  273. /***********************InputPortEvent define end*********************************************/
  274. /***********************OsdEvent define begin************************************************/
  275. typedef enum _OsdEventId
  276. {
  277. OSD_EVENT_KEY_PRESS,
  278. OSD_EVENT_KEY_HOLD,
  279. OSD_EVENT_KEY_RELEASE,
  280. OSD_EVENT_KEY_DOUBLE_CLICK,
  281. OSD_EVENT_IR_KEY,
  282. OSD_EVENT_IR_REPEAT_KEY,
  283. OSD_EVENT_KEY_MAX,
  284. OSD_EVENT_SHOW_LOGO = OSD_EVENT_KEY_MAX,
  285. OSD_EVENT_POWER_ON,
  286. OSD_EVENT_POWER_OFF,
  287. OSD_EVENT_POWER_STANDBY,
  288. OSD_EVENT_LOCK,
  289. OSD_EVENT_SIGNAL_READY,
  290. OSD_EVENT_SIGNAL_STATE_CHANGE,
  291. OSD_EVENT_SIGNAL_PARAM_CHANGE,
  292. OSD_EVENT_SIGNAL_TIMING_NOT_SUPPORT,
  293. OSD_EVENT_SIGNAL_PLUG_IN,
  294. OSD_EVENT_SIGNAL_PLUG_OUT,
  295. OSD_EVENT_SYNC,
  296. OSD_EVENT_ANIMITION,
  297. OSD_EVENT_MCCS,
  298. OSD_EVENT_FACTORY_ENTER,
  299. OSD_EVENT_FACTORY_EXIT,
  300. OSD_EVENT_FACTORY_AGING_REFRESH,
  301. OSD_EVENT_FACTORY_AGING_EXIT,
  302. OSD_EVENT_USB_OTA,
  303. OSD_EVENT_HIDE_ALL,
  304. OSD_EVENT_TEST,
  305. OSD_EVENT_CUSTOM1,
  306. OSD_EVENT_CUSTOM2,
  307. OSD_EVENT_CUSTOM3,
  308. OSD_EVENT_MAX,
  309. } OsdEventId;
  310. /***********************DDCCI Event define begin************************************************/
  311. typedef enum _DDCCIEventId
  312. {
  313. DDCCI_EVENT_RCV, /* Host --> Monitor */
  314. DDCCI_EVENT_SND, /* Monitor --> Host */
  315. DDCCIEVENT_MAX,
  316. } DDCCIEventId;
  317. typedef enum _OsdEvtKeyValue
  318. {
  319. OSDEVT_KEY_UP,
  320. OSDEVT_KEY_DOWN,
  321. OSDEVT_KEY_LEFT,
  322. OSDEVT_KEY_RIGHT,
  323. OSDEVT_KEY_ENTER,
  324. OSDEVT_KEY_EXIT,
  325. OSDEVT_KEY_POWER,
  326. OSDEVT_KEY_HOTKEY1,
  327. OSDEVT_KEY_HOTKEY2,
  328. OSDEVT_KEY_HOTKEY3,
  329. OSDEVT_KEY_CUSTOM1,
  330. OSDEVT_KEY_CUSTOM2,
  331. OSDEVT_KEY_CUSTOM3,
  332. OSDEVT_KEY_CUSTOM4,
  333. OSDEVT_KEY_CUSTOM5,
  334. OSDEVT_KEY_NONE,
  335. OSDEVT_KEY_MAX = OSDEVT_KEY_NONE,
  336. } OsdEvtKeyValue;
  337. typedef struct _OsdEvent
  338. {
  339. USHORT16 usEventId;
  340. USHORT16 usValue;
  341. } __attribute__((aligned(4)))OsdEvent;
  342. /***********************OsdEvent define end************************************************/
  343. /***********************Event define begin************************************************/
  344. typedef USHORT16 EventId;
  345. typedef enum _EventHubRevMsgId
  346. {
  347. EVENT_HUB_REV_MSG_ID_ENTER_STANDBY,
  348. EVENT_HUB_REV_MSG_ID_ENTER_POWEROFF,
  349. EVENT_HUB_REV_MSG_ID_BOOTUP_TOPM,
  350. EVENT_HUB_REV_MSG_ID_PMLED_OFF,
  351. EVENT_HUB_REV_MSG_ID_PMLED_ON,
  352. EVENT_HUB_REV_MSG_ID_PMLED_BREATH,
  353. EVENT_HUB_REV_MSG_ID_PMLED_ON1,
  354. EVENT_HUB_REV_MSG_ID_PMLED_ON2,
  355. EVENT_HUB_REV_MSG_ID_PMLED_ON3,
  356. EventHubRevMsgId_Max,
  357. }EventHubRevMsgId;
  358. typedef struct _Event
  359. {
  360. EventId usEventId;
  361. USHORT16 usValue;
  362. }__attribute__((aligned(4)))Event;
  363. /***********************Event define end************************************************/
  364. /***********************Urgent Event define begin************************************************/
  365. typedef struct _HdcpRxEvent
  366. {
  367. LinkPortIndex enPortIndex;
  368. UINT32 uiHdcpRxEvt;
  369. UINT32 uiPortMask;
  370. }__attribute__((aligned(4)))HdcpRxEvent;
  371. typedef enum _UrgentRevEventType
  372. {
  373. URGENT_REV_EVENT_TYPE_HDCP_HDMI,
  374. URGENT_REV_EVENT_TYPE_HDCP_DP,
  375. URGENT_REV_EVENT_TYPE_CONTRAST,
  376. URGENT_REV_EVENT_TYPE_LDC
  377. }UrgentRevEventType;
  378. typedef struct _UrgentEvent
  379. {
  380. UrgentRevEventType enEventType;
  381. USHORT16 usEventId;
  382. USHORT16 usPortIndex;
  383. UINT32 uiValue;
  384. UCHAR8* ucbuffer;
  385. }__attribute__((aligned(4)))UrgentEvent;
  386. /***********************hdcp Event define end************************************************/
  387. /***********************InputPortEvent Event define begin************************************************/
  388. typedef struct _InputPortEvent
  389. {
  390. LinkPortIndex enPortIndex;
  391. USHORT16 usEventId;
  392. UCHAR8* buffer;
  393. }__attribute__((aligned(4)))InputPortEvent;
  394. /***********************InputPortEvent Event define begin************************************************/
  395. /***********************Panel Event define begin************************************************/
  396. typedef struct _PanelEvent
  397. {
  398. USHORT16 usEventId;
  399. USHORT16 usValue;
  400. }__attribute__((aligned(4)))PanelEvent;
  401. typedef enum _PanelEventId
  402. {
  403. PANEL_EVENT_ID_PANEL_POWER_ON = 0, /* Panel开始上电 */
  404. PANEL_EVENT_ID_TRAINING_START = 1, /* Panel上电完成,开始training*/
  405. PANEL_EVENT_ID_BLK_ON = 2, /* 开始传输有效数据,背光上电 */
  406. PANEL_EVENT_ID_IDLE_PATTERN = 3, /* 开始发送IDLE pattern*/
  407. PANEL_EVENT_ID_BLK_OFF = 4, /* 关闭背光*/
  408. PANEL_EVENT_ID_DATA_OFF = 5, /* 关闭数据*/
  409. PANEL_EVENT_ID_POWER_OFF = 6, /* Panel断电*/
  410. PANEL_EVENT_ID_CHECK_TRAINING_STATUS = 7, /* 等待panel training ok*/
  411. PANEL_EVENT_ID_EDP_BACK_LIGHT = 8, /* EDP_BACK_LIGHT*/
  412. PANEL_EVENT_ID_SPI_BACK_LIGHT = 9, /* SPI_BACK_LIGHT*/
  413. PANEL_EVENT_ID_ON_FIRST_ENTER_STATE = 10,
  414. }PanelEventId;
  415. /***********************Panel Event define end************************************************/
  416. /***********************TypecEvent define begin************************************************/
  417. #ifdef CONFIG_USER_TYPE_C_ON
  418. typedef enum _TypecEventId
  419. {
  420. TYPEC_EVENT_GO,
  421. TYPEC_EVENT_REPLUG,
  422. TYPEC_EVENT_STOP,
  423. TYPEC_EVENT_MAX,
  424. } TypecEventId;
  425. typedef struct _TypecEvent
  426. {
  427. USHORT16 usEventId;
  428. USHORT16 usValue;
  429. } __attribute__((aligned(4)))TypecEvent;
  430. #endif
  431. /***********************Typec Event define end************************************************/
  432. /***********************USB OTA Event define begin************************************************/
  433. #ifdef CONFIG_USER_USB_OTA_ON
  434. typedef enum _UsbEventId
  435. {
  436. USB_EVENT_DETECT_PORT = 0, //触发端口检测,预留
  437. USB_EVENT_NORMAL_UPGRADE = 1, //启动交互式升级
  438. USB_EVENT_UPGRADE_CONFIRM = 2, //用户“确认”要执行升级
  439. USB_EVENT_UPGRADE_CANCEL = 3, //用户“取消”升级
  440. USB_EVENT_FORCE_UPGRADE = 4, //启动强制升级,收到这个消息则检测U盘并在发现文件后自动更新
  441. USB_EVENT_MAX,
  442. } UsbEventId;
  443. typedef struct _UsbEvent
  444. {
  445. USHORT16 usEventId;
  446. USHORT16 usValue;
  447. } __attribute__((aligned(4)))UsbEvent;
  448. #endif
  449. /***********************USB OTA Event define end************************************************/
  450. #endif