blob: c3e710113402d3e2e4991f6b1204f219d426e5fd [file] [log] [blame]
/*
* Copyright (C) 2010-2011 NVIDIA Corporation.
*
* Contributors:
* Sachin Nikam <snikam@nvidia.com>
*
* 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 __AD5820_H__
#define __AD5820_H__
#include <linux/ioctl.h> /* For IOCTL macros */
#define AD5820_IOCTL_GET_CONFIG _IOR('o', 1, struct ad5820_config)
#define AD5820_IOCTL_SET_POSITION _IOW('o', 2, u32)
struct ad5820_config {
__u32 settle_time;
__u32 actuator_range;
__u32 pos_low;
__u32 pos_high;
float focal_length;
float fnumber;
float max_aperture;
};
#endif /* __AD5820_H__ */