12 #include <linux/poll.h>
14 #include <linux/device.h>
17 #include <linux/videodev2.h>
21 #define VIDEO_MAJOR 81
23 #define VFL_TYPE_GRABBER 0
24 #define VFL_TYPE_VBI 1
25 #define VFL_TYPE_RADIO 2
26 #define VFL_TYPE_SUBDEV 3
27 #define VFL_TYPE_MAX 4
35 struct v4l2_ioctl_callbacks;
43 #define V4L2_FL_REGISTERED (0)
45 #define V4L2_FL_USES_V4L2_FH (1)
47 #define V4L2_FL_USE_FH_PRIO (2)
89 #if defined(CONFIG_MEDIA_CONTROLLER)
146 #define media_entity_to_video_device(__e) \
147 container_of(__e, struct video_device, entity)
149 #define to_video_device(cd) container_of(cd, struct video_device, dev)
166 static inline int __must_check video_register_device_no_warn(
192 static inline void v4l2_disable_ioctl_locking(
struct video_device *vdev,
unsigned int cmd)
202 static inline void v4l2_disable_ioctl(
struct video_device *vdev,
unsigned int cmd)
209 static inline void *video_get_drvdata(
struct video_device *vdev)
223 static inline void *video_drvdata(
struct file *
file)
228 static inline const char *video_device_node_name(
struct video_device *vdev)
230 return dev_name(&vdev->
dev);
233 static inline int video_is_registered(
struct video_device *vdev)