diff options
Diffstat (limited to 'include/media/v4l2-dev.h')
| -rw-r--r-- | include/media/v4l2-dev.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h index 2dee93892ea2..1efcacbed01a 100644 --- a/include/media/v4l2-dev.h +++ b/include/media/v4l2-dev.h | |||
| @@ -27,11 +27,13 @@ | |||
| 27 | struct v4l2_ioctl_callbacks; | 27 | struct v4l2_ioctl_callbacks; |
| 28 | struct video_device; | 28 | struct video_device; |
| 29 | struct v4l2_device; | 29 | struct v4l2_device; |
| 30 | struct v4l2_ctrl_handler; | ||
| 30 | 31 | ||
| 31 | /* Flag to mark the video_device struct as registered. | 32 | /* Flag to mark the video_device struct as registered. |
| 32 | Drivers can clear this flag if they want to block all future | 33 | Drivers can clear this flag if they want to block all future |
| 33 | device access. It is cleared by video_unregister_device. */ | 34 | device access. It is cleared by video_unregister_device. */ |
| 34 | #define V4L2_FL_REGISTERED (0) | 35 | #define V4L2_FL_REGISTERED (0) |
| 36 | #define V4L2_FL_USES_V4L2_FH (1) | ||
| 35 | 37 | ||
| 36 | struct v4l2_file_operations { | 38 | struct v4l2_file_operations { |
| 37 | struct module *owner; | 39 | struct module *owner; |
| @@ -66,6 +68,9 @@ struct video_device | |||
| 66 | struct device *parent; /* device parent */ | 68 | struct device *parent; /* device parent */ |
| 67 | struct v4l2_device *v4l2_dev; /* v4l2_device parent */ | 69 | struct v4l2_device *v4l2_dev; /* v4l2_device parent */ |
| 68 | 70 | ||
| 71 | /* Control handler associated with this device node. May be NULL. */ | ||
| 72 | struct v4l2_ctrl_handler *ctrl_handler; | ||
| 73 | |||
| 69 | /* device info */ | 74 | /* device info */ |
| 70 | char name[32]; | 75 | char name[32]; |
| 71 | int vfl_type; | 76 | int vfl_type; |
| @@ -77,6 +82,10 @@ struct video_device | |||
| 77 | /* attribute to differentiate multiple indices on one physical device */ | 82 | /* attribute to differentiate multiple indices on one physical device */ |
| 78 | int index; | 83 | int index; |
| 79 | 84 | ||
| 85 | /* V4L2 file handles */ | ||
| 86 | spinlock_t fh_lock; /* Lock for all v4l2_fhs */ | ||
| 87 | struct list_head fh_list; /* List of struct v4l2_fh */ | ||
| 88 | |||
| 80 | int debug; /* Activates debug level*/ | 89 | int debug; /* Activates debug level*/ |
| 81 | 90 | ||
| 82 | /* Video standard vars */ | 91 | /* Video standard vars */ |
