summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPritesh Raithatha <praithatha@nvidia.com>2010-11-15 18:12:39 +0530
committerBharat Nihalani <bnihalani@nvidia.com>2010-11-21 21:54:09 -0800
commit46f952a166e78e2c0bceeaa1a21f790fd1c3cd48 (patch)
tree332cecbc3d5f829269d655aa6e2914c2c276502f /include
parenta60c1aa9abde4e9b9345d8e29df92b831ede87bd (diff)
camera: add driver for ov5650
Change-Id: I127ea2a132adf2126c28194e8d778cc46b0a2e63 Reviewed-on: http://git-master/r/10573 Reviewed-by: Chien-Yu Chen <chichen@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/media/ov5650.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/media/ov5650.h b/include/media/ov5650.h
new file mode 100755
index 000000000000..cc3ec7194526
--- /dev/null
+++ b/include/media/ov5650.h
@@ -0,0 +1,38 @@
+/**
+ * Copyright (c) 2008 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 __OV5650_H__
+#define __OV5650_H__
+
+#include <linux/ioctl.h> /* For IOCTL macros */
+
+#define OV5650_IOCTL_SET_MODE _IOW('o', 1, struct ov5650_mode)
+#define OV5650_IOCTL_SET_FRAME_LENGTH _IOW('o', 2, __u32)
+#define OV5650_IOCTL_SET_COARSE_TIME _IOW('o', 3, __u32)
+#define OV5650_IOCTL_SET_GAIN _IOW('o', 4, __u16)
+#define OV5650_IOCTL_GET_STATUS _IOR('o', 5, __u8)
+
+struct ov5650_mode {
+ int xres;
+ int yres;
+ __u32 frame_length;
+ __u32 coarse_time;
+ __u16 gain;
+};
+#ifdef __KERNEL__
+struct ov5650_platform_data {
+ int (*power_on)(void);
+ int (*power_off)(void);
+
+};
+#endif /* __KERNEL__ */
+
+#endif /* __OV5650_H__ */
+