1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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);
|