1 /* linux/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.h 2 * 3 * Copyright (c) 2014 Samsung Electronics Co., Ltd. 4 * http://www.samsung.com 5 * 6 * Author: Jacek Anaszewski <j.anaszewski@samsung.com> 7 * 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. 11 */ 12 #ifndef JPEG_HW_EXYNOS3250_H_ 13 #define JPEG_HW_EXYNOS3250_H_ 14 15 #include <linux/io.h> 16 #include <linux/videodev2.h> 17 18 #include "jpeg-regs.h" 19 20 void exynos3250_jpeg_reset(void __iomem *regs); 21 void exynos3250_jpeg_poweron(void __iomem *regs); 22 void exynos3250_jpeg_set_dma_num(void __iomem *regs); 23 void exynos3250_jpeg_clk_set(void __iomem *base); 24 void exynos3250_jpeg_input_raw_fmt(void __iomem *regs, unsigned int fmt); 25 void exynos3250_jpeg_output_raw_fmt(void __iomem *regs, unsigned int fmt); 26 void exynos3250_jpeg_set_y16(void __iomem *regs, bool y16); 27 void exynos3250_jpeg_proc_mode(void __iomem *regs, unsigned int mode); 28 void exynos3250_jpeg_subsampling_mode(void __iomem *regs, unsigned int mode); 29 unsigned int exynos3250_jpeg_get_subsampling_mode(void __iomem *regs); 30 void exynos3250_jpeg_dri(void __iomem *regs, unsigned int dri); 31 void exynos3250_jpeg_qtbl(void __iomem *regs, unsigned int t, unsigned int n); 32 void exynos3250_jpeg_htbl_ac(void __iomem *regs, unsigned int t); 33 void exynos3250_jpeg_htbl_dc(void __iomem *regs, unsigned int t); 34 void exynos3250_jpeg_set_y(void __iomem *regs, unsigned int y); 35 void exynos3250_jpeg_set_x(void __iomem *regs, unsigned int x); 36 void exynos3250_jpeg_interrupts_enable(void __iomem *regs); 37 void exynos3250_jpeg_enc_stream_bound(void __iomem *regs, unsigned int size); 38 void exynos3250_jpeg_outform_raw(void __iomem *regs, unsigned long format); 39 void exynos3250_jpeg_jpgadr(void __iomem *regs, unsigned int addr); 40 void exynos3250_jpeg_imgadr(void __iomem *regs, struct s5p_jpeg_addr *img_addr); 41 void exynos3250_jpeg_stride(void __iomem *regs, unsigned int img_fmt, 42 unsigned int width); 43 void exynos3250_jpeg_offset(void __iomem *regs, unsigned int x_offset, 44 unsigned int y_offset); 45 void exynos3250_jpeg_coef(void __iomem *base, unsigned int mode); 46 void exynos3250_jpeg_start(void __iomem *regs); 47 void exynos3250_jpeg_rstart(void __iomem *regs); 48 unsigned int exynos3250_jpeg_get_int_status(void __iomem *regs); 49 void exynos3250_jpeg_clear_int_status(void __iomem *regs, 50 unsigned int value); 51 unsigned int exynos3250_jpeg_operating(void __iomem *regs); 52 unsigned int exynos3250_jpeg_compressed_size(void __iomem *regs); 53 void exynos3250_jpeg_dec_stream_size(void __iomem *regs, unsigned int size); 54 void exynos3250_jpeg_dec_scaling_ratio(void __iomem *regs, unsigned int sratio); 55 void exynos3250_jpeg_set_timer(void __iomem *regs, unsigned int time_value); 56 unsigned int exynos3250_jpeg_get_timer_status(void __iomem *regs); 57 void exynos3250_jpeg_set_timer_status(void __iomem *regs); 58 void exynos3250_jpeg_clear_timer_status(void __iomem *regs); 59 60 #endif /* JPEG_HW_EXYNOS3250_H_ */ 61