hdmi_hpd.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef __HDMI_HPD_H__
  2. #define __HDMI_HPD_H__
  3. #include "drv_types.h"
  4. #include <linux/kernel.h> // BOOL
  5. #include "hdmi_mapping.h"
  6. #include <Customization.h>
  7. #include "cec.h"
  8. typedef enum
  9. {
  10. DRV_HDMI_PORT_A = 0x01,
  11. DRV_HDMI_PORT_B = 0x02,
  12. DRV_HDMI_PORT_C = 0x04,
  13. DRV_HDMI_PORT_D = 0x08,
  14. DRV_HDMI_PORT_ALL = 0xff,
  15. } DRV_HDMI_PORT_e;
  16. typedef enum
  17. {
  18. DRV_HPD_LEVEL_LOW = 0x00,
  19. DRV_HPD_LEVEL_HIGH,
  20. } DRV_HPD_LEVEL_e;
  21. void hdmi_hpd_init(void);
  22. void hdmi_apply_hpd(DRV_HDMI_PORT_e ePort, DRV_HPD_LEVEL_e eLevel);
  23. void hdmi_apply_hpd_Toggle(DRV_HDMI_PORT_e ePort, DRV_HPD_LEVEL_e eLevel, BOOL SetToggle);
  24. void hdmi_apply_hpd_by5V(DRV_HDMI_PORT_e ePort);
  25. void hdmi_hpd_update(void);
  26. void hdmi_5v_change_need_ChangeSrc(HDMI_PORT_T port);
  27. BOOL hdmi_get_hpd_at_cur_src(void);
  28. void hdmi_hpd_handler(HDMI_SRC_T src);
  29. void hdmi_set_termination(DRV_HDMI_PORT_e ePort, DRV_HPD_LEVEL_e eLevel);
  30. void hdmi_report_cur_hpd(void);
  31. HDMI_PORT_T hdmi_get_cur_port(void);
  32. UINT32 hdmi_get_hpd_status(void);
  33. #endif /* __HDMI_HPD_H__ */