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