cx2341x.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /*
  2. cx23415/6 header containing common defines.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  14. */
  15. #ifndef CX2341X_H
  16. #define CX2341X_H
  17. /* Firmware names */
  18. #define CX2341X_FIRM_ENC_FILENAME "v4l-cx2341x-enc.fw"
  19. /* Decoder firmware for the cx23415 only */
  20. #define CX2341X_FIRM_DEC_FILENAME "v4l-cx2341x-dec.fw"
  21. /* Firmware API commands */
  22. /* MPEG decoder API, specific to the cx23415 */
  23. #define CX2341X_DEC_PING_FW 0x00
  24. #define CX2341X_DEC_START_PLAYBACK 0x01
  25. #define CX2341X_DEC_STOP_PLAYBACK 0x02
  26. #define CX2341X_DEC_SET_PLAYBACK_SPEED 0x03
  27. #define CX2341X_DEC_STEP_VIDEO 0x05
  28. #define CX2341X_DEC_SET_DMA_BLOCK_SIZE 0x08
  29. #define CX2341X_DEC_GET_XFER_INFO 0x09
  30. #define CX2341X_DEC_GET_DMA_STATUS 0x0a
  31. #define CX2341X_DEC_SCHED_DMA_FROM_HOST 0x0b
  32. #define CX2341X_DEC_PAUSE_PLAYBACK 0x0d
  33. #define CX2341X_DEC_HALT_FW 0x0e
  34. #define CX2341X_DEC_SET_STANDARD 0x10
  35. #define CX2341X_DEC_GET_VERSION 0x11
  36. #define CX2341X_DEC_SET_STREAM_INPUT 0x14
  37. #define CX2341X_DEC_GET_TIMING_INFO 0x15
  38. #define CX2341X_DEC_SET_AUDIO_MODE 0x16
  39. #define CX2341X_DEC_SET_EVENT_NOTIFICATION 0x17
  40. #define CX2341X_DEC_SET_DISPLAY_BUFFERS 0x18
  41. #define CX2341X_DEC_EXTRACT_VBI 0x19
  42. #define CX2341X_DEC_SET_DECODER_SOURCE 0x1a
  43. #define CX2341X_DEC_SET_AUDIO_OUTPUT 0x1b
  44. #define CX2341X_DEC_SET_AV_DELAY 0x1c
  45. #define CX2341X_DEC_SET_PREBUFFERING 0x1e
  46. /* MPEG encoder API */
  47. #define CX2341X_ENC_PING_FW 0x80
  48. #define CX2341X_ENC_START_CAPTURE 0x81
  49. #define CX2341X_ENC_STOP_CAPTURE 0x82
  50. #define CX2341X_ENC_SET_AUDIO_ID 0x89
  51. #define CX2341X_ENC_SET_VIDEO_ID 0x8b
  52. #define CX2341X_ENC_SET_PCR_ID 0x8d
  53. #define CX2341X_ENC_SET_FRAME_RATE 0x8f
  54. #define CX2341X_ENC_SET_FRAME_SIZE 0x91
  55. #define CX2341X_ENC_SET_BIT_RATE 0x95
  56. #define CX2341X_ENC_SET_GOP_PROPERTIES 0x97
  57. #define CX2341X_ENC_SET_ASPECT_RATIO 0x99
  58. #define CX2341X_ENC_SET_DNR_FILTER_MODE 0x9b
  59. #define CX2341X_ENC_SET_DNR_FILTER_PROPS 0x9d
  60. #define CX2341X_ENC_SET_CORING_LEVELS 0x9f
  61. #define CX2341X_ENC_SET_SPATIAL_FILTER_TYPE 0xa1
  62. #define CX2341X_ENC_SET_3_2_PULLDOWN 0xb1
  63. #define CX2341X_ENC_SET_VBI_LINE 0xb7
  64. #define CX2341X_ENC_SET_STREAM_TYPE 0xb9
  65. #define CX2341X_ENC_SET_OUTPUT_PORT 0xbb
  66. #define CX2341X_ENC_SET_AUDIO_PROPERTIES 0xbd
  67. #define CX2341X_ENC_HALT_FW 0xc3
  68. #define CX2341X_ENC_GET_VERSION 0xc4
  69. #define CX2341X_ENC_SET_GOP_CLOSURE 0xc5
  70. #define CX2341X_ENC_GET_SEQ_END 0xc6
  71. #define CX2341X_ENC_SET_PGM_INDEX_INFO 0xc7
  72. #define CX2341X_ENC_SET_VBI_CONFIG 0xc8
  73. #define CX2341X_ENC_SET_DMA_BLOCK_SIZE 0xc9
  74. #define CX2341X_ENC_GET_PREV_DMA_INFO_MB_10 0xca
  75. #define CX2341X_ENC_GET_PREV_DMA_INFO_MB_9 0xcb
  76. #define CX2341X_ENC_SCHED_DMA_TO_HOST 0xcc
  77. #define CX2341X_ENC_INITIALIZE_INPUT 0xcd
  78. #define CX2341X_ENC_SET_FRAME_DROP_RATE 0xd0
  79. #define CX2341X_ENC_PAUSE_ENCODER 0xd2
  80. #define CX2341X_ENC_REFRESH_INPUT 0xd3
  81. #define CX2341X_ENC_SET_COPYRIGHT 0xd4
  82. #define CX2341X_ENC_SET_EVENT_NOTIFICATION 0xd5
  83. #define CX2341X_ENC_SET_NUM_VSYNC_LINES 0xd6
  84. #define CX2341X_ENC_SET_PLACEHOLDER 0xd7
  85. #define CX2341X_ENC_MUTE_VIDEO 0xd9
  86. #define CX2341X_ENC_MUTE_AUDIO 0xda
  87. #define CX2341X_ENC_UNKNOWN 0xdb
  88. #define CX2341X_ENC_MISC 0xdc
  89. /* OSD API, specific to the cx23415 */
  90. #define CX2341X_OSD_GET_FRAMEBUFFER 0x41
  91. #define CX2341X_OSD_GET_PIXEL_FORMAT 0x42
  92. #define CX2341X_OSD_SET_PIXEL_FORMAT 0x43
  93. #define CX2341X_OSD_GET_STATE 0x44
  94. #define CX2341X_OSD_SET_STATE 0x45
  95. #define CX2341X_OSD_GET_OSD_COORDS 0x46
  96. #define CX2341X_OSD_SET_OSD_COORDS 0x47
  97. #define CX2341X_OSD_GET_SCREEN_COORDS 0x48
  98. #define CX2341X_OSD_SET_SCREEN_COORDS 0x49
  99. #define CX2341X_OSD_GET_GLOBAL_ALPHA 0x4a
  100. #define CX2341X_OSD_SET_GLOBAL_ALPHA 0x4b
  101. #define CX2341X_OSD_SET_BLEND_COORDS 0x4c
  102. #define CX2341X_OSD_GET_FLICKER_STATE 0x4f
  103. #define CX2341X_OSD_SET_FLICKER_STATE 0x50
  104. #define CX2341X_OSD_BLT_COPY 0x52
  105. #define CX2341X_OSD_BLT_FILL 0x53
  106. #define CX2341X_OSD_BLT_TEXT 0x54
  107. #define CX2341X_OSD_SET_FRAMEBUFFER_WINDOW 0x56
  108. #define CX2341X_OSD_SET_CHROMA_KEY 0x60
  109. #define CX2341X_OSD_GET_ALPHA_CONTENT_INDEX 0x61
  110. #define CX2341X_OSD_SET_ALPHA_CONTENT_INDEX 0x62
  111. #endif /* CX2341X_H */