blob: 819cee522dd0cc0b027116b3a02f642b881607e4 [file] [log] [blame]
/*
* Copyright (C) 2010 Motorola, Inc.
* 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 __OV2710_H__
#define __OV2710_H__
#include <linux/ioctl.h> /* For IOCTL macros */
#define OV2710_IOCTL_SET_MODE _IOW('o', 1, struct ov2710_mode)
#define OV2710_IOCTL_SET_FRAME_LENGTH _IOW('o', 2, __u32)
#define OV2710_IOCTL_SET_COARSE_TIME _IOW('o', 3, __u32)
#define OV2710_IOCTL_SET_GAIN _IOW('o', 4, __u16)
#define OV2710_IOCTL_GET_STATUS _IOR('o', 5, __u8)
#define OV2710_IOCTL_SET_GROUP_HOLD _IOW('o', 6, struct ov2710_ae)
#define OV2710_IOCTL_GET_FUSEID _IOW('o', 7, struct nvc_fuseid)
struct ov2710_mode {
int xres;
int yres;
__u32 frame_length;
__u32 coarse_time;
__u16 gain;
};
struct ov2710_ae {
__u32 frame_length;
__u8 frame_length_enable;
__u32 coarse_time;
__u8 coarse_time_enable;
__s32 gain;
__u8 gain_enable;
};
#ifdef __KERNEL__
struct ov2710_platform_data {
const char *mclk_name;
int (*power_on)(struct device *);
int (*power_off)(struct device *);
};
#endif /* __KERNEL__ */
#endif /* __OV2710_H__ */