radio-iris-commands.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #ifndef __RADIO_IRIS_COMMANDS_H
  2. #define __RADIO_IRIS_COMMANDS_H
  3. #include <linux/skbuff.h>
  4. #include <linux/interrupt.h>
  5. #include <linux/mutex.h>
  6. #include <linux/atomic.h>
  7. enum v4l2_cid_private_iris_t {
  8. V4L2_CID_PRIVATE_IRIS_SRCHMODE = (0x08000000 + 1),
  9. V4L2_CID_PRIVATE_IRIS_SCANDWELL,
  10. V4L2_CID_PRIVATE_IRIS_SRCHON,
  11. V4L2_CID_PRIVATE_IRIS_STATE,
  12. V4L2_CID_PRIVATE_IRIS_TRANSMIT_MODE,
  13. V4L2_CID_PRIVATE_IRIS_RDSGROUP_MASK,
  14. V4L2_CID_PRIVATE_IRIS_REGION,
  15. V4L2_CID_PRIVATE_IRIS_SIGNAL_TH,
  16. V4L2_CID_PRIVATE_IRIS_SRCH_PTY,
  17. V4L2_CID_PRIVATE_IRIS_SRCH_PI,
  18. V4L2_CID_PRIVATE_IRIS_SRCH_CNT,
  19. V4L2_CID_PRIVATE_IRIS_EMPHASIS,
  20. V4L2_CID_PRIVATE_IRIS_RDS_STD,
  21. V4L2_CID_PRIVATE_IRIS_SPACING,
  22. V4L2_CID_PRIVATE_IRIS_RDSON,
  23. V4L2_CID_PRIVATE_IRIS_RDSGROUP_PROC,
  24. V4L2_CID_PRIVATE_IRIS_LP_MODE,
  25. V4L2_CID_PRIVATE_IRIS_ANTENNA,
  26. V4L2_CID_PRIVATE_IRIS_RDSD_BUF,
  27. V4L2_CID_PRIVATE_IRIS_PSALL, /*0x8000014*/
  28. /*v4l2 Tx controls*/
  29. V4L2_CID_PRIVATE_IRIS_TX_SETPSREPEATCOUNT,
  30. V4L2_CID_PRIVATE_IRIS_STOP_RDS_TX_PS_NAME,
  31. V4L2_CID_PRIVATE_IRIS_STOP_RDS_TX_RT,
  32. V4L2_CID_PRIVATE_IRIS_IOVERC,
  33. V4L2_CID_PRIVATE_IRIS_INTDET,
  34. V4L2_CID_PRIVATE_IRIS_MPX_DCC,
  35. V4L2_CID_PRIVATE_IRIS_AF_JUMP,
  36. V4L2_CID_PRIVATE_IRIS_RSSI_DELTA,
  37. V4L2_CID_PRIVATE_IRIS_HLSI, /*0x800001d*/
  38. /*Diagnostic commands*/
  39. V4L2_CID_PRIVATE_IRIS_SOFT_MUTE,
  40. V4L2_CID_PRIVATE_IRIS_RIVA_ACCS_ADDR,
  41. V4L2_CID_PRIVATE_IRIS_RIVA_ACCS_LEN,
  42. V4L2_CID_PRIVATE_IRIS_RIVA_PEEK,
  43. V4L2_CID_PRIVATE_IRIS_RIVA_POKE,
  44. V4L2_CID_PRIVATE_IRIS_SSBI_ACCS_ADDR,
  45. V4L2_CID_PRIVATE_IRIS_SSBI_PEEK,
  46. V4L2_CID_PRIVATE_IRIS_SSBI_POKE,
  47. V4L2_CID_PRIVATE_IRIS_TX_TONE,
  48. V4L2_CID_PRIVATE_IRIS_RDS_GRP_COUNTERS,
  49. V4L2_CID_PRIVATE_IRIS_SET_NOTCH_FILTER, /* 0x8000028 */
  50. V4L2_CID_PRIVATE_IRIS_SET_AUDIO_PATH, /* TAVARUA specific command */
  51. V4L2_CID_PRIVATE_IRIS_DO_CALIBRATION,
  52. V4L2_CID_PRIVATE_IRIS_SRCH_ALGORITHM, /* TAVARUA specific command */
  53. V4L2_CID_PRIVATE_IRIS_GET_SINR,
  54. V4L2_CID_PRIVATE_INTF_LOW_THRESHOLD,
  55. V4L2_CID_PRIVATE_INTF_HIGH_THRESHOLD,
  56. V4L2_CID_PRIVATE_SINR_THRESHOLD,
  57. V4L2_CID_PRIVATE_SINR_SAMPLES,
  58. V4L2_CID_PRIVATE_SPUR_FREQ,
  59. V4L2_CID_PRIVATE_SPUR_FREQ_RMSSI,
  60. V4L2_CID_PRIVATE_SPUR_SELECTION,
  61. V4L2_CID_PRIVATE_UPDATE_SPUR_TABLE,
  62. V4L2_CID_PRIVATE_VALID_CHANNEL,
  63. V4L2_CID_PRIVATE_AF_RMSSI_TH,
  64. V4L2_CID_PRIVATE_AF_RMSSI_SAMPLES,
  65. V4L2_CID_PRIVATE_GOOD_CH_RMSSI_TH,
  66. V4L2_CID_PRIVATE_SRCHALGOTYPE,
  67. V4L2_CID_PRIVATE_CF0TH12,
  68. V4L2_CID_PRIVATE_SINRFIRSTSTAGE,
  69. V4L2_CID_PRIVATE_RMSSIFIRSTSTAGE,
  70. V4L2_CID_PRIVATE_SOFT_MUTE_TH,
  71. V4L2_CID_PRIVATE_IRIS_RDSGRP_RT,
  72. V4L2_CID_PRIVATE_IRIS_RDSGRP_PS_SIMPLE,
  73. V4L2_CID_PRIVATE_IRIS_RDSGRP_AFLIST,
  74. V4L2_CID_PRIVATE_IRIS_RDSGRP_ERT,
  75. V4L2_CID_PRIVATE_IRIS_RDSGRP_RT_PLUS,
  76. V4L2_CID_PRIVATE_IRIS_RDSGRP_3A,
  77. V4L2_CID_PRIVATE_IRIS_RDSGRP_ALL,
  78. V4L2_CID_PRIVATE_RXREPEATCOUNT = (0x08000000 + 0x45),
  79. /*using private CIDs under userclass*/
  80. V4L2_CID_PRIVATE_IRIS_READ_DEFAULT = 0x00980928,
  81. V4L2_CID_PRIVATE_IRIS_WRITE_DEFAULT,
  82. V4L2_CID_PRIVATE_IRIS_SET_CALIBRATION,
  83. };
  84. enum iris_evt_t {
  85. IRIS_EVT_RADIO_READY,
  86. IRIS_EVT_TUNE_SUCC,
  87. IRIS_EVT_SEEK_COMPLETE,
  88. IRIS_EVT_SCAN_NEXT,
  89. IRIS_EVT_NEW_RAW_RDS,
  90. IRIS_EVT_NEW_RT_RDS,
  91. IRIS_EVT_NEW_PS_RDS,
  92. IRIS_EVT_ERROR,
  93. IRIS_EVT_BELOW_TH,
  94. IRIS_EVT_ABOVE_TH,
  95. IRIS_EVT_STEREO,
  96. IRIS_EVT_MONO,
  97. IRIS_EVT_RDS_AVAIL,
  98. IRIS_EVT_RDS_NOT_AVAIL,
  99. IRIS_EVT_NEW_SRCH_LIST,
  100. IRIS_EVT_NEW_AF_LIST,
  101. IRIS_EVT_TXRDSDAT,
  102. IRIS_EVT_TXRDSDONE,
  103. IRIS_EVT_RADIO_DISABLED,
  104. IRIS_EVT_NEW_ODA,
  105. IRIS_EVT_NEW_RT_PLUS,
  106. IRIS_EVT_NEW_ERT,
  107. IRIS_EVT_AFJMP,
  108. };
  109. #endif /* __RADIO_IRIS_COMMANDS_H */