1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2607ca46eSDavid Howells /* 3607ca46eSDavid Howells * omap3isp.h 4607ca46eSDavid Howells * 5607ca46eSDavid Howells * TI OMAP3 ISP - User-space API 6607ca46eSDavid Howells * 7607ca46eSDavid Howells * Copyright (C) 2010 Nokia Corporation 8607ca46eSDavid Howells * Copyright (C) 2009 Texas Instruments, Inc. 9607ca46eSDavid Howells * 10607ca46eSDavid Howells * Contacts: Laurent Pinchart <laurent.pinchart@ideasonboard.com> 11607ca46eSDavid Howells * Sakari Ailus <sakari.ailus@iki.fi> 12607ca46eSDavid Howells * 13607ca46eSDavid Howells * This program is free software; you can redistribute it and/or modify 14607ca46eSDavid Howells * it under the terms of the GNU General Public License version 2 as 15607ca46eSDavid Howells * published by the Free Software Foundation. 16607ca46eSDavid Howells * 17607ca46eSDavid Howells * This program is distributed in the hope that it will be useful, but 18607ca46eSDavid Howells * WITHOUT ANY WARRANTY; without even the implied warranty of 19607ca46eSDavid Howells * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20607ca46eSDavid Howells * General Public License for more details. 21607ca46eSDavid Howells * 22607ca46eSDavid Howells * You should have received a copy of the GNU General Public License 23607ca46eSDavid Howells * along with this program; if not, write to the Free Software 24607ca46eSDavid Howells * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 25607ca46eSDavid Howells * 02110-1301 USA 26607ca46eSDavid Howells */ 27607ca46eSDavid Howells 28607ca46eSDavid Howells #ifndef OMAP3_ISP_USER_H 29607ca46eSDavid Howells #define OMAP3_ISP_USER_H 30607ca46eSDavid Howells 31607ca46eSDavid Howells #include <linux/types.h> 32607ca46eSDavid Howells #include <linux/videodev2.h> 33607ca46eSDavid Howells 34607ca46eSDavid Howells /* 35607ca46eSDavid Howells * Private IOCTLs 36607ca46eSDavid Howells * 37607ca46eSDavid Howells * VIDIOC_OMAP3ISP_CCDC_CFG: Set CCDC configuration 38607ca46eSDavid Howells * VIDIOC_OMAP3ISP_PRV_CFG: Set preview engine configuration 39607ca46eSDavid Howells * VIDIOC_OMAP3ISP_AEWB_CFG: Set AEWB module configuration 40607ca46eSDavid Howells * VIDIOC_OMAP3ISP_HIST_CFG: Set histogram module configuration 41607ca46eSDavid Howells * VIDIOC_OMAP3ISP_AF_CFG: Set auto-focus module configuration 42607ca46eSDavid Howells * VIDIOC_OMAP3ISP_STAT_REQ: Read statistics (AEWB/AF/histogram) data 43607ca46eSDavid Howells * VIDIOC_OMAP3ISP_STAT_EN: Enable/disable a statistics module 44607ca46eSDavid Howells */ 45607ca46eSDavid Howells 46607ca46eSDavid Howells #define VIDIOC_OMAP3ISP_CCDC_CFG \ 47607ca46eSDavid Howells _IOWR('V', BASE_VIDIOC_PRIVATE + 1, struct omap3isp_ccdc_update_config) 48607ca46eSDavid Howells #define VIDIOC_OMAP3ISP_PRV_CFG \ 49607ca46eSDavid Howells _IOWR('V', BASE_VIDIOC_PRIVATE + 2, struct omap3isp_prev_update_config) 50607ca46eSDavid Howells #define VIDIOC_OMAP3ISP_AEWB_CFG \ 51607ca46eSDavid Howells _IOWR('V', BASE_VIDIOC_PRIVATE + 3, struct omap3isp_h3a_aewb_config) 52607ca46eSDavid Howells #define VIDIOC_OMAP3ISP_HIST_CFG \ 53607ca46eSDavid Howells _IOWR('V', BASE_VIDIOC_PRIVATE + 4, struct omap3isp_hist_config) 54607ca46eSDavid Howells #define VIDIOC_OMAP3ISP_AF_CFG \ 55607ca46eSDavid Howells _IOWR('V', BASE_VIDIOC_PRIVATE + 5, struct omap3isp_h3a_af_config) 56607ca46eSDavid Howells #define VIDIOC_OMAP3ISP_STAT_REQ \ 57607ca46eSDavid Howells _IOWR('V', BASE_VIDIOC_PRIVATE + 6, struct omap3isp_stat_data) 58378e3f81SArnd Bergmann #define VIDIOC_OMAP3ISP_STAT_REQ_TIME32 \ 59378e3f81SArnd Bergmann _IOWR('V', BASE_VIDIOC_PRIVATE + 6, struct omap3isp_stat_data_time32) 60607ca46eSDavid Howells #define VIDIOC_OMAP3ISP_STAT_EN \ 61607ca46eSDavid Howells _IOWR('V', BASE_VIDIOC_PRIVATE + 7, unsigned long) 62607ca46eSDavid Howells 63607ca46eSDavid Howells /* 64607ca46eSDavid Howells * Events 65607ca46eSDavid Howells * 66607ca46eSDavid Howells * V4L2_EVENT_OMAP3ISP_AEWB: AEWB statistics data ready 67607ca46eSDavid Howells * V4L2_EVENT_OMAP3ISP_AF: AF statistics data ready 68607ca46eSDavid Howells * V4L2_EVENT_OMAP3ISP_HIST: Histogram statistics data ready 69607ca46eSDavid Howells */ 70607ca46eSDavid Howells 71607ca46eSDavid Howells #define V4L2_EVENT_OMAP3ISP_CLASS (V4L2_EVENT_PRIVATE_START | 0x100) 72607ca46eSDavid Howells #define V4L2_EVENT_OMAP3ISP_AEWB (V4L2_EVENT_OMAP3ISP_CLASS | 0x1) 73607ca46eSDavid Howells #define V4L2_EVENT_OMAP3ISP_AF (V4L2_EVENT_OMAP3ISP_CLASS | 0x2) 74607ca46eSDavid Howells #define V4L2_EVENT_OMAP3ISP_HIST (V4L2_EVENT_OMAP3ISP_CLASS | 0x3) 75607ca46eSDavid Howells 76607ca46eSDavid Howells struct omap3isp_stat_event_status { 77607ca46eSDavid Howells __u32 frame_number; 78607ca46eSDavid Howells __u16 config_counter; 79607ca46eSDavid Howells __u8 buf_err; 80607ca46eSDavid Howells }; 81607ca46eSDavid Howells 82607ca46eSDavid Howells /* AE/AWB related structures and flags*/ 83607ca46eSDavid Howells 84607ca46eSDavid Howells /* H3A Range Constants */ 85607ca46eSDavid Howells #define OMAP3ISP_AEWB_MAX_SATURATION_LIM 1023 86607ca46eSDavid Howells #define OMAP3ISP_AEWB_MIN_WIN_H 2 87607ca46eSDavid Howells #define OMAP3ISP_AEWB_MAX_WIN_H 256 88607ca46eSDavid Howells #define OMAP3ISP_AEWB_MIN_WIN_W 6 89607ca46eSDavid Howells #define OMAP3ISP_AEWB_MAX_WIN_W 256 90607ca46eSDavid Howells #define OMAP3ISP_AEWB_MIN_WINVC 1 91607ca46eSDavid Howells #define OMAP3ISP_AEWB_MIN_WINHC 1 92607ca46eSDavid Howells #define OMAP3ISP_AEWB_MAX_WINVC 128 93607ca46eSDavid Howells #define OMAP3ISP_AEWB_MAX_WINHC 36 94607ca46eSDavid Howells #define OMAP3ISP_AEWB_MAX_WINSTART 4095 95607ca46eSDavid Howells #define OMAP3ISP_AEWB_MIN_SUB_INC 2 96607ca46eSDavid Howells #define OMAP3ISP_AEWB_MAX_SUB_INC 32 97607ca46eSDavid Howells #define OMAP3ISP_AEWB_MAX_BUF_SIZE 83600 98607ca46eSDavid Howells 99607ca46eSDavid Howells #define OMAP3ISP_AF_IIRSH_MIN 0 100607ca46eSDavid Howells #define OMAP3ISP_AF_IIRSH_MAX 4095 101607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MIN 1 102607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MAX 36 103607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MIN 1 104607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MAX 128 105607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_INCREMENT_MIN 2 106607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_INCREMENT_MAX 32 107607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_HEIGHT_MIN 2 108607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_HEIGHT_MAX 256 109607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_WIDTH_MIN 16 110607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_WIDTH_MAX 256 111607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_HZSTART_MIN 1 112607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_HZSTART_MAX 4095 113607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_VTSTART_MIN 0 114607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_VTSTART_MAX 4095 115607ca46eSDavid Howells #define OMAP3ISP_AF_THRESHOLD_MAX 255 116607ca46eSDavid Howells #define OMAP3ISP_AF_COEF_MAX 4095 117607ca46eSDavid Howells #define OMAP3ISP_AF_PAXEL_SIZE 48 118607ca46eSDavid Howells #define OMAP3ISP_AF_MAX_BUF_SIZE 221184 119607ca46eSDavid Howells 120607ca46eSDavid Howells /** 121607ca46eSDavid Howells * struct omap3isp_h3a_aewb_config - AE AWB configuration reset values 122607ca46eSDavid Howells * saturation_limit: Saturation limit. 123607ca46eSDavid Howells * @win_height: Window Height. Range 2 - 256, even values only. 124607ca46eSDavid Howells * @win_width: Window Width. Range 6 - 256, even values only. 125607ca46eSDavid Howells * @ver_win_count: Vertical Window Count. Range 1 - 128. 126607ca46eSDavid Howells * @hor_win_count: Horizontal Window Count. Range 1 - 36. 127607ca46eSDavid Howells * @ver_win_start: Vertical Window Start. Range 0 - 4095. 128607ca46eSDavid Howells * @hor_win_start: Horizontal Window Start. Range 0 - 4095. 129607ca46eSDavid Howells * @blk_ver_win_start: Black Vertical Windows Start. Range 0 - 4095. 130607ca46eSDavid Howells * @blk_win_height: Black Window Height. Range 2 - 256, even values only. 131607ca46eSDavid Howells * @subsample_ver_inc: Subsample Vertical points increment Range 2 - 32, even 132607ca46eSDavid Howells * values only. 133607ca46eSDavid Howells * @subsample_hor_inc: Subsample Horizontal points increment Range 2 - 32, even 134607ca46eSDavid Howells * values only. 135607ca46eSDavid Howells * @alaw_enable: AEW ALAW EN flag. 136607ca46eSDavid Howells */ 137607ca46eSDavid Howells struct omap3isp_h3a_aewb_config { 138607ca46eSDavid Howells /* 139607ca46eSDavid Howells * Common fields. 140607ca46eSDavid Howells * They should be the first ones and must be in the same order as in 141607ca46eSDavid Howells * ispstat_generic_config struct. 142607ca46eSDavid Howells */ 143607ca46eSDavid Howells __u32 buf_size; 144607ca46eSDavid Howells __u16 config_counter; 145607ca46eSDavid Howells 146607ca46eSDavid Howells /* Private fields */ 147607ca46eSDavid Howells __u16 saturation_limit; 148607ca46eSDavid Howells __u16 win_height; 149607ca46eSDavid Howells __u16 win_width; 150607ca46eSDavid Howells __u16 ver_win_count; 151607ca46eSDavid Howells __u16 hor_win_count; 152607ca46eSDavid Howells __u16 ver_win_start; 153607ca46eSDavid Howells __u16 hor_win_start; 154607ca46eSDavid Howells __u16 blk_ver_win_start; 155607ca46eSDavid Howells __u16 blk_win_height; 156607ca46eSDavid Howells __u16 subsample_ver_inc; 157607ca46eSDavid Howells __u16 subsample_hor_inc; 158607ca46eSDavid Howells __u8 alaw_enable; 159607ca46eSDavid Howells }; 160607ca46eSDavid Howells 161607ca46eSDavid Howells /** 162607ca46eSDavid Howells * struct omap3isp_stat_data - Statistic data sent to or received from user 163607ca46eSDavid Howells * @ts: Timestamp of returned framestats. 164607ca46eSDavid Howells * @buf: Pointer to pass to user. 165*fad27838SKees Cook * @buf_size: Size of buffer. 166607ca46eSDavid Howells * @frame_number: Frame number of requested stats. 167607ca46eSDavid Howells * @cur_frame: Current frame number being processed. 168607ca46eSDavid Howells * @config_counter: Number of the configuration associated with the data. 169607ca46eSDavid Howells */ 170607ca46eSDavid Howells struct omap3isp_stat_data { 171378e3f81SArnd Bergmann #ifdef __KERNEL__ 172378e3f81SArnd Bergmann struct { 173378e3f81SArnd Bergmann __s64 tv_sec; 174378e3f81SArnd Bergmann __s64 tv_usec; 175378e3f81SArnd Bergmann } ts; 176378e3f81SArnd Bergmann #else 177607ca46eSDavid Howells struct timeval ts; 178378e3f81SArnd Bergmann #endif 179607ca46eSDavid Howells void __user *buf; 180*fad27838SKees Cook __struct_group(/* no tag */, frame, /* no attrs */, 181607ca46eSDavid Howells __u32 buf_size; 182607ca46eSDavid Howells __u16 frame_number; 183607ca46eSDavid Howells __u16 cur_frame; 184607ca46eSDavid Howells __u16 config_counter; 185*fad27838SKees Cook ); 186607ca46eSDavid Howells }; 187607ca46eSDavid Howells 188378e3f81SArnd Bergmann #ifdef __KERNEL__ 189378e3f81SArnd Bergmann struct omap3isp_stat_data_time32 { 190378e3f81SArnd Bergmann struct { 191378e3f81SArnd Bergmann __s32 tv_sec; 192378e3f81SArnd Bergmann __s32 tv_usec; 193378e3f81SArnd Bergmann } ts; 194378e3f81SArnd Bergmann __u32 buf; 195*fad27838SKees Cook __struct_group(/* no tag */, frame, /* no attrs */, 196378e3f81SArnd Bergmann __u32 buf_size; 197378e3f81SArnd Bergmann __u16 frame_number; 198378e3f81SArnd Bergmann __u16 cur_frame; 199378e3f81SArnd Bergmann __u16 config_counter; 200*fad27838SKees Cook ); 201378e3f81SArnd Bergmann }; 202378e3f81SArnd Bergmann #endif 203607ca46eSDavid Howells 204607ca46eSDavid Howells /* Histogram related structs */ 205607ca46eSDavid Howells 206607ca46eSDavid Howells /* Flags for number of bins */ 207607ca46eSDavid Howells #define OMAP3ISP_HIST_BINS_32 0 208607ca46eSDavid Howells #define OMAP3ISP_HIST_BINS_64 1 209607ca46eSDavid Howells #define OMAP3ISP_HIST_BINS_128 2 210607ca46eSDavid Howells #define OMAP3ISP_HIST_BINS_256 3 211607ca46eSDavid Howells 212607ca46eSDavid Howells /* Number of bins * 4 colors * 4-bytes word */ 213607ca46eSDavid Howells #define OMAP3ISP_HIST_MEM_SIZE_BINS(n) ((1 << ((n)+5))*4*4) 214607ca46eSDavid Howells 215607ca46eSDavid Howells #define OMAP3ISP_HIST_MEM_SIZE 1024 216607ca46eSDavid Howells #define OMAP3ISP_HIST_MIN_REGIONS 1 217607ca46eSDavid Howells #define OMAP3ISP_HIST_MAX_REGIONS 4 218607ca46eSDavid Howells #define OMAP3ISP_HIST_MAX_WB_GAIN 255 219607ca46eSDavid Howells #define OMAP3ISP_HIST_MIN_WB_GAIN 0 220607ca46eSDavid Howells #define OMAP3ISP_HIST_MAX_BIT_WIDTH 14 221607ca46eSDavid Howells #define OMAP3ISP_HIST_MIN_BIT_WIDTH 8 222607ca46eSDavid Howells #define OMAP3ISP_HIST_MAX_WG 4 223607ca46eSDavid Howells #define OMAP3ISP_HIST_MAX_BUF_SIZE 4096 224607ca46eSDavid Howells 225607ca46eSDavid Howells /* Source */ 226607ca46eSDavid Howells #define OMAP3ISP_HIST_SOURCE_CCDC 0 227607ca46eSDavid Howells #define OMAP3ISP_HIST_SOURCE_MEM 1 228607ca46eSDavid Howells 229607ca46eSDavid Howells /* CFA pattern */ 230607ca46eSDavid Howells #define OMAP3ISP_HIST_CFA_BAYER 0 231607ca46eSDavid Howells #define OMAP3ISP_HIST_CFA_FOVEONX3 1 232607ca46eSDavid Howells 233607ca46eSDavid Howells struct omap3isp_hist_region { 234607ca46eSDavid Howells __u16 h_start; 235607ca46eSDavid Howells __u16 h_end; 236607ca46eSDavid Howells __u16 v_start; 237607ca46eSDavid Howells __u16 v_end; 238607ca46eSDavid Howells }; 239607ca46eSDavid Howells 240607ca46eSDavid Howells struct omap3isp_hist_config { 241607ca46eSDavid Howells /* 242607ca46eSDavid Howells * Common fields. 243607ca46eSDavid Howells * They should be the first ones and must be in the same order as in 244607ca46eSDavid Howells * ispstat_generic_config struct. 245607ca46eSDavid Howells */ 246607ca46eSDavid Howells __u32 buf_size; 247607ca46eSDavid Howells __u16 config_counter; 248607ca46eSDavid Howells 249607ca46eSDavid Howells __u8 num_acc_frames; /* Num of image frames to be processed and 250607ca46eSDavid Howells accumulated for each histogram frame */ 251607ca46eSDavid Howells __u16 hist_bins; /* number of bins: 32, 64, 128, or 256 */ 252607ca46eSDavid Howells __u8 cfa; /* BAYER or FOVEON X3 */ 253607ca46eSDavid Howells __u8 wg[OMAP3ISP_HIST_MAX_WG]; /* White Balance Gain */ 254607ca46eSDavid Howells __u8 num_regions; /* number of regions to be configured */ 255607ca46eSDavid Howells struct omap3isp_hist_region region[OMAP3ISP_HIST_MAX_REGIONS]; 256607ca46eSDavid Howells }; 257607ca46eSDavid Howells 258607ca46eSDavid Howells /* Auto Focus related structs */ 259607ca46eSDavid Howells 260607ca46eSDavid Howells #define OMAP3ISP_AF_NUM_COEF 11 261607ca46eSDavid Howells 262607ca46eSDavid Howells enum omap3isp_h3a_af_fvmode { 263607ca46eSDavid Howells OMAP3ISP_AF_MODE_SUMMED = 0, 264607ca46eSDavid Howells OMAP3ISP_AF_MODE_PEAK = 1 265607ca46eSDavid Howells }; 266607ca46eSDavid Howells 267607ca46eSDavid Howells /* Red, Green, and blue pixel location in the AF windows */ 268607ca46eSDavid Howells enum omap3isp_h3a_af_rgbpos { 269607ca46eSDavid Howells OMAP3ISP_AF_GR_GB_BAYER = 0, /* GR and GB as Bayer pattern */ 270607ca46eSDavid Howells OMAP3ISP_AF_RG_GB_BAYER = 1, /* RG and GB as Bayer pattern */ 271607ca46eSDavid Howells OMAP3ISP_AF_GR_BG_BAYER = 2, /* GR and BG as Bayer pattern */ 272607ca46eSDavid Howells OMAP3ISP_AF_RG_BG_BAYER = 3, /* RG and BG as Bayer pattern */ 273607ca46eSDavid Howells OMAP3ISP_AF_GG_RB_CUSTOM = 4, /* GG and RB as custom pattern */ 274607ca46eSDavid Howells OMAP3ISP_AF_RB_GG_CUSTOM = 5 /* RB and GG as custom pattern */ 275607ca46eSDavid Howells }; 276607ca46eSDavid Howells 277607ca46eSDavid Howells /* Contains the information regarding the Horizontal Median Filter */ 278607ca46eSDavid Howells struct omap3isp_h3a_af_hmf { 279607ca46eSDavid Howells __u8 enable; /* Status of Horizontal Median Filter */ 280607ca46eSDavid Howells __u8 threshold; /* Threshold Value for Horizontal Median Filter */ 281607ca46eSDavid Howells }; 282607ca46eSDavid Howells 283607ca46eSDavid Howells /* Contains the information regarding the IIR Filters */ 284607ca46eSDavid Howells struct omap3isp_h3a_af_iir { 285607ca46eSDavid Howells __u16 h_start; /* IIR horizontal start */ 286607ca46eSDavid Howells __u16 coeff_set0[OMAP3ISP_AF_NUM_COEF]; /* Filter coefficient, set 0 */ 287607ca46eSDavid Howells __u16 coeff_set1[OMAP3ISP_AF_NUM_COEF]; /* Filter coefficient, set 1 */ 288607ca46eSDavid Howells }; 289607ca46eSDavid Howells 290607ca46eSDavid Howells /* Contains the information regarding the Paxels Structure in AF Engine */ 291607ca46eSDavid Howells struct omap3isp_h3a_af_paxel { 292607ca46eSDavid Howells __u16 h_start; /* Horizontal Start Position */ 293607ca46eSDavid Howells __u16 v_start; /* Vertical Start Position */ 294607ca46eSDavid Howells __u8 width; /* Width of the Paxel */ 295607ca46eSDavid Howells __u8 height; /* Height of the Paxel */ 296607ca46eSDavid Howells __u8 h_cnt; /* Horizontal Count */ 297607ca46eSDavid Howells __u8 v_cnt; /* vertical Count */ 298607ca46eSDavid Howells __u8 line_inc; /* Line Increment */ 299607ca46eSDavid Howells }; 300607ca46eSDavid Howells 301607ca46eSDavid Howells /* Contains the parameters required for hardware set up of AF Engine */ 302607ca46eSDavid Howells struct omap3isp_h3a_af_config { 303607ca46eSDavid Howells /* 304607ca46eSDavid Howells * Common fields. 305607ca46eSDavid Howells * They should be the first ones and must be in the same order as in 306607ca46eSDavid Howells * ispstat_generic_config struct. 307607ca46eSDavid Howells */ 308607ca46eSDavid Howells __u32 buf_size; 309607ca46eSDavid Howells __u16 config_counter; 310607ca46eSDavid Howells 311607ca46eSDavid Howells struct omap3isp_h3a_af_hmf hmf; /* HMF configurations */ 312607ca46eSDavid Howells struct omap3isp_h3a_af_iir iir; /* IIR filter configurations */ 313607ca46eSDavid Howells struct omap3isp_h3a_af_paxel paxel; /* Paxel parameters */ 314607ca46eSDavid Howells enum omap3isp_h3a_af_rgbpos rgb_pos; /* RGB Positions */ 315607ca46eSDavid Howells enum omap3isp_h3a_af_fvmode fvmode; /* Accumulator mode */ 316607ca46eSDavid Howells __u8 alaw_enable; /* AF ALAW status */ 317607ca46eSDavid Howells }; 318607ca46eSDavid Howells 319607ca46eSDavid Howells /* ISP CCDC structs */ 320607ca46eSDavid Howells 321607ca46eSDavid Howells /* Abstraction layer CCDC configurations */ 322607ca46eSDavid Howells #define OMAP3ISP_CCDC_ALAW (1 << 0) 323607ca46eSDavid Howells #define OMAP3ISP_CCDC_LPF (1 << 1) 324607ca46eSDavid Howells #define OMAP3ISP_CCDC_BLCLAMP (1 << 2) 325607ca46eSDavid Howells #define OMAP3ISP_CCDC_BCOMP (1 << 3) 326607ca46eSDavid Howells #define OMAP3ISP_CCDC_FPC (1 << 4) 327607ca46eSDavid Howells #define OMAP3ISP_CCDC_CULL (1 << 5) 328607ca46eSDavid Howells #define OMAP3ISP_CCDC_CONFIG_LSC (1 << 7) 329607ca46eSDavid Howells #define OMAP3ISP_CCDC_TBL_LSC (1 << 8) 330607ca46eSDavid Howells 331607ca46eSDavid Howells #define OMAP3ISP_RGB_MAX 3 332607ca46eSDavid Howells 333607ca46eSDavid Howells /* Enumeration constants for Alaw input width */ 334607ca46eSDavid Howells enum omap3isp_alaw_ipwidth { 335607ca46eSDavid Howells OMAP3ISP_ALAW_BIT12_3 = 0x3, 336607ca46eSDavid Howells OMAP3ISP_ALAW_BIT11_2 = 0x4, 337607ca46eSDavid Howells OMAP3ISP_ALAW_BIT10_1 = 0x5, 338607ca46eSDavid Howells OMAP3ISP_ALAW_BIT9_0 = 0x6 339607ca46eSDavid Howells }; 340607ca46eSDavid Howells 341607ca46eSDavid Howells /** 342607ca46eSDavid Howells * struct omap3isp_ccdc_lsc_config - LSC configuration 343607ca46eSDavid Howells * @offset: Table Offset of the gain table. 344607ca46eSDavid Howells * @gain_mode_n: Vertical dimension of a paxel in LSC configuration. 345607ca46eSDavid Howells * @gain_mode_m: Horizontal dimension of a paxel in LSC configuration. 346607ca46eSDavid Howells * @gain_format: Gain table format. 347607ca46eSDavid Howells * @fmtsph: Start pixel horizontal from start of the HS sync pulse. 348607ca46eSDavid Howells * @fmtlnh: Number of pixels in horizontal direction to use for the data 349607ca46eSDavid Howells * reformatter. 350607ca46eSDavid Howells * @fmtslv: Start line from start of VS sync pulse for the data reformatter. 351607ca46eSDavid Howells * @fmtlnv: Number of lines in vertical direction for the data reformatter. 352607ca46eSDavid Howells * @initial_x: X position, in pixels, of the first active pixel in reference 353607ca46eSDavid Howells * to the first active paxel. Must be an even number. 354607ca46eSDavid Howells * @initial_y: Y position, in pixels, of the first active pixel in reference 355607ca46eSDavid Howells * to the first active paxel. Must be an even number. 356607ca46eSDavid Howells * @size: Size of LSC gain table. Filled when loaded from userspace. 357607ca46eSDavid Howells */ 358607ca46eSDavid Howells struct omap3isp_ccdc_lsc_config { 359607ca46eSDavid Howells __u16 offset; 360607ca46eSDavid Howells __u8 gain_mode_n; 361607ca46eSDavid Howells __u8 gain_mode_m; 362607ca46eSDavid Howells __u8 gain_format; 363607ca46eSDavid Howells __u16 fmtsph; 364607ca46eSDavid Howells __u16 fmtlnh; 365607ca46eSDavid Howells __u16 fmtslv; 366607ca46eSDavid Howells __u16 fmtlnv; 367607ca46eSDavid Howells __u8 initial_x; 368607ca46eSDavid Howells __u8 initial_y; 369607ca46eSDavid Howells __u32 size; 370607ca46eSDavid Howells }; 371607ca46eSDavid Howells 372607ca46eSDavid Howells /** 373607ca46eSDavid Howells * struct omap3isp_ccdc_bclamp - Optical & Digital black clamp subtract 374607ca46eSDavid Howells * @obgain: Optical black average gain. 375607ca46eSDavid Howells * @obstpixel: Start Pixel w.r.t. HS pulse in Optical black sample. 376607ca46eSDavid Howells * @oblines: Optical Black Sample lines. 377607ca46eSDavid Howells * @oblen: Optical Black Sample Length. 378607ca46eSDavid Howells * @dcsubval: Digital Black Clamp subtract value. 379607ca46eSDavid Howells */ 380607ca46eSDavid Howells struct omap3isp_ccdc_bclamp { 381607ca46eSDavid Howells __u8 obgain; 382607ca46eSDavid Howells __u8 obstpixel; 383607ca46eSDavid Howells __u8 oblines; 384607ca46eSDavid Howells __u8 oblen; 385607ca46eSDavid Howells __u16 dcsubval; 386607ca46eSDavid Howells }; 387607ca46eSDavid Howells 388607ca46eSDavid Howells /** 389607ca46eSDavid Howells * struct omap3isp_ccdc_fpc - Faulty Pixels Correction 390607ca46eSDavid Howells * @fpnum: Number of faulty pixels to be corrected in the frame. 391607ca46eSDavid Howells * @fpcaddr: Memory address of the FPC Table 392607ca46eSDavid Howells */ 393607ca46eSDavid Howells struct omap3isp_ccdc_fpc { 394607ca46eSDavid Howells __u16 fpnum; 395607ca46eSDavid Howells __u32 fpcaddr; 396607ca46eSDavid Howells }; 397607ca46eSDavid Howells 398607ca46eSDavid Howells /** 399607ca46eSDavid Howells * struct omap3isp_ccdc_blcomp - Black Level Compensation parameters 400607ca46eSDavid Howells * @b_mg: B/Mg pixels. 2's complement. -128 to +127. 401607ca46eSDavid Howells * @gb_g: Gb/G pixels. 2's complement. -128 to +127. 402607ca46eSDavid Howells * @gr_cy: Gr/Cy pixels. 2's complement. -128 to +127. 403607ca46eSDavid Howells * @r_ye: R/Ye pixels. 2's complement. -128 to +127. 404607ca46eSDavid Howells */ 405607ca46eSDavid Howells struct omap3isp_ccdc_blcomp { 406607ca46eSDavid Howells __u8 b_mg; 407607ca46eSDavid Howells __u8 gb_g; 408607ca46eSDavid Howells __u8 gr_cy; 409607ca46eSDavid Howells __u8 r_ye; 410607ca46eSDavid Howells }; 411607ca46eSDavid Howells 412607ca46eSDavid Howells /** 413607ca46eSDavid Howells * omap3isp_ccdc_culling - Culling parameters 414607ca46eSDavid Howells * @v_pattern: Vertical culling pattern. 415607ca46eSDavid Howells * @h_odd: Horizontal Culling pattern for odd lines. 416607ca46eSDavid Howells * @h_even: Horizontal Culling pattern for even lines. 417607ca46eSDavid Howells */ 418607ca46eSDavid Howells struct omap3isp_ccdc_culling { 419607ca46eSDavid Howells __u8 v_pattern; 420607ca46eSDavid Howells __u16 h_odd; 421607ca46eSDavid Howells __u16 h_even; 422607ca46eSDavid Howells }; 423607ca46eSDavid Howells 424607ca46eSDavid Howells /** 425607ca46eSDavid Howells * omap3isp_ccdc_update_config - CCDC configuration 426607ca46eSDavid Howells * @update: Specifies which CCDC registers should be updated. 427607ca46eSDavid Howells * @flag: Specifies which CCDC functions should be enabled. 428607ca46eSDavid Howells * @alawip: Enable/Disable A-Law compression. 429607ca46eSDavid Howells * @bclamp: Black clamp control register. 430607ca46eSDavid Howells * @blcomp: Black level compensation value for RGrGbB Pixels. 2's complement. 431607ca46eSDavid Howells * @fpc: Number of faulty pixels corrected in the frame, address of FPC table. 432607ca46eSDavid Howells * @cull: Cull control register. 433607ca46eSDavid Howells * @lsc: Pointer to LSC gain table. 434607ca46eSDavid Howells */ 435607ca46eSDavid Howells struct omap3isp_ccdc_update_config { 436607ca46eSDavid Howells __u16 update; 437607ca46eSDavid Howells __u16 flag; 438607ca46eSDavid Howells enum omap3isp_alaw_ipwidth alawip; 439607ca46eSDavid Howells struct omap3isp_ccdc_bclamp __user *bclamp; 440607ca46eSDavid Howells struct omap3isp_ccdc_blcomp __user *blcomp; 441607ca46eSDavid Howells struct omap3isp_ccdc_fpc __user *fpc; 442607ca46eSDavid Howells struct omap3isp_ccdc_lsc_config __user *lsc_cfg; 443607ca46eSDavid Howells struct omap3isp_ccdc_culling __user *cull; 444607ca46eSDavid Howells __u8 __user *lsc; 445607ca46eSDavid Howells }; 446607ca46eSDavid Howells 447607ca46eSDavid Howells /* Preview configurations */ 448607ca46eSDavid Howells #define OMAP3ISP_PREV_LUMAENH (1 << 0) 449607ca46eSDavid Howells #define OMAP3ISP_PREV_INVALAW (1 << 1) 450607ca46eSDavid Howells #define OMAP3ISP_PREV_HRZ_MED (1 << 2) 451607ca46eSDavid Howells #define OMAP3ISP_PREV_CFA (1 << 3) 452607ca46eSDavid Howells #define OMAP3ISP_PREV_CHROMA_SUPP (1 << 4) 453607ca46eSDavid Howells #define OMAP3ISP_PREV_WB (1 << 5) 454607ca46eSDavid Howells #define OMAP3ISP_PREV_BLKADJ (1 << 6) 455607ca46eSDavid Howells #define OMAP3ISP_PREV_RGB2RGB (1 << 7) 456607ca46eSDavid Howells #define OMAP3ISP_PREV_COLOR_CONV (1 << 8) 457607ca46eSDavid Howells #define OMAP3ISP_PREV_YC_LIMIT (1 << 9) 458607ca46eSDavid Howells #define OMAP3ISP_PREV_DEFECT_COR (1 << 10) 459607ca46eSDavid Howells /* Bit 11 was OMAP3ISP_PREV_GAMMABYPASS, now merged with OMAP3ISP_PREV_GAMMA */ 460607ca46eSDavid Howells #define OMAP3ISP_PREV_DRK_FRM_CAPTURE (1 << 12) 461607ca46eSDavid Howells #define OMAP3ISP_PREV_DRK_FRM_SUBTRACT (1 << 13) 462607ca46eSDavid Howells #define OMAP3ISP_PREV_LENS_SHADING (1 << 14) 463607ca46eSDavid Howells #define OMAP3ISP_PREV_NF (1 << 15) 464607ca46eSDavid Howells #define OMAP3ISP_PREV_GAMMA (1 << 16) 465607ca46eSDavid Howells 466607ca46eSDavid Howells #define OMAP3ISP_PREV_NF_TBL_SIZE 64 467607ca46eSDavid Howells #define OMAP3ISP_PREV_CFA_TBL_SIZE 576 468607ca46eSDavid Howells #define OMAP3ISP_PREV_CFA_BLK_SIZE (OMAP3ISP_PREV_CFA_TBL_SIZE / 4) 469607ca46eSDavid Howells #define OMAP3ISP_PREV_GAMMA_TBL_SIZE 1024 470607ca46eSDavid Howells #define OMAP3ISP_PREV_YENH_TBL_SIZE 128 471607ca46eSDavid Howells 472607ca46eSDavid Howells #define OMAP3ISP_PREV_DETECT_CORRECT_CHANNELS 4 473607ca46eSDavid Howells 474607ca46eSDavid Howells /** 475607ca46eSDavid Howells * struct omap3isp_prev_hmed - Horizontal Median Filter 476607ca46eSDavid Howells * @odddist: Distance between consecutive pixels of same color in the odd line. 477607ca46eSDavid Howells * @evendist: Distance between consecutive pixels of same color in the even 478607ca46eSDavid Howells * line. 479607ca46eSDavid Howells * @thres: Horizontal median filter threshold. 480607ca46eSDavid Howells */ 481607ca46eSDavid Howells struct omap3isp_prev_hmed { 482607ca46eSDavid Howells __u8 odddist; 483607ca46eSDavid Howells __u8 evendist; 484607ca46eSDavid Howells __u8 thres; 485607ca46eSDavid Howells }; 486607ca46eSDavid Howells 487607ca46eSDavid Howells /* 488607ca46eSDavid Howells * Enumeration for CFA Formats supported by preview 489607ca46eSDavid Howells */ 490607ca46eSDavid Howells enum omap3isp_cfa_fmt { 491607ca46eSDavid Howells OMAP3ISP_CFAFMT_BAYER, 492607ca46eSDavid Howells OMAP3ISP_CFAFMT_SONYVGA, 493607ca46eSDavid Howells OMAP3ISP_CFAFMT_RGBFOVEON, 494607ca46eSDavid Howells OMAP3ISP_CFAFMT_DNSPL, 495607ca46eSDavid Howells OMAP3ISP_CFAFMT_HONEYCOMB, 496607ca46eSDavid Howells OMAP3ISP_CFAFMT_RRGGBBFOVEON 497607ca46eSDavid Howells }; 498607ca46eSDavid Howells 499607ca46eSDavid Howells /** 500607ca46eSDavid Howells * struct omap3isp_prev_cfa - CFA Interpolation 501607ca46eSDavid Howells * @format: CFA Format Enum value supported by preview. 502607ca46eSDavid Howells * @gradthrs_vert: CFA Gradient Threshold - Vertical. 503607ca46eSDavid Howells * @gradthrs_horz: CFA Gradient Threshold - Horizontal. 504607ca46eSDavid Howells * @table: Pointer to the CFA table. 505607ca46eSDavid Howells */ 506607ca46eSDavid Howells struct omap3isp_prev_cfa { 507607ca46eSDavid Howells enum omap3isp_cfa_fmt format; 508607ca46eSDavid Howells __u8 gradthrs_vert; 509607ca46eSDavid Howells __u8 gradthrs_horz; 510607ca46eSDavid Howells __u32 table[4][OMAP3ISP_PREV_CFA_BLK_SIZE]; 511607ca46eSDavid Howells }; 512607ca46eSDavid Howells 513607ca46eSDavid Howells /** 514607ca46eSDavid Howells * struct omap3isp_prev_csup - Chrominance Suppression 515607ca46eSDavid Howells * @gain: Gain. 516607ca46eSDavid Howells * @thres: Threshold. 517607ca46eSDavid Howells * @hypf_en: Flag to enable/disable the High Pass Filter. 518607ca46eSDavid Howells */ 519607ca46eSDavid Howells struct omap3isp_prev_csup { 520607ca46eSDavid Howells __u8 gain; 521607ca46eSDavid Howells __u8 thres; 522607ca46eSDavid Howells __u8 hypf_en; 523607ca46eSDavid Howells }; 524607ca46eSDavid Howells 525607ca46eSDavid Howells /** 526607ca46eSDavid Howells * struct omap3isp_prev_wbal - White Balance 527607ca46eSDavid Howells * @dgain: Digital gain (U10Q8). 528607ca46eSDavid Howells * @coef3: White balance gain - COEF 3 (U8Q5). 529607ca46eSDavid Howells * @coef2: White balance gain - COEF 2 (U8Q5). 530607ca46eSDavid Howells * @coef1: White balance gain - COEF 1 (U8Q5). 531607ca46eSDavid Howells * @coef0: White balance gain - COEF 0 (U8Q5). 532607ca46eSDavid Howells */ 533607ca46eSDavid Howells struct omap3isp_prev_wbal { 534607ca46eSDavid Howells __u16 dgain; 535607ca46eSDavid Howells __u8 coef3; 536607ca46eSDavid Howells __u8 coef2; 537607ca46eSDavid Howells __u8 coef1; 538607ca46eSDavid Howells __u8 coef0; 539607ca46eSDavid Howells }; 540607ca46eSDavid Howells 541607ca46eSDavid Howells /** 542607ca46eSDavid Howells * struct omap3isp_prev_blkadj - Black Level Adjustment 543607ca46eSDavid Howells * @red: Black level offset adjustment for Red in 2's complement format 544607ca46eSDavid Howells * @green: Black level offset adjustment for Green in 2's complement format 545607ca46eSDavid Howells * @blue: Black level offset adjustment for Blue in 2's complement format 546607ca46eSDavid Howells */ 547607ca46eSDavid Howells struct omap3isp_prev_blkadj { 548607ca46eSDavid Howells /*Black level offset adjustment for Red in 2's complement format */ 549607ca46eSDavid Howells __u8 red; 550607ca46eSDavid Howells /*Black level offset adjustment for Green in 2's complement format */ 551607ca46eSDavid Howells __u8 green; 552607ca46eSDavid Howells /* Black level offset adjustment for Blue in 2's complement format */ 553607ca46eSDavid Howells __u8 blue; 554607ca46eSDavid Howells }; 555607ca46eSDavid Howells 556607ca46eSDavid Howells /** 557607ca46eSDavid Howells * struct omap3isp_prev_rgbtorgb - RGB to RGB Blending 558607ca46eSDavid Howells * @matrix: Blending values(S12Q8 format) 559607ca46eSDavid Howells * [RR] [GR] [BR] 560607ca46eSDavid Howells * [RG] [GG] [BG] 561607ca46eSDavid Howells * [RB] [GB] [BB] 562607ca46eSDavid Howells * @offset: Blending offset value for R,G,B in 2's complement integer format. 563607ca46eSDavid Howells */ 564607ca46eSDavid Howells struct omap3isp_prev_rgbtorgb { 565607ca46eSDavid Howells __u16 matrix[OMAP3ISP_RGB_MAX][OMAP3ISP_RGB_MAX]; 566607ca46eSDavid Howells __u16 offset[OMAP3ISP_RGB_MAX]; 567607ca46eSDavid Howells }; 568607ca46eSDavid Howells 569607ca46eSDavid Howells /** 570607ca46eSDavid Howells * struct omap3isp_prev_csc - Color Space Conversion from RGB-YCbYCr 571607ca46eSDavid Howells * @matrix: Color space conversion coefficients(S10Q8) 572607ca46eSDavid Howells * [CSCRY] [CSCGY] [CSCBY] 573607ca46eSDavid Howells * [CSCRCB] [CSCGCB] [CSCBCB] 574607ca46eSDavid Howells * [CSCRCR] [CSCGCR] [CSCBCR] 575607ca46eSDavid Howells * @offset: CSC offset values for Y offset, CB offset and CR offset respectively 576607ca46eSDavid Howells */ 577607ca46eSDavid Howells struct omap3isp_prev_csc { 578607ca46eSDavid Howells __u16 matrix[OMAP3ISP_RGB_MAX][OMAP3ISP_RGB_MAX]; 579607ca46eSDavid Howells __s16 offset[OMAP3ISP_RGB_MAX]; 580607ca46eSDavid Howells }; 581607ca46eSDavid Howells 582607ca46eSDavid Howells /** 583607ca46eSDavid Howells * struct omap3isp_prev_yclimit - Y, C Value Limit 584607ca46eSDavid Howells * @minC: Minimum C value 585607ca46eSDavid Howells * @maxC: Maximum C value 586607ca46eSDavid Howells * @minY: Minimum Y value 587607ca46eSDavid Howells * @maxY: Maximum Y value 588607ca46eSDavid Howells */ 589607ca46eSDavid Howells struct omap3isp_prev_yclimit { 590607ca46eSDavid Howells __u8 minC; 591607ca46eSDavid Howells __u8 maxC; 592607ca46eSDavid Howells __u8 minY; 593607ca46eSDavid Howells __u8 maxY; 594607ca46eSDavid Howells }; 595607ca46eSDavid Howells 596607ca46eSDavid Howells /** 597607ca46eSDavid Howells * struct omap3isp_prev_dcor - Defect correction 598607ca46eSDavid Howells * @couplet_mode_en: Flag to enable or disable the couplet dc Correction in NF 599607ca46eSDavid Howells * @detect_correct: Thresholds for correction bit 0:10 detect 16:25 correct 600607ca46eSDavid Howells */ 601607ca46eSDavid Howells struct omap3isp_prev_dcor { 602607ca46eSDavid Howells __u8 couplet_mode_en; 603607ca46eSDavid Howells __u32 detect_correct[OMAP3ISP_PREV_DETECT_CORRECT_CHANNELS]; 604607ca46eSDavid Howells }; 605607ca46eSDavid Howells 606607ca46eSDavid Howells /** 607607ca46eSDavid Howells * struct omap3isp_prev_nf - Noise Filter 608607ca46eSDavid Howells * @spread: Spread value to be used in Noise Filter 609607ca46eSDavid Howells * @table: Pointer to the Noise Filter table 610607ca46eSDavid Howells */ 611607ca46eSDavid Howells struct omap3isp_prev_nf { 612607ca46eSDavid Howells __u8 spread; 613607ca46eSDavid Howells __u32 table[OMAP3ISP_PREV_NF_TBL_SIZE]; 614607ca46eSDavid Howells }; 615607ca46eSDavid Howells 616607ca46eSDavid Howells /** 617607ca46eSDavid Howells * struct omap3isp_prev_gtables - Gamma correction tables 618607ca46eSDavid Howells * @red: Array for red gamma table. 619607ca46eSDavid Howells * @green: Array for green gamma table. 620607ca46eSDavid Howells * @blue: Array for blue gamma table. 621607ca46eSDavid Howells */ 622607ca46eSDavid Howells struct omap3isp_prev_gtables { 623607ca46eSDavid Howells __u32 red[OMAP3ISP_PREV_GAMMA_TBL_SIZE]; 624607ca46eSDavid Howells __u32 green[OMAP3ISP_PREV_GAMMA_TBL_SIZE]; 625607ca46eSDavid Howells __u32 blue[OMAP3ISP_PREV_GAMMA_TBL_SIZE]; 626607ca46eSDavid Howells }; 627607ca46eSDavid Howells 628607ca46eSDavid Howells /** 629607ca46eSDavid Howells * struct omap3isp_prev_luma - Luma enhancement 630607ca46eSDavid Howells * @table: Array for luma enhancement table. 631607ca46eSDavid Howells */ 632607ca46eSDavid Howells struct omap3isp_prev_luma { 633607ca46eSDavid Howells __u32 table[OMAP3ISP_PREV_YENH_TBL_SIZE]; 634607ca46eSDavid Howells }; 635607ca46eSDavid Howells 636607ca46eSDavid Howells /** 637607ca46eSDavid Howells * struct omap3isp_prev_update_config - Preview engine configuration (user) 638607ca46eSDavid Howells * @update: Specifies which ISP Preview registers should be updated. 639607ca46eSDavid Howells * @flag: Specifies which ISP Preview functions should be enabled. 640607ca46eSDavid Howells * @shading_shift: 3bit value of shift used in shading compensation. 641607ca46eSDavid Howells * @luma: Pointer to luma enhancement structure. 642607ca46eSDavid Howells * @hmed: Pointer to structure containing the odd and even distance. 643607ca46eSDavid Howells * between the pixels in the image along with the filter threshold. 644607ca46eSDavid Howells * @cfa: Pointer to structure containing the CFA interpolation table, CFA. 645607ca46eSDavid Howells * format in the image, vertical and horizontal gradient threshold. 646607ca46eSDavid Howells * @csup: Pointer to Structure for Chrominance Suppression coefficients. 647607ca46eSDavid Howells * @wbal: Pointer to structure for White Balance. 648607ca46eSDavid Howells * @blkadj: Pointer to structure for Black Adjustment. 649607ca46eSDavid Howells * @rgb2rgb: Pointer to structure for RGB to RGB Blending. 650607ca46eSDavid Howells * @csc: Pointer to structure for Color Space Conversion from RGB-YCbYCr. 651607ca46eSDavid Howells * @yclimit: Pointer to structure for Y, C Value Limit. 652607ca46eSDavid Howells * @dcor: Pointer to structure for defect correction. 653607ca46eSDavid Howells * @nf: Pointer to structure for Noise Filter 654607ca46eSDavid Howells * @gamma: Pointer to gamma structure. 655607ca46eSDavid Howells */ 656607ca46eSDavid Howells struct omap3isp_prev_update_config { 657607ca46eSDavid Howells __u32 update; 658607ca46eSDavid Howells __u32 flag; 659607ca46eSDavid Howells __u32 shading_shift; 660607ca46eSDavid Howells struct omap3isp_prev_luma __user *luma; 661607ca46eSDavid Howells struct omap3isp_prev_hmed __user *hmed; 662607ca46eSDavid Howells struct omap3isp_prev_cfa __user *cfa; 663607ca46eSDavid Howells struct omap3isp_prev_csup __user *csup; 664607ca46eSDavid Howells struct omap3isp_prev_wbal __user *wbal; 665607ca46eSDavid Howells struct omap3isp_prev_blkadj __user *blkadj; 666607ca46eSDavid Howells struct omap3isp_prev_rgbtorgb __user *rgb2rgb; 667607ca46eSDavid Howells struct omap3isp_prev_csc __user *csc; 668607ca46eSDavid Howells struct omap3isp_prev_yclimit __user *yclimit; 669607ca46eSDavid Howells struct omap3isp_prev_dcor __user *dcor; 670607ca46eSDavid Howells struct omap3isp_prev_nf __user *nf; 671607ca46eSDavid Howells struct omap3isp_prev_gtables __user *gamma; 672607ca46eSDavid Howells }; 673607ca46eSDavid Howells 674607ca46eSDavid Howells #endif /* OMAP3_ISP_USER_H */ 675