mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 22:14:20 +08:00
d2912cb15b
Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation # extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 4122 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Enrico Weigelt <info@metux.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
58 lines
2.3 KiB
C
58 lines
2.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* linux/drivers/media/platform/s5p-jpeg/jpeg-hw.h
|
|
*
|
|
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
|
|
* http://www.samsung.com
|
|
*
|
|
* Author: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
|
|
*/
|
|
#ifndef JPEG_HW_S5P_H_
|
|
#define JPEG_HW_S5P_H_
|
|
|
|
#include <linux/io.h>
|
|
#include <linux/videodev2.h>
|
|
|
|
#include "jpeg-regs.h"
|
|
|
|
#define S5P_JPEG_MIN_WIDTH 32
|
|
#define S5P_JPEG_MIN_HEIGHT 32
|
|
#define S5P_JPEG_MAX_WIDTH 8192
|
|
#define S5P_JPEG_MAX_HEIGHT 8192
|
|
#define S5P_JPEG_RAW_IN_565 0
|
|
#define S5P_JPEG_RAW_IN_422 1
|
|
#define S5P_JPEG_RAW_OUT_422 0
|
|
#define S5P_JPEG_RAW_OUT_420 1
|
|
|
|
void s5p_jpeg_reset(void __iomem *regs);
|
|
void s5p_jpeg_poweron(void __iomem *regs);
|
|
void s5p_jpeg_input_raw_mode(void __iomem *regs, unsigned long mode);
|
|
void s5p_jpeg_proc_mode(void __iomem *regs, unsigned long mode);
|
|
void s5p_jpeg_subsampling_mode(void __iomem *regs, unsigned int mode);
|
|
unsigned int s5p_jpeg_get_subsampling_mode(void __iomem *regs);
|
|
void s5p_jpeg_dri(void __iomem *regs, unsigned int dri);
|
|
void s5p_jpeg_qtbl(void __iomem *regs, unsigned int t, unsigned int n);
|
|
void s5p_jpeg_htbl_ac(void __iomem *regs, unsigned int t);
|
|
void s5p_jpeg_htbl_dc(void __iomem *regs, unsigned int t);
|
|
void s5p_jpeg_y(void __iomem *regs, unsigned int y);
|
|
void s5p_jpeg_x(void __iomem *regs, unsigned int x);
|
|
void s5p_jpeg_rst_int_enable(void __iomem *regs, bool enable);
|
|
void s5p_jpeg_data_num_int_enable(void __iomem *regs, bool enable);
|
|
void s5p_jpeg_final_mcu_num_int_enable(void __iomem *regs, bool enbl);
|
|
int s5p_jpeg_timer_stat(void __iomem *regs);
|
|
void s5p_jpeg_clear_timer_stat(void __iomem *regs);
|
|
void s5p_jpeg_enc_stream_int(void __iomem *regs, unsigned long size);
|
|
int s5p_jpeg_enc_stream_stat(void __iomem *regs);
|
|
void s5p_jpeg_clear_enc_stream_stat(void __iomem *regs);
|
|
void s5p_jpeg_outform_raw(void __iomem *regs, unsigned long format);
|
|
void s5p_jpeg_jpgadr(void __iomem *regs, unsigned long addr);
|
|
void s5p_jpeg_imgadr(void __iomem *regs, unsigned long addr);
|
|
void s5p_jpeg_coef(void __iomem *regs, unsigned int i,
|
|
unsigned int j, unsigned int coef);
|
|
void s5p_jpeg_start(void __iomem *regs);
|
|
int s5p_jpeg_result_stat_ok(void __iomem *regs);
|
|
int s5p_jpeg_stream_stat_ok(void __iomem *regs);
|
|
void s5p_jpeg_clear_int(void __iomem *regs);
|
|
unsigned int s5p_jpeg_compressed_size(void __iomem *regs);
|
|
|
|
#endif /* JPEG_HW_S5P_H_ */
|