aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/ov14810.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/media/ov14810.h')
-rw-r--r--include/media/ov14810.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/include/media/ov14810.h b/include/media/ov14810.h
new file mode 100644
index 00000000000..67a86495918
--- /dev/null
+++ b/include/media/ov14810.h
@@ -0,0 +1,47 @@
1/*
2 * Copyright (C) 2011 NVIDIA Corporation.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
16 * 02111-1307, USA
17 */
18
19#ifndef __OV14810_H__
20#define __OV14810_H__
21
22#include <linux/ioctl.h> /* For IOCTL macros */
23
24#define OV14810_IOCTL_SET_MODE _IOW('o', 1, struct ov14810_mode)
25#define OV14810_IOCTL_SET_FRAME_LENGTH _IOW('o', 2, __u32)
26#define OV14810_IOCTL_SET_COARSE_TIME _IOW('o', 3, __u32)
27#define OV14810_IOCTL_SET_GAIN _IOW('o', 4, __u16)
28#define OV14810_IOCTL_GET_STATUS _IOR('o', 5, __u8)
29#define OV14810_IOCTL_SET_CAMERA_MODE _IOW('o', 10, __u32)
30#define OV14810_IOCTL_SYNC_SENSORS _IOW('o', 11, __u32)
31
32struct ov14810_mode {
33 int xres;
34 int yres;
35 __u32 frame_length;
36 __u32 coarse_time;
37 __u16 gain;
38};
39#ifdef __KERNEL__
40struct ov14810_platform_data {
41 int (*power_on)(void);
42 int (*power_off)(void);
43 void (*synchronize_sensors)(void);
44};
45#endif /* __KERNEL__ */
46
47#endif /* __OV14810_H__ */