1*ba07fd2fSBen Hoff /* SPDX-License-Identifier: GPL-2.0-only */ 2*ba07fd2fSBen Hoff #ifndef HWS_V4L2_IOCTL_H 3*ba07fd2fSBen Hoff #define HWS_V4L2_IOCTL_H 4*ba07fd2fSBen Hoff 5*ba07fd2fSBen Hoff #include <media/v4l2-ctrls.h> 6*ba07fd2fSBen Hoff #include <linux/fs.h> 7*ba07fd2fSBen Hoff 8*ba07fd2fSBen Hoff extern const struct v4l2_ctrl_ops hws_ctrl_ops; 9*ba07fd2fSBen Hoff 10*ba07fd2fSBen Hoff int hws_vidioc_querycap(struct file *file, void *priv, struct v4l2_capability *cap); 11*ba07fd2fSBen Hoff int hws_vidioc_enum_fmt_vid_cap(struct file *file, void *priv_fh, struct v4l2_fmtdesc *f); 12*ba07fd2fSBen Hoff int hws_vidioc_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt); 13*ba07fd2fSBen Hoff int hws_vidioc_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f); 14*ba07fd2fSBen Hoff int hws_vidioc_g_std(struct file *file, void *priv, v4l2_std_id *tvnorms); 15*ba07fd2fSBen Hoff int hws_vidioc_s_std(struct file *file, void *priv, v4l2_std_id tvnorms); 16*ba07fd2fSBen Hoff int hws_vidioc_g_parm(struct file *file, void *fh, struct v4l2_streamparm *setfps); 17*ba07fd2fSBen Hoff int hws_vidioc_enum_input(struct file *file, void *priv, struct v4l2_input *i); 18*ba07fd2fSBen Hoff int hws_vidioc_g_input(struct file *file, void *priv, unsigned int *i); 19*ba07fd2fSBen Hoff int hws_vidioc_s_input(struct file *file, void *priv, unsigned int i); 20*ba07fd2fSBen Hoff int hws_vidioc_dv_timings_cap(struct file *file, void *fh, 21*ba07fd2fSBen Hoff struct v4l2_dv_timings_cap *cap); 22*ba07fd2fSBen Hoff int hws_vidioc_s_dv_timings(struct file *file, void *fh, 23*ba07fd2fSBen Hoff struct v4l2_dv_timings *timings); 24*ba07fd2fSBen Hoff int hws_vidioc_g_dv_timings(struct file *file, void *fh, 25*ba07fd2fSBen Hoff struct v4l2_dv_timings *timings); 26*ba07fd2fSBen Hoff int hws_vidioc_enum_dv_timings(struct file *file, void *fh, 27*ba07fd2fSBen Hoff struct v4l2_enum_dv_timings *edv); 28*ba07fd2fSBen Hoff int hws_vidioc_query_dv_timings(struct file *file, void *fh, 29*ba07fd2fSBen Hoff struct v4l2_dv_timings *timings); 30*ba07fd2fSBen Hoff int hws_vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 31*ba07fd2fSBen Hoff 32*ba07fd2fSBen Hoff #endif 33