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