1 /* Copyright (c) 2013 Samsung Electronics Co., Ltd.
2 * http://www.samsung.com/
4 * Author: Jacek Anaszewski <j.anaszewski@samsung.com>
6 * Header file of the register interface for JPEG driver on Exynos4x12.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #ifndef JPEG_HW_EXYNOS4_H_
14 #define JPEG_HW_EXYNOS4_H_
16 void exynos4_jpeg_sw_reset(void __iomem
*base
);
17 void exynos4_jpeg_set_enc_dec_mode(void __iomem
*base
, unsigned int mode
);
18 void __exynos4_jpeg_set_img_fmt(void __iomem
*base
, unsigned int img_fmt
,
19 unsigned int version
);
20 void __exynos4_jpeg_set_enc_out_fmt(void __iomem
*base
, unsigned int out_fmt
,
21 unsigned int version
);
22 void exynos4_jpeg_set_enc_tbl(void __iomem
*base
);
23 void exynos4_jpeg_set_interrupt(void __iomem
*base
, unsigned int version
);
24 unsigned int exynos4_jpeg_get_int_status(void __iomem
*base
);
25 void exynos4_jpeg_set_huf_table_enable(void __iomem
*base
, int value
);
26 void exynos4_jpeg_set_sys_int_enable(void __iomem
*base
, int value
);
27 void exynos4_jpeg_set_stream_buf_address(void __iomem
*base
,
28 unsigned int address
);
29 void exynos4_jpeg_set_stream_size(void __iomem
*base
,
30 unsigned int x_value
, unsigned int y_value
);
31 void exynos4_jpeg_set_frame_buf_address(void __iomem
*base
,
32 struct s5p_jpeg_addr
*jpeg_addr
);
33 void exynos4_jpeg_set_encode_tbl_select(void __iomem
*base
,
34 enum exynos4_jpeg_img_quality_level level
);
35 void exynos4_jpeg_set_dec_components(void __iomem
*base
, int n
);
36 void exynos4_jpeg_select_dec_q_tbl(void __iomem
*base
, char c
, char x
);
37 void exynos4_jpeg_select_dec_h_tbl(void __iomem
*base
, char c
, char x
);
38 void exynos4_jpeg_set_encode_hoff_cnt(void __iomem
*base
, unsigned int fmt
);
39 void exynos4_jpeg_set_dec_bitstream_size(void __iomem
*base
, unsigned int size
);
40 unsigned int exynos4_jpeg_get_stream_size(void __iomem
*base
);
41 void exynos4_jpeg_get_frame_size(void __iomem
*base
,
42 unsigned int *width
, unsigned int *height
);
43 unsigned int exynos4_jpeg_get_frame_fmt(void __iomem
*base
);
44 unsigned int exynos4_jpeg_get_fifo_status(void __iomem
*base
);
45 void exynos4_jpeg_set_timer_count(void __iomem
*base
, unsigned int size
);
47 #endif /* JPEG_HW_EXYNOS4_H_ */