Go to the documentation of this file.
15 #include <linux/kernel.h>
18 #define S5P_FIMV_REG_SIZE (S5P_FIMV_END_ADDR - S5P_FIMV_START_ADDR)
19 #define S5P_FIMV_REG_COUNT ((S5P_FIMV_END_ADDR - S5P_FIMV_START_ADDR) / 4)
23 #define S5P_FIMV_START_ADDR 0x0000
24 #define S5P_FIMV_END_ADDR 0xe008
26 #define S5P_FIMV_SW_RESET 0x0000
27 #define S5P_FIMV_RISC_HOST_INT 0x0008
30 #define S5P_FIMV_HOST2RISC_CMD 0x0030
31 #define S5P_FIMV_HOST2RISC_ARG1 0x0034
32 #define S5P_FIMV_HOST2RISC_ARG2 0x0038
33 #define S5P_FIMV_HOST2RISC_ARG3 0x003c
34 #define S5P_FIMV_HOST2RISC_ARG4 0x0040
37 #define S5P_FIMV_RISC2HOST_CMD 0x0044
38 #define S5P_FIMV_RISC2HOST_CMD_MASK 0x1FFFF
39 #define S5P_FIMV_RISC2HOST_ARG1 0x0048
40 #define S5P_FIMV_RISC2HOST_ARG2 0x004c
41 #define S5P_FIMV_RISC2HOST_ARG3 0x0050
42 #define S5P_FIMV_RISC2HOST_ARG4 0x0054
44 #define S5P_FIMV_FW_VERSION 0x0058
45 #define S5P_FIMV_SYS_MEM_SZ 0x005c
46 #define S5P_FIMV_FW_STATUS 0x0080
49 #define S5P_FIMV_MC_DRAMBASE_ADR_A 0x0508
50 #define S5P_FIMV_MC_DRAMBASE_ADR_B 0x050c
51 #define S5P_FIMV_MC_STATUS 0x0510
54 #define S5P_FIMV_COMMON_BASE_A 0x0600
55 #define S5P_FIMV_COMMON_BASE_B 0x0700
58 #define S5P_FIMV_DEC_CHROMA_ADR (S5P_FIMV_COMMON_BASE_A)
59 #define S5P_FIMV_DEC_LUMA_ADR (S5P_FIMV_COMMON_BASE_B)
62 #define S5P_FIMV_H264_VERT_NB_MV_ADR (S5P_FIMV_COMMON_BASE_A + 0x8c)
64 #define S5P_FIMV_H264_NB_IP_ADR (S5P_FIMV_COMMON_BASE_A + 0x90)
66 #define S5P_FIMV_H264_MV_ADR (S5P_FIMV_COMMON_BASE_B + 0x80)
70 #define S5P_FIMV_MPEG4_NB_DCAC_ADR (S5P_FIMV_COMMON_BASE_A + 0x8c)
72 #define S5P_FIMV_MPEG4_UP_NB_MV_ADR (S5P_FIMV_COMMON_BASE_A + 0x90)
74 #define S5P_FIMV_MPEG4_SA_MV_ADR (S5P_FIMV_COMMON_BASE_A + 0x94)
76 #define S5P_FIMV_MPEG4_OT_LINE_ADR (S5P_FIMV_COMMON_BASE_A + 0x98)
78 #define S5P_FIMV_MPEG4_SP_ADR (S5P_FIMV_COMMON_BASE_A + 0xa8)
82 #define S5P_FIMV_H263_NB_DCAC_ADR (S5P_FIMV_COMMON_BASE_A + 0x8c)
83 #define S5P_FIMV_H263_UP_NB_MV_ADR (S5P_FIMV_COMMON_BASE_A + 0x90)
84 #define S5P_FIMV_H263_SA_MV_ADR (S5P_FIMV_COMMON_BASE_A + 0x94)
85 #define S5P_FIMV_H263_OT_LINE_ADR (S5P_FIMV_COMMON_BASE_A + 0x98)
88 #define S5P_FIMV_VC1_NB_DCAC_ADR (S5P_FIMV_COMMON_BASE_A + 0x8c)
89 #define S5P_FIMV_VC1_UP_NB_MV_ADR (S5P_FIMV_COMMON_BASE_A + 0x90)
90 #define S5P_FIMV_VC1_SA_MV_ADR (S5P_FIMV_COMMON_BASE_A + 0x94)
91 #define S5P_FIMV_VC1_OT_LINE_ADR (S5P_FIMV_COMMON_BASE_A + 0x98)
92 #define S5P_FIMV_VC1_BITPLANE3_ADR (S5P_FIMV_COMMON_BASE_A + 0x9c)
94 #define S5P_FIMV_VC1_BITPLANE2_ADR (S5P_FIMV_COMMON_BASE_A + 0xa0)
96 #define S5P_FIMV_VC1_BITPLANE1_ADR (S5P_FIMV_COMMON_BASE_A + 0xa4)
100 #define S5P_FIMV_ENC_REF0_LUMA_ADR (S5P_FIMV_COMMON_BASE_A + 0x1c)
101 #define S5P_FIMV_ENC_REF1_LUMA_ADR (S5P_FIMV_COMMON_BASE_A + 0x20)
103 #define S5P_FIMV_ENC_REF0_CHROMA_ADR (S5P_FIMV_COMMON_BASE_B)
104 #define S5P_FIMV_ENC_REF1_CHROMA_ADR (S5P_FIMV_COMMON_BASE_B + 0x04)
106 #define S5P_FIMV_ENC_REF2_LUMA_ADR (S5P_FIMV_COMMON_BASE_B + 0x10)
107 #define S5P_FIMV_ENC_REF2_CHROMA_ADR (S5P_FIMV_COMMON_BASE_B + 0x08)
108 #define S5P_FIMV_ENC_REF3_LUMA_ADR (S5P_FIMV_COMMON_BASE_B + 0x14)
109 #define S5P_FIMV_ENC_REF3_CHROMA_ADR (S5P_FIMV_COMMON_BASE_B + 0x0c)
112 #define S5P_FIMV_H264_UP_MV_ADR (S5P_FIMV_COMMON_BASE_A)
114 #define S5P_FIMV_H264_NBOR_INFO_ADR (S5P_FIMV_COMMON_BASE_A + 0x04)
116 #define S5P_FIMV_H264_UP_INTRA_MD_ADR (S5P_FIMV_COMMON_BASE_A + 0x08)
118 #define S5P_FIMV_H264_COZERO_FLAG_ADR (S5P_FIMV_COMMON_BASE_A + 0x10)
120 #define S5P_FIMV_H264_UP_INTRA_PRED_ADR (S5P_FIMV_COMMON_BASE_B + 0x40)
124 #define S5P_FIMV_H263_UP_MV_ADR (S5P_FIMV_COMMON_BASE_A)
126 #define S5P_FIMV_H263_ACDC_COEF_ADR (S5P_FIMV_COMMON_BASE_A + 0x04)
130 #define S5P_FIMV_MPEG4_UP_MV_ADR (S5P_FIMV_COMMON_BASE_A)
132 #define S5P_FIMV_MPEG4_ACDC_COEF_ADR (S5P_FIMV_COMMON_BASE_A + 0x04)
134 #define S5P_FIMV_MPEG4_COZERO_FLAG_ADR (S5P_FIMV_COMMON_BASE_A + 0x10)
137 #define S5P_FIMV_ENC_REF_B_LUMA_ADR 0x062c
138 #define S5P_FIMV_ENC_REF_B_CHROMA_ADR 0x0630
140 #define S5P_FIMV_ENC_CUR_LUMA_ADR 0x0718
141 #define S5P_FIMV_ENC_CUR_CHROMA_ADR 0x071C
144 #define S5P_FIMV_ENC_HSIZE_PX 0x0818
145 #define S5P_FIMV_ENC_VSIZE_PX 0x081c
146 #define S5P_FIMV_ENC_PROFILE 0x0830
147 #define S5P_FIMV_ENC_PROFILE_H264_MAIN 0
148 #define S5P_FIMV_ENC_PROFILE_H264_HIGH 1
149 #define S5P_FIMV_ENC_PROFILE_H264_BASELINE 2
150 #define S5P_FIMV_ENC_PROFILE_H264_CONSTRAINED_BASELINE 3
151 #define S5P_FIMV_ENC_PROFILE_MPEG4_SIMPLE 0
152 #define S5P_FIMV_ENC_PROFILE_MPEG4_ADVANCED_SIMPLE 1
153 #define S5P_FIMV_ENC_PIC_STRUCT 0x083c
154 #define S5P_FIMV_ENC_LF_CTRL 0x0848
155 #define S5P_FIMV_ENC_ALPHA_OFF 0x084c
156 #define S5P_FIMV_ENC_BETA_OFF 0x0850
157 #define S5P_FIMV_MR_BUSIF_CTRL 0x0854
158 #define S5P_FIMV_ENC_PXL_CACHE_CTRL 0x0a00
161 #define S5P_FIMV_SI_RTN_CHID 0x2000
162 #define S5P_FIMV_SI_CH0_INST_ID 0x2040
163 #define S5P_FIMV_SI_CH1_INST_ID 0x2080
165 #define S5P_FIMV_SI_VRESOL 0x2004
166 #define S5P_FIMV_SI_HRESOL 0x2008
167 #define S5P_FIMV_SI_BUF_NUMBER 0x200c
169 #define S5P_FIMV_SI_DISPLAY_Y_ADR 0x2010
170 #define S5P_FIMV_SI_DISPLAY_C_ADR 0x2014
172 #define S5P_FIMV_SI_CONSUMED_BYTES 0x2018
174 #define S5P_FIMV_SI_DISPLAY_STATUS 0x201c
176 #define S5P_FIMV_SI_DECODE_Y_ADR 0x2024
177 #define S5P_FIMV_SI_DECODE_C_ADR 0x2028
178 #define S5P_FIMV_SI_DECODE_STATUS 0x202c
180 #define S5P_FIMV_SI_CH0_SB_ST_ADR 0x2044
181 #define S5P_FIMV_SI_CH0_SB_FRM_SIZE 0x2048
182 #define S5P_FIMV_SI_CH0_DESC_ADR 0x204c
183 #define S5P_FIMV_SI_CH0_CPB_SIZE 0x2058
184 #define S5P_FIMV_SI_CH0_DESC_SIZE 0x205c
186 #define S5P_FIMV_SI_CH1_SB_ST_ADR 0x2084
187 #define S5P_FIMV_SI_CH1_SB_FRM_SIZE 0x2088
188 #define S5P_FIMV_SI_CH1_DESC_ADR 0x208c
189 #define S5P_FIMV_SI_CH1_CPB_SIZE 0x2098
190 #define S5P_FIMV_SI_CH1_DESC_SIZE 0x209c
192 #define S5P_FIMV_CRC_LUMA0 0x2030
194 #define S5P_FIMV_CRC_CHROMA0 0x2034
196 #define S5P_FIMV_CRC_LUMA1 0x2038
198 #define S5P_FIMV_CRC_CHROMA1 0x203c
202 #define S5P_FIMV_DEC_STATUS_DECODING_ONLY 0
203 #define S5P_FIMV_DEC_STATUS_DECODING_DISPLAY 1
204 #define S5P_FIMV_DEC_STATUS_DISPLAY_ONLY 2
205 #define S5P_FIMV_DEC_STATUS_DECODING_EMPTY 3
206 #define S5P_FIMV_DEC_STATUS_DECODING_STATUS_MASK 7
207 #define S5P_FIMV_DEC_STATUS_PROGRESSIVE (0<<3)
208 #define S5P_FIMV_DEC_STATUS_INTERLACE (1<<3)
209 #define S5P_FIMV_DEC_STATUS_INTERLACE_MASK (1<<3)
210 #define S5P_FIMV_DEC_STATUS_CRC_NUMBER_TWO (0<<4)
211 #define S5P_FIMV_DEC_STATUS_CRC_NUMBER_FOUR (1<<4)
212 #define S5P_FIMV_DEC_STATUS_CRC_NUMBER_MASK (1<<4)
213 #define S5P_FIMV_DEC_STATUS_CRC_GENERATED (1<<5)
214 #define S5P_FIMV_DEC_STATUS_CRC_NOT_GENERATED (0<<5)
215 #define S5P_FIMV_DEC_STATUS_CRC_MASK (1<<5)
217 #define S5P_FIMV_DEC_STATUS_RESOLUTION_MASK (3<<4)
218 #define S5P_FIMV_DEC_STATUS_RESOLUTION_INC (1<<4)
219 #define S5P_FIMV_DEC_STATUS_RESOLUTION_DEC (2<<4)
220 #define S5P_FIMV_DEC_STATUS_RESOLUTION_SHIFT 4
223 #define S5P_FIMV_DECODE_Y_ADR 0x2024
224 #define S5P_FIMV_DECODE_C_ADR 0x2028
227 #define S5P_FIMV_DECODE_FRAME_TYPE 0x2020
228 #define S5P_FIMV_DECODE_FRAME_MASK 7
230 #define S5P_FIMV_DECODE_FRAME_SKIPPED 0
231 #define S5P_FIMV_DECODE_FRAME_I_FRAME 1
232 #define S5P_FIMV_DECODE_FRAME_P_FRAME 2
233 #define S5P_FIMV_DECODE_FRAME_B_FRAME 3
234 #define S5P_FIMV_DECODE_FRAME_OTHER_FRAME 4
237 #define S5P_FIMV_DEC_NB_IP_SIZE (32 * 1024)
238 #define S5P_FIMV_DEC_VERT_NB_MV_SIZE (16 * 1024)
239 #define S5P_FIMV_DEC_NB_DCAC_SIZE (16 * 1024)
240 #define S5P_FIMV_DEC_UPNB_MV_SIZE (68 * 1024)
241 #define S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE (136 * 1024)
242 #define S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE (32 * 1024)
243 #define S5P_FIMV_DEC_VC1_BITPLANE_SIZE (2 * 1024)
244 #define S5P_FIMV_DEC_STX_PARSER_SIZE (68 * 1024)
246 #define S5P_FIMV_DEC_BUF_ALIGN (8 * 1024)
247 #define S5P_FIMV_ENC_BUF_ALIGN (8 * 1024)
248 #define S5P_FIMV_NV12M_HALIGN 16
249 #define S5P_FIMV_NV12M_LVALIGN 16
250 #define S5P_FIMV_NV12M_CVALIGN 8
251 #define S5P_FIMV_NV12MT_HALIGN 128
252 #define S5P_FIMV_NV12MT_VALIGN 32
253 #define S5P_FIMV_NV12M_SALIGN 2048
254 #define S5P_FIMV_NV12MT_SALIGN 8192
257 #define S5P_FIMV_ENC_UPMV_SIZE 0x10000
258 #define S5P_FIMV_ENC_COLFLG_SIZE 0x10000
259 #define S5P_FIMV_ENC_INTRAMD_SIZE 0x10000
260 #define S5P_FIMV_ENC_INTRAPRED_SIZE 0x4000
261 #define S5P_FIMV_ENC_NBORINFO_SIZE 0x10000
262 #define S5P_FIMV_ENC_ACDCCOEF_SIZE 0x10000
265 #define S5P_FIMV_ENC_SI_STRM_SIZE 0x2004
266 #define S5P_FIMV_ENC_SI_PIC_CNT 0x2008
267 #define S5P_FIMV_ENC_SI_WRITE_PTR 0x200c
268 #define S5P_FIMV_ENC_SI_SLICE_TYPE 0x2010
269 #define S5P_FIMV_ENC_SI_SLICE_TYPE_NON_CODED 0
270 #define S5P_FIMV_ENC_SI_SLICE_TYPE_I 1
271 #define S5P_FIMV_ENC_SI_SLICE_TYPE_P 2
272 #define S5P_FIMV_ENC_SI_SLICE_TYPE_B 3
273 #define S5P_FIMV_ENC_SI_SLICE_TYPE_SKIPPED 4
274 #define S5P_FIMV_ENC_SI_SLICE_TYPE_OTHERS 5
275 #define S5P_FIMV_ENCODED_Y_ADDR 0x2014
277 #define S5P_FIMV_ENCODED_C_ADDR 0x2018
280 #define S5P_FIMV_ENC_SI_CH0_SB_ADR 0x2044
281 #define S5P_FIMV_ENC_SI_CH0_SB_SIZE 0x204c
282 #define S5P_FIMV_ENC_SI_CH0_CUR_Y_ADR 0x2050
283 #define S5P_FIMV_ENC_SI_CH0_CUR_C_ADR 0x2054
284 #define S5P_FIMV_ENC_SI_CH0_FRAME_INS 0x2058
286 #define S5P_FIMV_ENC_SI_CH1_SB_ADR 0x2084
287 #define S5P_FIMV_ENC_SI_CH1_SB_SIZE 0x208c
288 #define S5P_FIMV_ENC_SI_CH1_CUR_Y_ADR 0x2090
289 #define S5P_FIMV_ENC_SI_CH1_CUR_C_ADR 0x2094
290 #define S5P_FIMV_ENC_SI_CH1_FRAME_INS 0x2098
292 #define S5P_FIMV_ENC_PIC_TYPE_CTRL 0xc504
293 #define S5P_FIMV_ENC_B_RECON_WRITE_ON 0xc508
294 #define S5P_FIMV_ENC_MSLICE_CTRL 0xc50c
295 #define S5P_FIMV_ENC_MSLICE_MB 0xc510
296 #define S5P_FIMV_ENC_MSLICE_BIT 0xc514
297 #define S5P_FIMV_ENC_CIR_CTRL 0xc518
298 #define S5P_FIMV_ENC_MAP_FOR_CUR 0xc51c
299 #define S5P_FIMV_ENC_PADDING_CTRL 0xc520
301 #define S5P_FIMV_ENC_RC_CONFIG 0xc5a0
302 #define S5P_FIMV_ENC_RC_BIT_RATE 0xc5a8
303 #define S5P_FIMV_ENC_RC_QBOUND 0xc5ac
304 #define S5P_FIMV_ENC_RC_RPARA 0xc5b0
305 #define S5P_FIMV_ENC_RC_MB_CTRL 0xc5b4
308 #define S5P_FIMV_ENC_H264_ENTROPY_MODE 0xd004
309 #define S5P_FIMV_ENC_H264_ALPHA_OFF 0xd008
310 #define S5P_FIMV_ENC_H264_BETA_OFF 0xd00c
311 #define S5P_FIMV_ENC_H264_NUM_OF_REF 0xd010
312 #define S5P_FIMV_ENC_H264_TRANS_FLAG 0xd034
315 #define S5P_FIMV_ENC_RC_FRAME_RATE 0xd0d0
318 #define S5P_FIMV_ENC_MPEG4_QUART_PXL 0xe008
321 #define S5P_FIMV_SI_CH0_DPB_CONF_CTRL 0x2068
322 #define S5P_FIMV_SLICE_INT_MASK 1
323 #define S5P_FIMV_SLICE_INT_SHIFT 31
324 #define S5P_FIMV_DDELAY_ENA_SHIFT 30
325 #define S5P_FIMV_DDELAY_VAL_MASK 0xff
326 #define S5P_FIMV_DDELAY_VAL_SHIFT 16
327 #define S5P_FIMV_DPB_COUNT_MASK 0xffff
328 #define S5P_FIMV_DPB_FLUSH_MASK 1
329 #define S5P_FIMV_DPB_FLUSH_SHIFT 14
332 #define S5P_FIMV_SI_CH0_RELEASE_BUF 0x2060
333 #define S5P_FIMV_SI_CH0_HOST_WR_ADR 0x2064
336 #define S5P_FIMV_CODEC_NONE -1
338 #define S5P_FIMV_CODEC_H264_DEC 0
339 #define S5P_FIMV_CODEC_VC1_DEC 1
340 #define S5P_FIMV_CODEC_MPEG4_DEC 2
341 #define S5P_FIMV_CODEC_MPEG2_DEC 3
342 #define S5P_FIMV_CODEC_H263_DEC 4
343 #define S5P_FIMV_CODEC_VC1RCV_DEC 5
345 #define S5P_FIMV_CODEC_H264_ENC 16
346 #define S5P_FIMV_CODEC_MPEG4_ENC 17
347 #define S5P_FIMV_CODEC_H263_ENC 18
350 #define S5P_FIMV_CH_SEQ_HEADER 1
351 #define S5P_FIMV_CH_FRAME_START 2
352 #define S5P_FIMV_CH_LAST_FRAME 3
353 #define S5P_FIMV_CH_INIT_BUFS 4
354 #define S5P_FIMV_CH_FRAME_START_REALLOC 5
355 #define S5P_FIMV_CH_MASK 7
356 #define S5P_FIMV_CH_SHIFT 16
360 #define S5P_FIMV_H2R_CMD_EMPTY 0
361 #define S5P_FIMV_H2R_CMD_OPEN_INSTANCE 1
362 #define S5P_FIMV_H2R_CMD_CLOSE_INSTANCE 2
363 #define S5P_FIMV_H2R_CMD_SYS_INIT 3
364 #define S5P_FIMV_H2R_CMD_FLUSH 4
365 #define S5P_FIMV_H2R_CMD_SLEEP 5
366 #define S5P_FIMV_H2R_CMD_WAKEUP 6
368 #define S5P_FIMV_R2H_CMD_EMPTY 0
369 #define S5P_FIMV_R2H_CMD_OPEN_INSTANCE_RET 1
370 #define S5P_FIMV_R2H_CMD_CLOSE_INSTANCE_RET 2
371 #define S5P_FIMV_R2H_CMD_RSV_RET 3
372 #define S5P_FIMV_R2H_CMD_SEQ_DONE_RET 4
373 #define S5P_FIMV_R2H_CMD_FRAME_DONE_RET 5
374 #define S5P_FIMV_R2H_CMD_SLICE_DONE_RET 6
375 #define S5P_FIMV_R2H_CMD_ENC_COMPLETE_RET 7
376 #define S5P_FIMV_R2H_CMD_SYS_INIT_RET 8
377 #define S5P_FIMV_R2H_CMD_FW_STATUS_RET 9
378 #define S5P_FIMV_R2H_CMD_SLEEP_RET 10
379 #define S5P_FIMV_R2H_CMD_WAKEUP_RET 11
380 #define S5P_FIMV_R2H_CMD_FLUSH_RET 12
381 #define S5P_FIMV_R2H_CMD_INIT_BUFFERS_RET 15
382 #define S5P_FIMV_R2H_CMD_EDFU_INIT_RET 16
383 #define S5P_FIMV_R2H_CMD_ERR_RET 32
386 #define S5P_FIMV_CODEC_H264_MVC_DEC -1
387 #define S5P_FIMV_R2H_CMD_FIELD_DONE_RET -1
388 #define S5P_FIMV_MFC_RESET -1
389 #define S5P_FIMV_RISC_ON -1
390 #define S5P_FIMV_RISC_BASE_ADDRESS -1
391 #define S5P_FIMV_CODEC_VP8_DEC -1
392 #define S5P_FIMV_REG_CLEAR_BEGIN 0
393 #define S5P_FIMV_REG_CLEAR_COUNT 0
396 #define S5P_FIMV_ERR_WARNINGS_START 145
397 #define S5P_FIMV_ERR_DEC_MASK 0xFFFF
398 #define S5P_FIMV_ERR_DEC_SHIFT 0
399 #define S5P_FIMV_ERR_DSPL_MASK 0xFFFF0000
400 #define S5P_FIMV_ERR_DSPL_SHIFT 16
406 #define S5P_FIMV_SHARED_CROP_INFO_H 0x0020
407 #define S5P_FIMV_SHARED_CROP_LEFT_MASK 0xFFFF
408 #define S5P_FIMV_SHARED_CROP_LEFT_SHIFT 0
409 #define S5P_FIMV_SHARED_CROP_RIGHT_MASK 0xFFFF0000
410 #define S5P_FIMV_SHARED_CROP_RIGHT_SHIFT 16
411 #define S5P_FIMV_SHARED_CROP_INFO_V 0x0024
412 #define S5P_FIMV_SHARED_CROP_TOP_MASK 0xFFFF
413 #define S5P_FIMV_SHARED_CROP_TOP_SHIFT 0
414 #define S5P_FIMV_SHARED_CROP_BOTTOM_MASK 0xFFFF0000
415 #define S5P_FIMV_SHARED_CROP_BOTTOM_SHIFT 16
416 #define S5P_FIMV_SHARED_SET_FRAME_TAG 0x0004
417 #define S5P_FIMV_SHARED_GET_FRAME_TAG_TOP 0x0008
418 #define S5P_FIMV_SHARED_GET_FRAME_TAG_BOT 0x000C
419 #define S5P_FIMV_SHARED_START_BYTE_NUM 0x0018
420 #define S5P_FIMV_SHARED_RC_VOP_TIMING 0x0030
421 #define S5P_FIMV_SHARED_LUMA_DPB_SIZE 0x0064
422 #define S5P_FIMV_SHARED_CHROMA_DPB_SIZE 0x0068
423 #define S5P_FIMV_SHARED_MV_SIZE 0x006C
424 #define S5P_FIMV_SHARED_PIC_TIME_TOP 0x0010
425 #define S5P_FIMV_SHARED_PIC_TIME_BOTTOM 0x0014
426 #define S5P_FIMV_SHARED_EXT_ENC_CONTROL 0x0028
427 #define S5P_FIMV_SHARED_P_B_FRAME_QP 0x0070
428 #define S5P_FIMV_SHARED_ASPECT_RATIO_IDC 0x0074
429 #define S5P_FIMV_SHARED_EXTENDED_SAR 0x0078
430 #define S5P_FIMV_SHARED_H264_I_PERIOD 0x009C
431 #define S5P_FIMV_SHARED_RC_CONTROL_CONFIG 0x00A0
432 #define S5P_FIMV_SHARED_DISP_FRAME_TYPE_SHIFT 2
435 #define MFC_OFFSET_SHIFT 11
437 #define FIRMWARE_ALIGN (128 * SZ_1K)
438 #define MFC_H264_CTX_BUF_SIZE (600 * SZ_1K)
439 #define MFC_CTX_BUF_SIZE (10 * SZ_1K)
440 #define DESC_BUF_SIZE (128 * SZ_1K)
441 #define SHARED_BUF_SIZE (8 * SZ_1K)
443 #define DEF_CPB_SIZE (256 * SZ_1K)
444 #define MAX_CPB_SIZE (4 * SZ_1M)
445 #define MAX_FW_SIZE (384 * SZ_1K)
447 #define MFC_VERSION 0x51
448 #define MFC_NUM_PORTS 2
450 #define S5P_FIMV_SHARED_FRAME_PACK_SEI_AVAIL 0x16C
451 #define S5P_FIMV_SHARED_FRAME_PACK_ARRGMENT_ID 0x170
452 #define S5P_FIMV_SHARED_FRAME_PACK_SEI_INFO 0x174
453 #define S5P_FIMV_SHARED_FRAME_PACK_GRID_POS 0x178
456 #define S5P_FIMV_RES_INCREASE 1
457 #define S5P_FIMV_RES_DECREASE 2