aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/ad5820.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
commitfcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch)
treea57612d1888735a2ec7972891b68c1ac5ec8faea /include/media/ad5820.h
parent8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff)
Added missing tegra files.HEADmaster
Diffstat (limited to 'include/media/ad5820.h')
-rw-r--r--include/media/ad5820.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/media/ad5820.h b/include/media/ad5820.h
new file mode 100644
index 00000000000..c3e71011340
--- /dev/null
+++ b/include/media/ad5820.h
@@ -0,0 +1,41 @@
1/*
2 * Copyright (C) 2010-2011 NVIDIA Corporation.
3 *
4 * Contributors:
5 * Sachin Nikam <snikam@nvidia.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 * 02111-1307, USA
20 */
21
22#ifndef __AD5820_H__
23#define __AD5820_H__
24
25#include <linux/ioctl.h> /* For IOCTL macros */
26
27#define AD5820_IOCTL_GET_CONFIG _IOR('o', 1, struct ad5820_config)
28#define AD5820_IOCTL_SET_POSITION _IOW('o', 2, u32)
29
30struct ad5820_config {
31 __u32 settle_time;
32 __u32 actuator_range;
33 __u32 pos_low;
34 __u32 pos_high;
35 float focal_length;
36 float fnumber;
37 float max_aperture;
38};
39
40#endif /* __AD5820_H__ */
41