Hans Verkuil | 35ea11f | 2008-07-20 08:12:02 -0300 | [diff] [blame] | 1 | #ifndef _V4L2_IOCTL_H |
| 2 | #define _V4L2_IOCTL_H |
| 3 | |
| 4 | #include <linux/poll.h> |
| 5 | #include <linux/fs.h> |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 6 | #include <linux/device.h> |
Hans Verkuil | 35ea11f | 2008-07-20 08:12:02 -0300 | [diff] [blame] | 7 | #include <linux/mutex.h> |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 8 | #include <linux/compiler.h> |
Hans Verkuil | 35ea11f | 2008-07-20 08:12:02 -0300 | [diff] [blame] | 9 | #include <linux/videodev2.h> |
Hans Verkuil | 35ea11f | 2008-07-20 08:12:02 -0300 | [diff] [blame] | 10 | |
Sakari Ailus | d3d7c96 | 2010-03-27 11:02:10 -0300 | [diff] [blame] | 11 | struct v4l2_fh; |
| 12 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 13 | struct v4l2_ioctl_ops { |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 14 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 15 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 16 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 17 | int (*vidioc_querycap)(struct file *file, void *fh, struct v4l2_capability *cap); |
| 18 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 19 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 20 | int (*vidioc_g_priority) (struct file *file, void *fh, |
| 21 | enum v4l2_priority *p); |
| 22 | int (*vidioc_s_priority) (struct file *file, void *fh, |
| 23 | enum v4l2_priority p); |
| 24 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 25 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 26 | int (*vidioc_enum_fmt_vid_cap) (struct file *file, void *fh, |
| 27 | struct v4l2_fmtdesc *f); |
| 28 | int (*vidioc_enum_fmt_vid_overlay) (struct file *file, void *fh, |
| 29 | struct v4l2_fmtdesc *f); |
| 30 | int (*vidioc_enum_fmt_vid_out) (struct file *file, void *fh, |
| 31 | struct v4l2_fmtdesc *f); |
Pawel Osciak | d14e6d7 | 2010-12-23 04:15:27 -0300 | [diff] [blame] | 32 | int (*vidioc_enum_fmt_vid_cap_mplane)(struct file *file, void *fh, |
| 33 | struct v4l2_fmtdesc *f); |
| 34 | int (*vidioc_enum_fmt_vid_out_mplane)(struct file *file, void *fh, |
| 35 | struct v4l2_fmtdesc *f); |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 36 | int (*vidioc_enum_fmt_type_private)(struct file *file, void *fh, |
| 37 | struct v4l2_fmtdesc *f); |
| 38 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 39 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 40 | int (*vidioc_g_fmt_vid_cap) (struct file *file, void *fh, |
| 41 | struct v4l2_format *f); |
| 42 | int (*vidioc_g_fmt_vid_overlay)(struct file *file, void *fh, |
| 43 | struct v4l2_format *f); |
| 44 | int (*vidioc_g_fmt_vid_out) (struct file *file, void *fh, |
| 45 | struct v4l2_format *f); |
| 46 | int (*vidioc_g_fmt_vid_out_overlay)(struct file *file, void *fh, |
| 47 | struct v4l2_format *f); |
| 48 | int (*vidioc_g_fmt_vbi_cap) (struct file *file, void *fh, |
| 49 | struct v4l2_format *f); |
| 50 | int (*vidioc_g_fmt_vbi_out) (struct file *file, void *fh, |
| 51 | struct v4l2_format *f); |
| 52 | int (*vidioc_g_fmt_sliced_vbi_cap)(struct file *file, void *fh, |
| 53 | struct v4l2_format *f); |
| 54 | int (*vidioc_g_fmt_sliced_vbi_out)(struct file *file, void *fh, |
| 55 | struct v4l2_format *f); |
Pawel Osciak | d14e6d7 | 2010-12-23 04:15:27 -0300 | [diff] [blame] | 56 | int (*vidioc_g_fmt_vid_cap_mplane)(struct file *file, void *fh, |
| 57 | struct v4l2_format *f); |
| 58 | int (*vidioc_g_fmt_vid_out_mplane)(struct file *file, void *fh, |
| 59 | struct v4l2_format *f); |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 60 | int (*vidioc_g_fmt_type_private)(struct file *file, void *fh, |
| 61 | struct v4l2_format *f); |
| 62 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 63 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 64 | int (*vidioc_s_fmt_vid_cap) (struct file *file, void *fh, |
| 65 | struct v4l2_format *f); |
| 66 | int (*vidioc_s_fmt_vid_overlay)(struct file *file, void *fh, |
| 67 | struct v4l2_format *f); |
| 68 | int (*vidioc_s_fmt_vid_out) (struct file *file, void *fh, |
| 69 | struct v4l2_format *f); |
| 70 | int (*vidioc_s_fmt_vid_out_overlay)(struct file *file, void *fh, |
| 71 | struct v4l2_format *f); |
| 72 | int (*vidioc_s_fmt_vbi_cap) (struct file *file, void *fh, |
| 73 | struct v4l2_format *f); |
| 74 | int (*vidioc_s_fmt_vbi_out) (struct file *file, void *fh, |
| 75 | struct v4l2_format *f); |
| 76 | int (*vidioc_s_fmt_sliced_vbi_cap)(struct file *file, void *fh, |
| 77 | struct v4l2_format *f); |
| 78 | int (*vidioc_s_fmt_sliced_vbi_out)(struct file *file, void *fh, |
| 79 | struct v4l2_format *f); |
Pawel Osciak | d14e6d7 | 2010-12-23 04:15:27 -0300 | [diff] [blame] | 80 | int (*vidioc_s_fmt_vid_cap_mplane)(struct file *file, void *fh, |
| 81 | struct v4l2_format *f); |
| 82 | int (*vidioc_s_fmt_vid_out_mplane)(struct file *file, void *fh, |
| 83 | struct v4l2_format *f); |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 84 | int (*vidioc_s_fmt_type_private)(struct file *file, void *fh, |
| 85 | struct v4l2_format *f); |
| 86 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 87 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 88 | int (*vidioc_try_fmt_vid_cap) (struct file *file, void *fh, |
| 89 | struct v4l2_format *f); |
| 90 | int (*vidioc_try_fmt_vid_overlay)(struct file *file, void *fh, |
| 91 | struct v4l2_format *f); |
| 92 | int (*vidioc_try_fmt_vid_out) (struct file *file, void *fh, |
| 93 | struct v4l2_format *f); |
| 94 | int (*vidioc_try_fmt_vid_out_overlay)(struct file *file, void *fh, |
| 95 | struct v4l2_format *f); |
| 96 | int (*vidioc_try_fmt_vbi_cap) (struct file *file, void *fh, |
| 97 | struct v4l2_format *f); |
| 98 | int (*vidioc_try_fmt_vbi_out) (struct file *file, void *fh, |
| 99 | struct v4l2_format *f); |
| 100 | int (*vidioc_try_fmt_sliced_vbi_cap)(struct file *file, void *fh, |
| 101 | struct v4l2_format *f); |
| 102 | int (*vidioc_try_fmt_sliced_vbi_out)(struct file *file, void *fh, |
| 103 | struct v4l2_format *f); |
Pawel Osciak | d14e6d7 | 2010-12-23 04:15:27 -0300 | [diff] [blame] | 104 | int (*vidioc_try_fmt_vid_cap_mplane)(struct file *file, void *fh, |
| 105 | struct v4l2_format *f); |
| 106 | int (*vidioc_try_fmt_vid_out_mplane)(struct file *file, void *fh, |
| 107 | struct v4l2_format *f); |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 108 | int (*vidioc_try_fmt_type_private)(struct file *file, void *fh, |
| 109 | struct v4l2_format *f); |
| 110 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 111 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 112 | int (*vidioc_reqbufs) (struct file *file, void *fh, struct v4l2_requestbuffers *b); |
| 113 | int (*vidioc_querybuf)(struct file *file, void *fh, struct v4l2_buffer *b); |
| 114 | int (*vidioc_qbuf) (struct file *file, void *fh, struct v4l2_buffer *b); |
| 115 | int (*vidioc_dqbuf) (struct file *file, void *fh, struct v4l2_buffer *b); |
| 116 | |
| 117 | |
| 118 | int (*vidioc_overlay) (struct file *file, void *fh, unsigned int i); |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 119 | int (*vidioc_g_fbuf) (struct file *file, void *fh, |
| 120 | struct v4l2_framebuffer *a); |
| 121 | int (*vidioc_s_fbuf) (struct file *file, void *fh, |
| 122 | struct v4l2_framebuffer *a); |
| 123 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 124 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 125 | int (*vidioc_streamon) (struct file *file, void *fh, enum v4l2_buf_type i); |
| 126 | int (*vidioc_streamoff)(struct file *file, void *fh, enum v4l2_buf_type i); |
| 127 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 128 | int (*vidioc_g_std) (struct file *file, void *fh, v4l2_std_id *norm); |
| 129 | int (*vidioc_s_std) (struct file *file, void *fh, v4l2_std_id *norm); |
| 130 | int (*vidioc_querystd) (struct file *file, void *fh, v4l2_std_id *a); |
| 131 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 132 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 133 | int (*vidioc_enum_input)(struct file *file, void *fh, |
| 134 | struct v4l2_input *inp); |
| 135 | int (*vidioc_g_input) (struct file *file, void *fh, unsigned int *i); |
| 136 | int (*vidioc_s_input) (struct file *file, void *fh, unsigned int i); |
| 137 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 138 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 139 | int (*vidioc_enum_output) (struct file *file, void *fh, |
| 140 | struct v4l2_output *a); |
| 141 | int (*vidioc_g_output) (struct file *file, void *fh, unsigned int *i); |
| 142 | int (*vidioc_s_output) (struct file *file, void *fh, unsigned int i); |
| 143 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 144 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 145 | int (*vidioc_queryctrl) (struct file *file, void *fh, |
| 146 | struct v4l2_queryctrl *a); |
| 147 | int (*vidioc_g_ctrl) (struct file *file, void *fh, |
| 148 | struct v4l2_control *a); |
| 149 | int (*vidioc_s_ctrl) (struct file *file, void *fh, |
| 150 | struct v4l2_control *a); |
| 151 | int (*vidioc_g_ext_ctrls) (struct file *file, void *fh, |
| 152 | struct v4l2_ext_controls *a); |
| 153 | int (*vidioc_s_ext_ctrls) (struct file *file, void *fh, |
| 154 | struct v4l2_ext_controls *a); |
| 155 | int (*vidioc_try_ext_ctrls) (struct file *file, void *fh, |
| 156 | struct v4l2_ext_controls *a); |
| 157 | int (*vidioc_querymenu) (struct file *file, void *fh, |
| 158 | struct v4l2_querymenu *a); |
| 159 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 160 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 161 | int (*vidioc_enumaudio) (struct file *file, void *fh, |
| 162 | struct v4l2_audio *a); |
| 163 | int (*vidioc_g_audio) (struct file *file, void *fh, |
| 164 | struct v4l2_audio *a); |
| 165 | int (*vidioc_s_audio) (struct file *file, void *fh, |
| 166 | struct v4l2_audio *a); |
| 167 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 168 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 169 | int (*vidioc_enumaudout) (struct file *file, void *fh, |
| 170 | struct v4l2_audioout *a); |
| 171 | int (*vidioc_g_audout) (struct file *file, void *fh, |
| 172 | struct v4l2_audioout *a); |
| 173 | int (*vidioc_s_audout) (struct file *file, void *fh, |
| 174 | struct v4l2_audioout *a); |
| 175 | int (*vidioc_g_modulator) (struct file *file, void *fh, |
| 176 | struct v4l2_modulator *a); |
| 177 | int (*vidioc_s_modulator) (struct file *file, void *fh, |
| 178 | struct v4l2_modulator *a); |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 179 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 180 | int (*vidioc_cropcap) (struct file *file, void *fh, |
| 181 | struct v4l2_cropcap *a); |
| 182 | int (*vidioc_g_crop) (struct file *file, void *fh, |
| 183 | struct v4l2_crop *a); |
| 184 | int (*vidioc_s_crop) (struct file *file, void *fh, |
| 185 | struct v4l2_crop *a); |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 186 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 187 | int (*vidioc_g_jpegcomp) (struct file *file, void *fh, |
| 188 | struct v4l2_jpegcompression *a); |
| 189 | int (*vidioc_s_jpegcomp) (struct file *file, void *fh, |
| 190 | struct v4l2_jpegcompression *a); |
| 191 | int (*vidioc_g_enc_index) (struct file *file, void *fh, |
| 192 | struct v4l2_enc_idx *a); |
| 193 | int (*vidioc_encoder_cmd) (struct file *file, void *fh, |
| 194 | struct v4l2_encoder_cmd *a); |
| 195 | int (*vidioc_try_encoder_cmd) (struct file *file, void *fh, |
| 196 | struct v4l2_encoder_cmd *a); |
| 197 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 198 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 199 | int (*vidioc_g_parm) (struct file *file, void *fh, |
| 200 | struct v4l2_streamparm *a); |
| 201 | int (*vidioc_s_parm) (struct file *file, void *fh, |
| 202 | struct v4l2_streamparm *a); |
| 203 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 204 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 205 | int (*vidioc_g_tuner) (struct file *file, void *fh, |
| 206 | struct v4l2_tuner *a); |
| 207 | int (*vidioc_s_tuner) (struct file *file, void *fh, |
| 208 | struct v4l2_tuner *a); |
| 209 | int (*vidioc_g_frequency) (struct file *file, void *fh, |
| 210 | struct v4l2_frequency *a); |
| 211 | int (*vidioc_s_frequency) (struct file *file, void *fh, |
| 212 | struct v4l2_frequency *a); |
| 213 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 214 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 215 | int (*vidioc_g_sliced_vbi_cap) (struct file *file, void *fh, |
| 216 | struct v4l2_sliced_vbi_cap *a); |
| 217 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 218 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 219 | int (*vidioc_log_status) (struct file *file, void *fh); |
| 220 | |
| 221 | int (*vidioc_s_hw_freq_seek) (struct file *file, void *fh, |
| 222 | struct v4l2_hw_freq_seek *a); |
| 223 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 224 | |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 225 | #ifdef CONFIG_VIDEO_ADV_DEBUG |
| 226 | int (*vidioc_g_register) (struct file *file, void *fh, |
Hans Verkuil | aecde8b | 2008-12-30 07:14:19 -0300 | [diff] [blame] | 227 | struct v4l2_dbg_register *reg); |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 228 | int (*vidioc_s_register) (struct file *file, void *fh, |
Hans Verkuil | aecde8b | 2008-12-30 07:14:19 -0300 | [diff] [blame] | 229 | struct v4l2_dbg_register *reg); |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 230 | #endif |
| 231 | int (*vidioc_g_chip_ident) (struct file *file, void *fh, |
Hans Verkuil | aecde8b | 2008-12-30 07:14:19 -0300 | [diff] [blame] | 232 | struct v4l2_dbg_chip_ident *chip); |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 233 | |
Mauro Carvalho Chehab | 74d83fa | 2008-11-11 21:13:47 -0300 | [diff] [blame] | 234 | int (*vidioc_enum_framesizes) (struct file *file, void *fh, |
| 235 | struct v4l2_frmsizeenum *fsize); |
| 236 | |
| 237 | int (*vidioc_enum_frameintervals) (struct file *file, void *fh, |
| 238 | struct v4l2_frmivalenum *fival); |
| 239 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 240 | |
Muralidharan Karicheri | b6456c0 | 2009-11-19 12:00:31 -0300 | [diff] [blame] | 241 | int (*vidioc_enum_dv_presets) (struct file *file, void *fh, |
| 242 | struct v4l2_dv_enum_preset *preset); |
| 243 | |
| 244 | int (*vidioc_s_dv_preset) (struct file *file, void *fh, |
| 245 | struct v4l2_dv_preset *preset); |
| 246 | int (*vidioc_g_dv_preset) (struct file *file, void *fh, |
| 247 | struct v4l2_dv_preset *preset); |
| 248 | int (*vidioc_query_dv_preset) (struct file *file, void *fh, |
| 249 | struct v4l2_dv_preset *qpreset); |
| 250 | int (*vidioc_s_dv_timings) (struct file *file, void *fh, |
| 251 | struct v4l2_dv_timings *timings); |
| 252 | int (*vidioc_g_dv_timings) (struct file *file, void *fh, |
| 253 | struct v4l2_dv_timings *timings); |
| 254 | |
Sakari Ailus | d3d7c96 | 2010-03-27 11:02:10 -0300 | [diff] [blame] | 255 | int (*vidioc_subscribe_event) (struct v4l2_fh *fh, |
| 256 | struct v4l2_event_subscription *sub); |
| 257 | int (*vidioc_unsubscribe_event)(struct v4l2_fh *fh, |
| 258 | struct v4l2_event_subscription *sub); |
| 259 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 260 | |
Hans Verkuil | 069b747 | 2008-12-30 07:04:34 -0300 | [diff] [blame] | 261 | long (*vidioc_default) (struct file *file, void *fh, |
Hans Verkuil | 99cd47b | 2011-03-11 19:00:56 -0300 | [diff] [blame] | 262 | bool valid_prio, int cmd, void *arg); |
Hans Verkuil | a399810 | 2008-07-21 02:57:38 -0300 | [diff] [blame] | 263 | }; |
| 264 | |
| 265 | |
Mauro Carvalho Chehab | 2864462 | 2008-07-20 20:26:54 -0300 | [diff] [blame] | 266 | |
Mauro Carvalho Chehab | 2864462 | 2008-07-20 20:26:54 -0300 | [diff] [blame] | 267 | #define V4L2_DEBUG_IOCTL 0x01 |
| 268 | #define V4L2_DEBUG_IOCTL_ARG 0x02 |
| 269 | |
Mauro Carvalho Chehab | 2864462 | 2008-07-20 20:26:54 -0300 | [diff] [blame] | 270 | #define v4l_print_ioctl(name, cmd) \ |
| 271 | do { \ |
| 272 | printk(KERN_DEBUG "%s: ", name); \ |
| 273 | v4l_printk_ioctl(cmd); \ |
| 274 | } while (0) |
| 275 | |
Mauro Carvalho Chehab | 2864462 | 2008-07-20 20:26:54 -0300 | [diff] [blame] | 276 | #define v4l_i2c_print_ioctl(client, cmd) \ |
| 277 | do { \ |
| 278 | v4l_client_printk(KERN_DEBUG, client, ""); \ |
| 279 | v4l_printk_ioctl(cmd); \ |
| 280 | } while (0) |
| 281 | |
Hans Verkuil | 35ea11f | 2008-07-20 08:12:02 -0300 | [diff] [blame] | 282 | extern const char *v4l2_norm_to_name(v4l2_std_id id); |
Trent Piepho | 51f0b8d | 2009-03-04 01:21:02 -0300 | [diff] [blame] | 283 | extern void v4l2_video_std_frame_period(int id, struct v4l2_fract *frameperiod); |
Hans Verkuil | 35ea11f | 2008-07-20 08:12:02 -0300 | [diff] [blame] | 284 | extern int v4l2_video_std_construct(struct v4l2_standard *vs, |
| 285 | int id, const char *name); |
Hans Verkuil | 35ea11f | 2008-07-20 08:12:02 -0300 | [diff] [blame] | 286 | extern void v4l_printk_ioctl(unsigned int cmd); |
| 287 | |
Hans Verkuil | 35ea11f | 2008-07-20 08:12:02 -0300 | [diff] [blame] | 288 | extern const char *v4l2_field_names[]; |
| 289 | extern const char *v4l2_type_names[]; |
| 290 | |
Hans Verkuil | bec4366 | 2008-12-30 06:58:20 -0300 | [diff] [blame] | 291 | #ifdef CONFIG_COMPAT |
Hans Verkuil | 9bb7cde | 2008-12-30 06:42:40 -0300 | [diff] [blame] | 292 | extern long v4l2_compat_ioctl32(struct file *file, unsigned int cmd, |
Hans Verkuil | 35ea11f | 2008-07-20 08:12:02 -0300 | [diff] [blame] | 293 | unsigned long arg); |
Hans Verkuil | bec4366 | 2008-12-30 06:58:20 -0300 | [diff] [blame] | 294 | #endif |
Hans Verkuil | 35ea11f | 2008-07-20 08:12:02 -0300 | [diff] [blame] | 295 | |
Hans Verkuil | 08af245 | 2010-12-24 10:33:19 -0300 | [diff] [blame] | 296 | typedef long (*v4l2_kioctl)(struct file *file, |
| 297 | unsigned int cmd, void *arg); |
| 298 | |
Hans Verkuil | 069b747 | 2008-12-30 07:04:34 -0300 | [diff] [blame] | 299 | extern long video_usercopy(struct file *file, unsigned int cmd, |
Hans Verkuil | f473bf7 | 2008-11-01 08:25:11 -0300 | [diff] [blame] | 300 | unsigned long arg, v4l2_kioctl func); |
Hans Verkuil | 35ea11f | 2008-07-20 08:12:02 -0300 | [diff] [blame] | 301 | |
Hans Verkuil | 069b747 | 2008-12-30 07:04:34 -0300 | [diff] [blame] | 302 | extern long video_ioctl2(struct file *file, |
Mauro Carvalho Chehab | 8a522c9 | 2008-10-21 11:58:39 -0300 | [diff] [blame] | 303 | unsigned int cmd, unsigned long arg); |
| 304 | |
Flemmard | 0a7467c | 2013-05-20 14:23:09 -0700 | [diff] [blame] | 305 | #endif |