diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /include/media/v4l2-ioctl.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'include/media/v4l2-ioctl.h')
-rw-r--r-- | include/media/v4l2-ioctl.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h index 06daa6e8e051..dd9f1e7b8ff7 100644 --- a/include/media/v4l2-ioctl.h +++ b/include/media/v4l2-ioctl.h | |||
@@ -14,12 +14,7 @@ | |||
14 | #include <linux/device.h> | 14 | #include <linux/device.h> |
15 | #include <linux/mutex.h> | 15 | #include <linux/mutex.h> |
16 | #include <linux/compiler.h> /* need __user */ | 16 | #include <linux/compiler.h> /* need __user */ |
17 | #ifdef CONFIG_VIDEO_V4L1_COMPAT | ||
18 | #define __MIN_V4L1 | ||
19 | #include <linux/videodev.h> | ||
20 | #else | ||
21 | #include <linux/videodev2.h> | 17 | #include <linux/videodev2.h> |
22 | #endif | ||
23 | 18 | ||
24 | struct v4l2_fh; | 19 | struct v4l2_fh; |
25 | 20 | ||
@@ -42,6 +37,10 @@ struct v4l2_ioctl_ops { | |||
42 | struct v4l2_fmtdesc *f); | 37 | struct v4l2_fmtdesc *f); |
43 | int (*vidioc_enum_fmt_vid_out) (struct file *file, void *fh, | 38 | int (*vidioc_enum_fmt_vid_out) (struct file *file, void *fh, |
44 | struct v4l2_fmtdesc *f); | 39 | struct v4l2_fmtdesc *f); |
40 | int (*vidioc_enum_fmt_vid_cap_mplane)(struct file *file, void *fh, | ||
41 | struct v4l2_fmtdesc *f); | ||
42 | int (*vidioc_enum_fmt_vid_out_mplane)(struct file *file, void *fh, | ||
43 | struct v4l2_fmtdesc *f); | ||
45 | int (*vidioc_enum_fmt_type_private)(struct file *file, void *fh, | 44 | int (*vidioc_enum_fmt_type_private)(struct file *file, void *fh, |
46 | struct v4l2_fmtdesc *f); | 45 | struct v4l2_fmtdesc *f); |
47 | 46 | ||
@@ -62,6 +61,10 @@ struct v4l2_ioctl_ops { | |||
62 | struct v4l2_format *f); | 61 | struct v4l2_format *f); |
63 | int (*vidioc_g_fmt_sliced_vbi_out)(struct file *file, void *fh, | 62 | int (*vidioc_g_fmt_sliced_vbi_out)(struct file *file, void *fh, |
64 | struct v4l2_format *f); | 63 | struct v4l2_format *f); |
64 | int (*vidioc_g_fmt_vid_cap_mplane)(struct file *file, void *fh, | ||
65 | struct v4l2_format *f); | ||
66 | int (*vidioc_g_fmt_vid_out_mplane)(struct file *file, void *fh, | ||
67 | struct v4l2_format *f); | ||
65 | int (*vidioc_g_fmt_type_private)(struct file *file, void *fh, | 68 | int (*vidioc_g_fmt_type_private)(struct file *file, void *fh, |
66 | struct v4l2_format *f); | 69 | struct v4l2_format *f); |
67 | 70 | ||
@@ -82,6 +85,10 @@ struct v4l2_ioctl_ops { | |||
82 | struct v4l2_format *f); | 85 | struct v4l2_format *f); |
83 | int (*vidioc_s_fmt_sliced_vbi_out)(struct file *file, void *fh, | 86 | int (*vidioc_s_fmt_sliced_vbi_out)(struct file *file, void *fh, |
84 | struct v4l2_format *f); | 87 | struct v4l2_format *f); |
88 | int (*vidioc_s_fmt_vid_cap_mplane)(struct file *file, void *fh, | ||
89 | struct v4l2_format *f); | ||
90 | int (*vidioc_s_fmt_vid_out_mplane)(struct file *file, void *fh, | ||
91 | struct v4l2_format *f); | ||
85 | int (*vidioc_s_fmt_type_private)(struct file *file, void *fh, | 92 | int (*vidioc_s_fmt_type_private)(struct file *file, void *fh, |
86 | struct v4l2_format *f); | 93 | struct v4l2_format *f); |
87 | 94 | ||
@@ -102,6 +109,10 @@ struct v4l2_ioctl_ops { | |||
102 | struct v4l2_format *f); | 109 | struct v4l2_format *f); |
103 | int (*vidioc_try_fmt_sliced_vbi_out)(struct file *file, void *fh, | 110 | int (*vidioc_try_fmt_sliced_vbi_out)(struct file *file, void *fh, |
104 | struct v4l2_format *f); | 111 | struct v4l2_format *f); |
112 | int (*vidioc_try_fmt_vid_cap_mplane)(struct file *file, void *fh, | ||
113 | struct v4l2_format *f); | ||
114 | int (*vidioc_try_fmt_vid_out_mplane)(struct file *file, void *fh, | ||
115 | struct v4l2_format *f); | ||
105 | int (*vidioc_try_fmt_type_private)(struct file *file, void *fh, | 116 | int (*vidioc_try_fmt_type_private)(struct file *file, void *fh, |
106 | struct v4l2_format *f); | 117 | struct v4l2_format *f); |
107 | 118 | ||
@@ -113,10 +124,6 @@ struct v4l2_ioctl_ops { | |||
113 | 124 | ||
114 | 125 | ||
115 | int (*vidioc_overlay) (struct file *file, void *fh, unsigned int i); | 126 | int (*vidioc_overlay) (struct file *file, void *fh, unsigned int i); |
116 | #ifdef CONFIG_VIDEO_V4L1_COMPAT | ||
117 | /* buffer type is struct vidio_mbuf * */ | ||
118 | int (*vidiocgmbuf) (struct file *file, void *fh, struct video_mbuf *p); | ||
119 | #endif | ||
120 | int (*vidioc_g_fbuf) (struct file *file, void *fh, | 127 | int (*vidioc_g_fbuf) (struct file *file, void *fh, |
121 | struct v4l2_framebuffer *a); | 128 | struct v4l2_framebuffer *a); |
122 | int (*vidioc_s_fbuf) (struct file *file, void *fh, | 129 | int (*vidioc_s_fbuf) (struct file *file, void *fh, |
@@ -263,7 +270,7 @@ struct v4l2_ioctl_ops { | |||
263 | 270 | ||
264 | /* For other private ioctls */ | 271 | /* For other private ioctls */ |
265 | long (*vidioc_default) (struct file *file, void *fh, | 272 | long (*vidioc_default) (struct file *file, void *fh, |
266 | int cmd, void *arg); | 273 | bool valid_prio, int cmd, void *arg); |
267 | }; | 274 | }; |
268 | 275 | ||
269 | 276 | ||
@@ -300,22 +307,15 @@ extern void v4l_printk_ioctl(unsigned int cmd); | |||
300 | extern const char *v4l2_field_names[]; | 307 | extern const char *v4l2_field_names[]; |
301 | extern const char *v4l2_type_names[]; | 308 | extern const char *v4l2_type_names[]; |
302 | 309 | ||
303 | /* Compatibility layer interface -- v4l1-compat module */ | ||
304 | typedef long (*v4l2_kioctl)(struct file *file, | ||
305 | unsigned int cmd, void *arg); | ||
306 | #ifdef CONFIG_VIDEO_V4L1_COMPAT | ||
307 | long v4l_compat_translate_ioctl(struct file *file, | ||
308 | int cmd, void *arg, v4l2_kioctl driver_ioctl); | ||
309 | #else | ||
310 | #define v4l_compat_translate_ioctl(file, cmd, arg, ioctl) (-EINVAL) | ||
311 | #endif | ||
312 | |||
313 | #ifdef CONFIG_COMPAT | 310 | #ifdef CONFIG_COMPAT |
314 | /* 32 Bits compatibility layer for 64 bits processors */ | 311 | /* 32 Bits compatibility layer for 64 bits processors */ |
315 | extern long v4l2_compat_ioctl32(struct file *file, unsigned int cmd, | 312 | extern long v4l2_compat_ioctl32(struct file *file, unsigned int cmd, |
316 | unsigned long arg); | 313 | unsigned long arg); |
317 | #endif | 314 | #endif |
318 | 315 | ||
316 | typedef long (*v4l2_kioctl)(struct file *file, | ||
317 | unsigned int cmd, void *arg); | ||
318 | |||
319 | /* Include support for obsoleted stuff */ | 319 | /* Include support for obsoleted stuff */ |
320 | extern long video_usercopy(struct file *file, unsigned int cmd, | 320 | extern long video_usercopy(struct file *file, unsigned int cmd, |
321 | unsigned long arg, v4l2_kioctl func); | 321 | unsigned long arg, v4l2_kioctl func); |