/*++ * 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);