xref: /linux/drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-exynos4.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (c) 2013 Samsung Electronics Co., Ltd.
3  *		http://www.samsung.com/
4  *
5  * Author: Jacek Anaszewski <j.anaszewski@samsung.com>
6  *
7  * Header file of the register interface for JPEG driver on Exynos4x12.
8 */
9 
10 #ifndef JPEG_HW_EXYNOS4_H_
11 #define JPEG_HW_EXYNOS4_H_
12 
13 void exynos4_jpeg_sw_reset(void __iomem *base);
14 void exynos4_jpeg_set_enc_dec_mode(void __iomem *base, unsigned int mode);
15 void __exynos4_jpeg_set_img_fmt(void __iomem *base, unsigned int img_fmt,
16 				unsigned int version);
17 void __exynos4_jpeg_set_enc_out_fmt(void __iomem *base, unsigned int out_fmt,
18 				    unsigned int version);
19 void exynos4_jpeg_set_enc_tbl(void __iomem *base);
20 void exynos4_jpeg_set_interrupt(void __iomem *base, unsigned int version);
21 unsigned int exynos4_jpeg_get_int_status(void __iomem *base);
22 void exynos4_jpeg_set_huf_table_enable(void __iomem *base, int value);
23 void exynos4_jpeg_set_sys_int_enable(void __iomem *base, int value);
24 void exynos4_jpeg_set_stream_buf_address(void __iomem *base,
25 					 unsigned int address);
26 void exynos4_jpeg_set_stream_size(void __iomem *base,
27 		unsigned int x_value, unsigned int y_value);
28 void exynos4_jpeg_set_frame_buf_address(void __iomem *base,
29 				struct s5p_jpeg_addr *jpeg_addr);
30 void exynos4_jpeg_set_encode_tbl_select(void __iomem *base,
31 		enum exynos4_jpeg_img_quality_level level);
32 void exynos4_jpeg_set_dec_components(void __iomem *base, int n);
33 void exynos4_jpeg_select_dec_q_tbl(void __iomem *base, char c, char x);
34 void exynos4_jpeg_select_dec_h_tbl(void __iomem *base, char c, char x);
35 void exynos4_jpeg_set_encode_hoff_cnt(void __iomem *base, unsigned int fmt);
36 void exynos4_jpeg_set_dec_bitstream_size(void __iomem *base, unsigned int size);
37 unsigned int exynos4_jpeg_get_stream_size(void __iomem *base);
38 void exynos4_jpeg_get_frame_size(void __iomem *base,
39 			unsigned int *width, unsigned int *height);
40 unsigned int exynos4_jpeg_get_frame_fmt(void __iomem *base);
41 unsigned int exynos4_jpeg_get_fifo_status(void __iomem *base);
42 void exynos4_jpeg_set_timer_count(void __iomem *base, unsigned int size);
43 
44 #endif /* JPEG_HW_EXYNOS4_H_ */
45