drv2kmf.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #ifndef _DRV2KMF_H_
  2. #define _DRV2KMF_H_
  3. #include <drv_types.h>
  4. enum {
  5. STATUS_NOSIGNAL,
  6. STATUS_SIGNALOK,
  7. STATUS_SIGNALWEAK,
  8. STATUS_NOTSUPPORT,
  9. STATUS_UNKNOWN,
  10. };
  11. enum {
  12. INPUTPATH_ATV,
  13. INPUTPATH_DTV,
  14. INPUTPATH_AV,
  15. INPUTPATH_SV,
  16. INPUTPATH_COMPONENT,
  17. INPUTPATH_HDMI,
  18. INPUTPATH_PC,
  19. INPUTPATH_USB
  20. };
  21. enum{
  22. msgID_Audio,
  23. msgID_Video,
  24. };
  25. enum{
  26. status_Stop,
  27. status_Start,
  28. };
  29. typedef struct _DTVCADetectStatus_t
  30. {
  31. UINT8 bHasVideoData;
  32. UINT8 bVideoScramble;
  33. UINT8 bHasAudioData;
  34. UINT8 bAudioScramble;
  35. }DTVCADetectStatus_t, *PDTVCADetectStatus_t;
  36. typedef struct _MultimediaStatus_t
  37. {
  38. UINT8 msgID; // 0: Audio, 1: Video
  39. UINT8 status; // 0: Stop, 1: start
  40. }MultimediaStatus_t, *PMultimediaStatus_t;
  41. typedef struct _KMF2VIP_INFO
  42. {
  43. INT8 Hposition;
  44. INT8 Vposition;
  45. UINT8 Hoverscan;
  46. UINT8 Voverscan;
  47. UINT8 AspectRatio;
  48. UINT8 DynamicBacklight;
  49. UINT32 Backlight;
  50. }KMF2VIP_INFO, *PKMF2VIP_INFO;
  51. typedef struct _InputPathStatus_t
  52. {
  53. UINT8 msgfromVIP; // 1: VIP, 0: other driver
  54. UINT8 bSub; // 0: main, 1: sub; set by VIP driver only.
  55. UINT32 path; // input path
  56. UINT8 bActive; // 0:FALSE, 1:TRUE; Set by driver only
  57. UINT8 bNotSupport;
  58. UINT8 bScramble; //0:FALSE, 1:TRUE; Set by DTV driver only
  59. UINT8 bAudioOnly;
  60. UINT8 bHscalerDown; //0:FALSE, 1:TRUE; Notice kmf hdmi signal Hscaler down because Hactive > 1920
  61. }InputPathStatus_t, *PInputPathStatus_t;
  62. #define PARTNAME_LEN 16
  63. typedef struct _Partition_info
  64. {
  65. char part_name[PARTNAME_LEN];
  66. }Partition_info_t, *Ppartition_info_t;
  67. INT32 noticekmf(UINT8 eventID, UINT8 eventType, UINT8 *extraInfo, UINT8 extraSize);
  68. #endif