summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/drivers/media/video/cmoscam.h
diff options
context:
space:
mode:
Diffstat (limited to 'ANDROID_3.4.5/drivers/media/video/cmoscam.h')
-rwxr-xr-xANDROID_3.4.5/drivers/media/video/cmoscam.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/ANDROID_3.4.5/drivers/media/video/cmoscam.h b/ANDROID_3.4.5/drivers/media/video/cmoscam.h
new file mode 100755
index 00000000..82d6640c
--- /dev/null
+++ b/ANDROID_3.4.5/drivers/media/video/cmoscam.h
@@ -0,0 +1,77 @@
+ /*++
+ * linux/drivers/media/video/cmoscam.h
+ * WonderMedia v4l cmos device driver
+*
+ * Copyright c 2010 WonderMedia Technologies, Inc.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+*
+ * WonderMedia Technologies, Inc.
+ * 4F, 533, Chung-Cheng Road, Hsin-Tien, Taipei 231, R.O.C
+--*/
+
+#include <linux/module.h>
+#include <linux/version.h>
+#include <linux/videodev2.h>
+#ifdef CONFIG_VIDEO_V4L1_COMPAT
+#include <linux/videodev.h>
+#endif
+#include <media/v4l2-common.h>
+#include <media/v4l2-ioctl.h>
+#include <media/v4l2-device.h>
+
+
+
+extern int cmos_cam_open ( struct file *);
+extern int cmos_cam_release (struct file *);
+extern ssize_t cmos_cam_read(struct file *, char __user *, size_t, loff_t *);
+extern int cmos_cam_mmap (struct file *, struct vm_area_struct *);
+extern unsigned int cmos_cam_poll (struct file *, struct poll_table_struct *);
+extern int cmos_cam_ioctl (struct inode *, struct file *, unsigned int, unsigned long);
+extern long cmos_cam_compat_ioctl (struct file *, unsigned int, unsigned long);
+
+extern int cmos_cam_querycap(struct file *file, void *fh,
+ struct v4l2_capability *cap);
+extern int cmos_cam_cropcap(struct file *file, void *__fh,
+ struct v4l2_cropcap *cropcap);
+
+extern int cmos_cam_enum_fmt_cap(struct file *file, void *fh,
+ struct v4l2_fmtdesc *f);
+extern int cmos_cam_g_fmt_cap(struct file *file, void *fh,
+ struct v4l2_format *f);
+extern int cmos_cam_try_fmt_cap(struct file *file, void *fh,
+ struct v4l2_format *f);
+extern int cmos_cam_s_fmt_cap(struct file *file, void *fh,
+ struct v4l2_format *f);
+extern int cmos_cam_reqbufs(struct file *file, void *fh,
+ struct v4l2_requestbuffers *b);
+extern int cmos_cam_querybuf(struct file *file, void *fh,
+ struct v4l2_buffer *b);
+extern int cmos_cam_qbuf(struct file *file, void *fh,
+ struct v4l2_buffer *b);
+extern int cmos_cam_dqbuf(struct file *file, void *fh,
+ struct v4l2_buffer *b);
+extern int cmos_cam_s_std(struct file *file, void *fh, v4l2_std_id *norm);
+extern int cmos_cam_enum_input(struct file *file, void *fh,
+ struct v4l2_input *inp);
+extern int cmos_cam_g_input(struct file *file, void *fh, unsigned int *i);
+extern int cmos_cam_s_input(struct file *file, void *fh, unsigned int i);
+extern int cmos_cam_queryctrl(struct file *file, void *fh,
+ struct v4l2_queryctrl *a);
+extern int cmos_cam_g_ctrl(struct file *file, void *fh, struct v4l2_control *a);
+extern int cmos_cam_s_ctrl(struct file *file, void *fh, struct v4l2_control *a);
+extern int cmos_cam_streamon(struct file *file, void *fh, enum v4l2_buf_type i);
+extern int cmos_cam_streamoff(struct file *file, void *fh,
+ enum v4l2_buf_type i);
+