Ensure FMODE_NONOTIFY is not set by userspace
[pandora-kernel.git] / drivers / staging / dream / camera / mt9t013.h
1 /*
2  * Copyright (C) 2008-2009 QUALCOMM Incorporated.
3  */
4
5 #ifndef MT9T013_H
6 #define MT9T013_H
7
8 #include <linux/types.h>
9
10 struct reg_struct {
11         uint16_t vt_pix_clk_div;        /*  0x0300 */
12         uint16_t vt_sys_clk_div;        /*  0x0302 */
13         uint16_t pre_pll_clk_div;       /*  0x0304 */
14         uint16_t pll_multiplier;        /*  0x0306 */
15         uint16_t op_pix_clk_div;        /*  0x0308 */
16         uint16_t op_sys_clk_div;        /*  0x030A */
17         uint16_t scale_m;               /*  0x0404 */
18         uint16_t row_speed;             /*  0x3016 */
19         uint16_t x_addr_start;          /*  0x3004 */
20         uint16_t x_addr_end;            /*  0x3008 */
21         uint16_t y_addr_start;          /*  0x3002 */
22         uint16_t y_addr_end;            /*  0x3006 */
23         uint16_t read_mode;             /*  0x3040 */
24         uint16_t x_output_size;         /*  0x034C */
25         uint16_t y_output_size;         /*  0x034E */
26         uint16_t line_length_pck;       /*  0x300C */
27         uint16_t frame_length_lines;    /*  0x300A */
28         uint16_t coarse_int_time;               /*  0x3012 */
29         uint16_t fine_int_time;                 /*  0x3014 */
30 };
31
32 struct mt9t013_i2c_reg_conf {
33         unsigned short waddr;
34         unsigned short wdata;
35 };
36
37 struct mt9t013_reg {
38         struct reg_struct *reg_pat;
39         uint16_t reg_pat_size;
40         struct mt9t013_i2c_reg_conf *ttbl;
41         uint16_t ttbl_size;
42         struct mt9t013_i2c_reg_conf *lctbl;
43         uint16_t lctbl_size;
44         struct mt9t013_i2c_reg_conf *rftbl;
45         uint16_t rftbl_size;
46 };
47
48 #endif /* #define MT9T013_H */