1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef OMAP3_ISP_USER_H
20 #define OMAP3_ISP_USER_H
21 #include <linux/types.h>
22 #include <linux/videodev2.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define VIDIOC_OMAP3ISP_CCDC_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 1, struct omap3isp_ccdc_update_config)
25 #define VIDIOC_OMAP3ISP_PRV_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 2, struct omap3isp_prev_update_config)
26 #define VIDIOC_OMAP3ISP_AEWB_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 3, struct omap3isp_h3a_aewb_config)
27 #define VIDIOC_OMAP3ISP_HIST_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 4, struct omap3isp_hist_config)
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define VIDIOC_OMAP3ISP_AF_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 5, struct omap3isp_h3a_af_config)
30 #define VIDIOC_OMAP3ISP_STAT_REQ _IOWR('V', BASE_VIDIOC_PRIVATE + 6, struct omap3isp_stat_data)
31 #define VIDIOC_OMAP3ISP_STAT_EN _IOWR('V', BASE_VIDIOC_PRIVATE + 7, unsigned long)
32 #define V4L2_EVENT_OMAP3ISP_CLASS (V4L2_EVENT_PRIVATE_START | 0x100)
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define V4L2_EVENT_OMAP3ISP_AEWB (V4L2_EVENT_OMAP3ISP_CLASS | 0x1)
35 #define V4L2_EVENT_OMAP3ISP_AF (V4L2_EVENT_OMAP3ISP_CLASS | 0x2)
36 #define V4L2_EVENT_OMAP3ISP_HIST (V4L2_EVENT_OMAP3ISP_CLASS | 0x3)
37 struct omap3isp_stat_event_status {
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39   __u32 frame_number;
40   __u16 config_counter;
41   __u8 buf_err;
42 };
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define OMAP3ISP_AEWB_MAX_SATURATION_LIM 1023
45 #define OMAP3ISP_AEWB_MIN_WIN_H 2
46 #define OMAP3ISP_AEWB_MAX_WIN_H 256
47 #define OMAP3ISP_AEWB_MIN_WIN_W 6
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define OMAP3ISP_AEWB_MAX_WIN_W 256
50 #define OMAP3ISP_AEWB_MIN_WINVC 1
51 #define OMAP3ISP_AEWB_MIN_WINHC 1
52 #define OMAP3ISP_AEWB_MAX_WINVC 128
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define OMAP3ISP_AEWB_MAX_WINHC 36
55 #define OMAP3ISP_AEWB_MAX_WINSTART 4095
56 #define OMAP3ISP_AEWB_MIN_SUB_INC 2
57 #define OMAP3ISP_AEWB_MAX_SUB_INC 32
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define OMAP3ISP_AEWB_MAX_BUF_SIZE 83600
60 #define OMAP3ISP_AF_IIRSH_MIN 0
61 #define OMAP3ISP_AF_IIRSH_MAX 4095
62 #define OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MIN 1
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MAX 36
65 #define OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MIN 1
66 #define OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MAX 128
67 #define OMAP3ISP_AF_PAXEL_INCREMENT_MIN 2
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define OMAP3ISP_AF_PAXEL_INCREMENT_MAX 32
70 #define OMAP3ISP_AF_PAXEL_HEIGHT_MIN 2
71 #define OMAP3ISP_AF_PAXEL_HEIGHT_MAX 256
72 #define OMAP3ISP_AF_PAXEL_WIDTH_MIN 16
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define OMAP3ISP_AF_PAXEL_WIDTH_MAX 256
75 #define OMAP3ISP_AF_PAXEL_HZSTART_MIN 1
76 #define OMAP3ISP_AF_PAXEL_HZSTART_MAX 4095
77 #define OMAP3ISP_AF_PAXEL_VTSTART_MIN 0
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 #define OMAP3ISP_AF_PAXEL_VTSTART_MAX 4095
80 #define OMAP3ISP_AF_THRESHOLD_MAX 255
81 #define OMAP3ISP_AF_COEF_MAX 4095
82 #define OMAP3ISP_AF_PAXEL_SIZE 48
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #define OMAP3ISP_AF_MAX_BUF_SIZE 221184
85 struct omap3isp_h3a_aewb_config {
86   __u32 buf_size;
87   __u16 config_counter;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89   __u16 saturation_limit;
90   __u16 win_height;
91   __u16 win_width;
92   __u16 ver_win_count;
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94   __u16 hor_win_count;
95   __u16 ver_win_start;
96   __u16 hor_win_start;
97   __u16 blk_ver_win_start;
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99   __u16 blk_win_height;
100   __u16 subsample_ver_inc;
101   __u16 subsample_hor_inc;
102   __u8 alaw_enable;
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 };
105 struct omap3isp_stat_data {
106   struct timeval ts;
107   void __user * buf;
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109   __u32 buf_size;
110   __u16 frame_number;
111   __u16 cur_frame;
112   __u16 config_counter;
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 };
115 #define OMAP3ISP_HIST_BINS_32 0
116 #define OMAP3ISP_HIST_BINS_64 1
117 #define OMAP3ISP_HIST_BINS_128 2
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 #define OMAP3ISP_HIST_BINS_256 3
120 #define OMAP3ISP_HIST_MEM_SIZE_BINS(n) ((1 << ((n) + 5)) * 4 * 4)
121 #define OMAP3ISP_HIST_MEM_SIZE 1024
122 #define OMAP3ISP_HIST_MIN_REGIONS 1
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 #define OMAP3ISP_HIST_MAX_REGIONS 4
125 #define OMAP3ISP_HIST_MAX_WB_GAIN 255
126 #define OMAP3ISP_HIST_MIN_WB_GAIN 0
127 #define OMAP3ISP_HIST_MAX_BIT_WIDTH 14
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 #define OMAP3ISP_HIST_MIN_BIT_WIDTH 8
130 #define OMAP3ISP_HIST_MAX_WG 4
131 #define OMAP3ISP_HIST_MAX_BUF_SIZE 4096
132 #define OMAP3ISP_HIST_SOURCE_CCDC 0
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 #define OMAP3ISP_HIST_SOURCE_MEM 1
135 #define OMAP3ISP_HIST_CFA_BAYER 0
136 #define OMAP3ISP_HIST_CFA_FOVEONX3 1
137 struct omap3isp_hist_region {
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139   __u16 h_start;
140   __u16 h_end;
141   __u16 v_start;
142   __u16 v_end;
143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 };
145 struct omap3isp_hist_config {
146   __u32 buf_size;
147   __u16 config_counter;
148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149   __u8 num_acc_frames;
150   __u16 hist_bins;
151   __u8 cfa;
152   __u8 wg[OMAP3ISP_HIST_MAX_WG];
153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154   __u8 num_regions;
155   struct omap3isp_hist_region region[OMAP3ISP_HIST_MAX_REGIONS];
156 };
157 #define OMAP3ISP_AF_NUM_COEF 11
158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 enum omap3isp_h3a_af_fvmode {
160   OMAP3ISP_AF_MODE_SUMMED = 0,
161   OMAP3ISP_AF_MODE_PEAK = 1
162 };
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 enum omap3isp_h3a_af_rgbpos {
165   OMAP3ISP_AF_GR_GB_BAYER = 0,
166   OMAP3ISP_AF_RG_GB_BAYER = 1,
167   OMAP3ISP_AF_GR_BG_BAYER = 2,
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169   OMAP3ISP_AF_RG_BG_BAYER = 3,
170   OMAP3ISP_AF_GG_RB_CUSTOM = 4,
171   OMAP3ISP_AF_RB_GG_CUSTOM = 5
172 };
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174 struct omap3isp_h3a_af_hmf {
175   __u8 enable;
176   __u8 threshold;
177 };
178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179 struct omap3isp_h3a_af_iir {
180   __u16 h_start;
181   __u16 coeff_set0[OMAP3ISP_AF_NUM_COEF];
182   __u16 coeff_set1[OMAP3ISP_AF_NUM_COEF];
183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184 };
185 struct omap3isp_h3a_af_paxel {
186   __u16 h_start;
187   __u16 v_start;
188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189   __u8 width;
190   __u8 height;
191   __u8 h_cnt;
192   __u8 v_cnt;
193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194   __u8 line_inc;
195 };
196 struct omap3isp_h3a_af_config {
197   __u32 buf_size;
198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199   __u16 config_counter;
200   struct omap3isp_h3a_af_hmf hmf;
201   struct omap3isp_h3a_af_iir iir;
202   struct omap3isp_h3a_af_paxel paxel;
203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204   enum omap3isp_h3a_af_rgbpos rgb_pos;
205   enum omap3isp_h3a_af_fvmode fvmode;
206   __u8 alaw_enable;
207 };
208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209 #define OMAP3ISP_CCDC_ALAW (1 << 0)
210 #define OMAP3ISP_CCDC_LPF (1 << 1)
211 #define OMAP3ISP_CCDC_BLCLAMP (1 << 2)
212 #define OMAP3ISP_CCDC_BCOMP (1 << 3)
213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214 #define OMAP3ISP_CCDC_FPC (1 << 4)
215 #define OMAP3ISP_CCDC_CULL (1 << 5)
216 #define OMAP3ISP_CCDC_CONFIG_LSC (1 << 7)
217 #define OMAP3ISP_CCDC_TBL_LSC (1 << 8)
218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219 #define OMAP3ISP_RGB_MAX 3
220 enum omap3isp_alaw_ipwidth {
221   OMAP3ISP_ALAW_BIT12_3 = 0x3,
222   OMAP3ISP_ALAW_BIT11_2 = 0x4,
223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224   OMAP3ISP_ALAW_BIT10_1 = 0x5,
225   OMAP3ISP_ALAW_BIT9_0 = 0x6
226 };
227 struct omap3isp_ccdc_lsc_config {
228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229   __u16 offset;
230   __u8 gain_mode_n;
231   __u8 gain_mode_m;
232   __u8 gain_format;
233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234   __u16 fmtsph;
235   __u16 fmtlnh;
236   __u16 fmtslv;
237   __u16 fmtlnv;
238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239   __u8 initial_x;
240   __u8 initial_y;
241   __u32 size;
242 };
243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244 struct omap3isp_ccdc_bclamp {
245   __u8 obgain;
246   __u8 obstpixel;
247   __u8 oblines;
248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249   __u8 oblen;
250   __u16 dcsubval;
251 };
252 struct omap3isp_ccdc_fpc {
253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254   __u16 fpnum;
255   __u32 fpcaddr;
256 };
257 struct omap3isp_ccdc_blcomp {
258 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259   __u8 b_mg;
260   __u8 gb_g;
261   __u8 gr_cy;
262   __u8 r_ye;
263 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264 };
265 struct omap3isp_ccdc_culling {
266   __u8 v_pattern;
267   __u16 h_odd;
268 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269   __u16 h_even;
270 };
271 struct omap3isp_ccdc_update_config {
272   __u16 update;
273 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274   __u16 flag;
275   enum omap3isp_alaw_ipwidth alawip;
276   struct omap3isp_ccdc_bclamp __user * bclamp;
277   struct omap3isp_ccdc_blcomp __user * blcomp;
278 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279   struct omap3isp_ccdc_fpc __user * fpc;
280   struct omap3isp_ccdc_lsc_config __user * lsc_cfg;
281   struct omap3isp_ccdc_culling __user * cull;
282   __u8 __user * lsc;
283 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284 };
285 #define OMAP3ISP_PREV_LUMAENH (1 << 0)
286 #define OMAP3ISP_PREV_INVALAW (1 << 1)
287 #define OMAP3ISP_PREV_HRZ_MED (1 << 2)
288 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
289 #define OMAP3ISP_PREV_CFA (1 << 3)
290 #define OMAP3ISP_PREV_CHROMA_SUPP (1 << 4)
291 #define OMAP3ISP_PREV_WB (1 << 5)
292 #define OMAP3ISP_PREV_BLKADJ (1 << 6)
293 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
294 #define OMAP3ISP_PREV_RGB2RGB (1 << 7)
295 #define OMAP3ISP_PREV_COLOR_CONV (1 << 8)
296 #define OMAP3ISP_PREV_YC_LIMIT (1 << 9)
297 #define OMAP3ISP_PREV_DEFECT_COR (1 << 10)
298 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299 #define OMAP3ISP_PREV_DRK_FRM_CAPTURE (1 << 12)
300 #define OMAP3ISP_PREV_DRK_FRM_SUBTRACT (1 << 13)
301 #define OMAP3ISP_PREV_LENS_SHADING (1 << 14)
302 #define OMAP3ISP_PREV_NF (1 << 15)
303 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304 #define OMAP3ISP_PREV_GAMMA (1 << 16)
305 #define OMAP3ISP_PREV_NF_TBL_SIZE 64
306 #define OMAP3ISP_PREV_CFA_TBL_SIZE 576
307 #define OMAP3ISP_PREV_CFA_BLK_SIZE (OMAP3ISP_PREV_CFA_TBL_SIZE / 4)
308 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
309 #define OMAP3ISP_PREV_GAMMA_TBL_SIZE 1024
310 #define OMAP3ISP_PREV_YENH_TBL_SIZE 128
311 #define OMAP3ISP_PREV_DETECT_CORRECT_CHANNELS 4
312 struct omap3isp_prev_hmed {
313 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
314   __u8 odddist;
315   __u8 evendist;
316   __u8 thres;
317 };
318 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319 enum omap3isp_cfa_fmt {
320   OMAP3ISP_CFAFMT_BAYER,
321   OMAP3ISP_CFAFMT_SONYVGA,
322   OMAP3ISP_CFAFMT_RGBFOVEON,
323 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324   OMAP3ISP_CFAFMT_DNSPL,
325   OMAP3ISP_CFAFMT_HONEYCOMB,
326   OMAP3ISP_CFAFMT_RRGGBBFOVEON
327 };
328 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
329 struct omap3isp_prev_cfa {
330   enum omap3isp_cfa_fmt format;
331   __u8 gradthrs_vert;
332   __u8 gradthrs_horz;
333 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334   __u32 table[4][OMAP3ISP_PREV_CFA_BLK_SIZE];
335 };
336 struct omap3isp_prev_csup {
337   __u8 gain;
338 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339   __u8 thres;
340   __u8 hypf_en;
341 };
342 struct omap3isp_prev_wbal {
343 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344   __u16 dgain;
345   __u8 coef3;
346   __u8 coef2;
347   __u8 coef1;
348 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
349   __u8 coef0;
350 };
351 struct omap3isp_prev_blkadj {
352   __u8 red;
353 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
354   __u8 green;
355   __u8 blue;
356 };
357 struct omap3isp_prev_rgbtorgb {
358 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
359   __u16 matrix[OMAP3ISP_RGB_MAX][OMAP3ISP_RGB_MAX];
360   __u16 offset[OMAP3ISP_RGB_MAX];
361 };
362 struct omap3isp_prev_csc {
363 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
364   __u16 matrix[OMAP3ISP_RGB_MAX][OMAP3ISP_RGB_MAX];
365   __s16 offset[OMAP3ISP_RGB_MAX];
366 };
367 struct omap3isp_prev_yclimit {
368 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
369   __u8 minC;
370   __u8 maxC;
371   __u8 minY;
372   __u8 maxY;
373 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
374 };
375 struct omap3isp_prev_dcor {
376   __u8 couplet_mode_en;
377   __u32 detect_correct[OMAP3ISP_PREV_DETECT_CORRECT_CHANNELS];
378 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
379 };
380 struct omap3isp_prev_nf {
381   __u8 spread;
382   __u32 table[OMAP3ISP_PREV_NF_TBL_SIZE];
383 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
384 };
385 struct omap3isp_prev_gtables {
386   __u32 red[OMAP3ISP_PREV_GAMMA_TBL_SIZE];
387   __u32 green[OMAP3ISP_PREV_GAMMA_TBL_SIZE];
388 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
389   __u32 blue[OMAP3ISP_PREV_GAMMA_TBL_SIZE];
390 };
391 struct omap3isp_prev_luma {
392   __u32 table[OMAP3ISP_PREV_YENH_TBL_SIZE];
393 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
394 };
395 struct omap3isp_prev_update_config {
396   __u32 update;
397   __u32 flag;
398 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
399   __u32 shading_shift;
400   struct omap3isp_prev_luma __user * luma;
401   struct omap3isp_prev_hmed __user * hmed;
402   struct omap3isp_prev_cfa __user * cfa;
403 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
404   struct omap3isp_prev_csup __user * csup;
405   struct omap3isp_prev_wbal __user * wbal;
406   struct omap3isp_prev_blkadj __user * blkadj;
407   struct omap3isp_prev_rgbtorgb __user * rgb2rgb;
408 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
409   struct omap3isp_prev_csc __user * csc;
410   struct omap3isp_prev_yclimit __user * yclimit;
411   struct omap3isp_prev_dcor __user * dcor;
412   struct omap3isp_prev_nf __user * nf;
413 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
414   struct omap3isp_prev_gtables __user * gamma;
415 };
416 #endif
417