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 20void exynos3250_jpeg_reset(void __iomem *regs); 21void exynos3250_jpeg_poweron(void __iomem *regs); 22void exynos3250_jpeg_set_dma_num(void __iomem *regs); 23void exynos3250_jpeg_clk_set(void __iomem *base); 24void exynos3250_jpeg_input_raw_fmt(void __iomem *regs, unsigned int fmt); 25void exynos3250_jpeg_output_raw_fmt(void __iomem *regs, unsigned int fmt); 26void exynos3250_jpeg_set_y16(void __iomem *regs, bool y16); 27void exynos3250_jpeg_proc_mode(void __iomem *regs, unsigned int mode); 28void exynos3250_jpeg_subsampling_mode(void __iomem *regs, unsigned int mode); 29unsigned int exynos3250_jpeg_get_subsampling_mode(void __iomem *regs); 30void exynos3250_jpeg_dri(void __iomem *regs, unsigned int dri); 31void exynos3250_jpeg_qtbl(void __iomem *regs, unsigned int t, unsigned int n); 32void exynos3250_jpeg_htbl_ac(void __iomem *regs, unsigned int t); 33void exynos3250_jpeg_htbl_dc(void __iomem *regs, unsigned int t); 34void exynos3250_jpeg_set_y(void __iomem *regs, unsigned int y); 35void exynos3250_jpeg_set_x(void __iomem *regs, unsigned int x); 36void exynos3250_jpeg_interrupts_enable(void __iomem *regs); 37void exynos3250_jpeg_enc_stream_bound(void __iomem *regs, unsigned int size); 38void exynos3250_jpeg_outform_raw(void __iomem *regs, unsigned long format); 39void exynos3250_jpeg_jpgadr(void __iomem *regs, unsigned int addr); 40void exynos3250_jpeg_imgadr(void __iomem *regs, struct s5p_jpeg_addr *img_addr); 41void exynos3250_jpeg_stride(void __iomem *regs, unsigned int img_fmt, 42 unsigned int width); 43void exynos3250_jpeg_offset(void __iomem *regs, unsigned int x_offset, 44 unsigned int y_offset); 45void exynos3250_jpeg_coef(void __iomem *base, unsigned int mode); 46void exynos3250_jpeg_start(void __iomem *regs); 47void exynos3250_jpeg_rstart(void __iomem *regs); 48unsigned int exynos3250_jpeg_get_int_status(void __iomem *regs); 49void exynos3250_jpeg_clear_int_status(void __iomem *regs, 50 unsigned int value); 51unsigned int exynos3250_jpeg_operating(void __iomem *regs); 52unsigned int exynos3250_jpeg_compressed_size(void __iomem *regs); 53void exynos3250_jpeg_dec_stream_size(void __iomem *regs, unsigned int size); 54void exynos3250_jpeg_dec_scaling_ratio(void __iomem *regs, unsigned int sratio); 55void exynos3250_jpeg_set_timer(void __iomem *regs, unsigned int time_value); 56unsigned int exynos3250_jpeg_get_timer_status(void __iomem *regs); 57void exynos3250_jpeg_set_timer_status(void __iomem *regs); 58void exynos3250_jpeg_clear_timer_status(void __iomem *regs); 59 60#endif /* JPEG_HW_EXYNOS3250_H_ */ 61