2 * Support for Medifield PNW Camera Imaging ISP subsystem.
4 * Copyright (c) 2010 Intel Corporation. All Rights Reserved.
6 * Copyright (c) 2010 Silicon Hive www.siliconhive.com.
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License version
10 * 2 as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
20 #ifndef __ATOMISP_COMMON_H__
21 #define __ATOMISP_COMMON_H__
23 #include "../../include/linux/atomisp.h"
25 #include <linux/v4l2-mediabus.h>
27 #include <media/videobuf-core.h>
29 #include "atomisp_compat.h"
35 extern int mipicsi_flag
;
39 #define CSS_DTRACE_VERBOSITY_LEVEL 5 /* Controls trace verbosity */
40 #define CSS_DTRACE_VERBOSITY_TIMEOUT 9 /* Verbosity on ISP timeout */
41 #define MRFLD_MAX_ZOOM_FACTOR 1024
43 #define ATOMISP_CSS_ISP_PIPE_VERSION_2_2 0
44 #define ATOMISP_CSS_ISP_PIPE_VERSION_2_7 1
47 #define IS_ISP2401(isp) \
48 (((isp)->media_dev.hw_revision & ATOMISP_HW_REVISION_MASK) \
49 >= (ATOMISP_HW_REVISION_ISP2401_LEGACY << ATOMISP_HW_REVISION_SHIFT))
51 struct atomisp_format_bridge
{
52 unsigned int pixelformat
;
55 enum atomisp_css_frame_format sh_fmt
;
56 unsigned char description
[32]; /* the same as struct v4l2_fmtdesc */
71 struct atomisp_buffer
{
72 struct videobuf_buffer vb
;