From 871480933a1c28f8a9fed4c4d34d06c439a7a422 Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Sun, 11 Jan 2015 12:28:04 +0530 Subject: Moved, renamed, and deleted files The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure. --- drivers/media/video/cmoscam.h | 77 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100755 drivers/media/video/cmoscam.h (limited to 'drivers/media/video/cmoscam.h') diff --git a/drivers/media/video/cmoscam.h b/drivers/media/video/cmoscam.h new file mode 100755 index 00000000..82d6640c --- /dev/null +++ b/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 . +* + * WonderMedia Technologies, Inc. + * 4F, 533, Chung-Cheng Road, Hsin-Tien, Taipei 231, R.O.C +--*/ + +#include +#include +#include +#ifdef CONFIG_VIDEO_V4L1_COMPAT +#include +#endif +#include +#include +#include + + + +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); + -- cgit