diff options
Diffstat (limited to 'include/media/v4l2-int-device.h')
-rw-r--r-- | include/media/v4l2-int-device.h | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/include/media/v4l2-int-device.h b/include/media/v4l2-int-device.h index c8b80e0f0651..9c2df41dbf92 100644 --- a/include/media/v4l2-int-device.h +++ b/include/media/v4l2-int-device.h | |||
@@ -84,6 +84,8 @@ struct v4l2_int_device { | |||
84 | void *priv; | 84 | void *priv; |
85 | }; | 85 | }; |
86 | 86 | ||
87 | void v4l2_int_device_try_attach_all(void); | ||
88 | |||
87 | int v4l2_int_device_register(struct v4l2_int_device *d); | 89 | int v4l2_int_device_register(struct v4l2_int_device *d); |
88 | void v4l2_int_device_unregister(struct v4l2_int_device *d); | 90 | void v4l2_int_device_unregister(struct v4l2_int_device *d); |
89 | 91 | ||
@@ -96,6 +98,12 @@ int v4l2_int_ioctl_1(struct v4l2_int_device *d, int cmd, void *arg); | |||
96 | * | 98 | * |
97 | */ | 99 | */ |
98 | 100 | ||
101 | enum v4l2_power { | ||
102 | V4L2_POWER_OFF = 0, | ||
103 | V4L2_POWER_ON, | ||
104 | V4L2_POWER_STANDBY, | ||
105 | }; | ||
106 | |||
99 | /* Slave interface type. */ | 107 | /* Slave interface type. */ |
100 | enum v4l2_if_type { | 108 | enum v4l2_if_type { |
101 | /* | 109 | /* |
@@ -170,6 +178,9 @@ enum v4l2_int_ioctl_num { | |||
170 | vidioc_int_queryctrl_num, | 178 | vidioc_int_queryctrl_num, |
171 | vidioc_int_g_ctrl_num, | 179 | vidioc_int_g_ctrl_num, |
172 | vidioc_int_s_ctrl_num, | 180 | vidioc_int_s_ctrl_num, |
181 | vidioc_int_cropcap_num, | ||
182 | vidioc_int_g_crop_num, | ||
183 | vidioc_int_s_crop_num, | ||
173 | vidioc_int_g_parm_num, | 184 | vidioc_int_g_parm_num, |
174 | vidioc_int_s_parm_num, | 185 | vidioc_int_s_parm_num, |
175 | 186 | ||
@@ -182,12 +193,19 @@ enum v4l2_int_ioctl_num { | |||
182 | vidioc_int_dev_init_num = 1000, | 193 | vidioc_int_dev_init_num = 1000, |
183 | /* Delinitialise the device at slave detach. */ | 194 | /* Delinitialise the device at slave detach. */ |
184 | vidioc_int_dev_exit_num, | 195 | vidioc_int_dev_exit_num, |
185 | /* Set device power state: 0 is off, non-zero is on. */ | 196 | /* Set device power state. */ |
186 | vidioc_int_s_power_num, | 197 | vidioc_int_s_power_num, |
198 | /* | ||
199 | * Get slave private data, e.g. platform-specific slave | ||
200 | * configuration used by the master. | ||
201 | */ | ||
202 | vidioc_int_g_priv_num, | ||
187 | /* Get slave interface parameters. */ | 203 | /* Get slave interface parameters. */ |
188 | vidioc_int_g_ifparm_num, | 204 | vidioc_int_g_ifparm_num, |
189 | /* Does the slave need to be reset after VIDIOC_DQBUF? */ | 205 | /* Does the slave need to be reset after VIDIOC_DQBUF? */ |
190 | vidioc_int_g_needs_reset_num, | 206 | vidioc_int_g_needs_reset_num, |
207 | vidioc_int_enum_framesizes_num, | ||
208 | vidioc_int_enum_frameintervals_num, | ||
191 | 209 | ||
192 | /* | 210 | /* |
193 | * | 211 | * |
@@ -261,14 +279,20 @@ V4L2_INT_WRAPPER_1(try_fmt_cap, struct v4l2_format, *); | |||
261 | V4L2_INT_WRAPPER_1(queryctrl, struct v4l2_queryctrl, *); | 279 | V4L2_INT_WRAPPER_1(queryctrl, struct v4l2_queryctrl, *); |
262 | V4L2_INT_WRAPPER_1(g_ctrl, struct v4l2_control, *); | 280 | V4L2_INT_WRAPPER_1(g_ctrl, struct v4l2_control, *); |
263 | V4L2_INT_WRAPPER_1(s_ctrl, struct v4l2_control, *); | 281 | V4L2_INT_WRAPPER_1(s_ctrl, struct v4l2_control, *); |
282 | V4L2_INT_WRAPPER_1(cropcap, struct v4l2_cropcap, *); | ||
283 | V4L2_INT_WRAPPER_1(g_crop, struct v4l2_crop, *); | ||
284 | V4L2_INT_WRAPPER_1(s_crop, struct v4l2_crop, *); | ||
264 | V4L2_INT_WRAPPER_1(g_parm, struct v4l2_streamparm, *); | 285 | V4L2_INT_WRAPPER_1(g_parm, struct v4l2_streamparm, *); |
265 | V4L2_INT_WRAPPER_1(s_parm, struct v4l2_streamparm, *); | 286 | V4L2_INT_WRAPPER_1(s_parm, struct v4l2_streamparm, *); |
266 | 287 | ||
267 | V4L2_INT_WRAPPER_0(dev_init); | 288 | V4L2_INT_WRAPPER_0(dev_init); |
268 | V4L2_INT_WRAPPER_0(dev_exit); | 289 | V4L2_INT_WRAPPER_0(dev_exit); |
269 | V4L2_INT_WRAPPER_1(s_power, int, ); | 290 | V4L2_INT_WRAPPER_1(s_power, enum v4l2_power, ); |
291 | V4L2_INT_WRAPPER_1(g_priv, void, *); | ||
270 | V4L2_INT_WRAPPER_1(g_ifparm, struct v4l2_ifparm, *); | 292 | V4L2_INT_WRAPPER_1(g_ifparm, struct v4l2_ifparm, *); |
271 | V4L2_INT_WRAPPER_1(g_needs_reset, void, *); | 293 | V4L2_INT_WRAPPER_1(g_needs_reset, void, *); |
294 | V4L2_INT_WRAPPER_1(enum_framesizes, struct v4l2_frmsizeenum, *); | ||
295 | V4L2_INT_WRAPPER_1(enum_frameintervals, struct v4l2_frmivalenum, *); | ||
272 | 296 | ||
273 | V4L2_INT_WRAPPER_0(reset); | 297 | V4L2_INT_WRAPPER_0(reset); |
274 | V4L2_INT_WRAPPER_0(init); | 298 | V4L2_INT_WRAPPER_0(init); |