summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorNathan Lord <nlord@nvidia.com>2011-02-11 02:30:05 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:42:52 -0800
commita6d8fec58f532a4a6f71b8c9835c20a4fe72abe5 (patch)
tree1f787c8579a9e6325ede476516070821d55ca810 /include/media
parentb3fc9f33c9620266f345280c867d9e628893984f (diff)
media: video: tegra: add driver for ov2710
Original-Change-Id: I9d9a9a301f23398a13fa7d865058f384288f6c92 Reviewed-on: http://git-master/r/18537 Reviewed-by: Nathan Lord <nlord@nvidia.com> Tested-by: Nathan Lord <nlord@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Rddda80e10e9494770257961b12079e7cd345c3a0
Diffstat (limited to 'include/media')
-rw-r--r--include/media/ov2710.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/media/ov2710.h b/include/media/ov2710.h
new file mode 100644
index 000000000000..88cf341b96c8
--- /dev/null
+++ b/include/media/ov2710.h
@@ -0,0 +1,38 @@
+/**
+ * Copyright (c) 2011 NVIDIA Corporation. All rights reserved.
+ *
+ * NVIDIA Corporation and its licensors retain all intellectual property
+ * and proprietary rights in and to this software and related documentation
+ * and any modifications thereto. Any use, reproduction, disclosure or
+ * distribution of this software and related documentation without an express
+ * license agreement from NVIDIA Corporation is strictly prohibited.
+ */
+
+#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)
+
+struct ov2710_mode {
+ int xres;
+ int yres;
+ __u32 frame_length;
+ __u32 coarse_time;
+ __u16 gain;
+};
+#ifdef __KERNEL__
+struct ov2710_platform_data {
+ int (*power_on)(void);
+ int (*power_off)(void);
+
+};
+#endif /* __KERNEL__ */
+
+#endif /* __OV2710_H__ */
+