diff options
Diffstat (limited to 'include/media/v4l2-dev.h')
| -rw-r--r-- | include/media/v4l2-dev.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h index 5c416cdc88d5..95d1c91770f4 100644 --- a/include/media/v4l2-dev.h +++ b/include/media/v4l2-dev.h | |||
| @@ -26,6 +26,12 @@ | |||
| 26 | #define VFL_TYPE_SUBDEV 3 | 26 | #define VFL_TYPE_SUBDEV 3 |
| 27 | #define VFL_TYPE_MAX 4 | 27 | #define VFL_TYPE_MAX 4 |
| 28 | 28 | ||
| 29 | /* Is this a receiver, transmitter or mem-to-mem? */ | ||
| 30 | /* Ignored for VFL_TYPE_SUBDEV. */ | ||
| 31 | #define VFL_DIR_RX 0 | ||
| 32 | #define VFL_DIR_TX 1 | ||
| 33 | #define VFL_DIR_M2M 2 | ||
| 34 | |||
| 29 | struct v4l2_ioctl_callbacks; | 35 | struct v4l2_ioctl_callbacks; |
| 30 | struct video_device; | 36 | struct video_device; |
| 31 | struct v4l2_device; | 37 | struct v4l2_device; |
| @@ -39,9 +45,6 @@ struct v4l2_ctrl_handler; | |||
| 39 | #define V4L2_FL_USES_V4L2_FH (1) | 45 | #define V4L2_FL_USES_V4L2_FH (1) |
| 40 | /* Use the prio field of v4l2_fh for core priority checking */ | 46 | /* Use the prio field of v4l2_fh for core priority checking */ |
| 41 | #define V4L2_FL_USE_FH_PRIO (2) | 47 | #define V4L2_FL_USE_FH_PRIO (2) |
| 42 | /* If ioctl core locking is in use, then apply that also to all | ||
| 43 | file operations. Don't use this flag in new drivers! */ | ||
| 44 | #define V4L2_FL_LOCK_ALL_FOPS (3) | ||
| 45 | 48 | ||
| 46 | /* Priority helper functions */ | 49 | /* Priority helper functions */ |
| 47 | 50 | ||
| @@ -108,7 +111,8 @@ struct video_device | |||
| 108 | 111 | ||
| 109 | /* device info */ | 112 | /* device info */ |
| 110 | char name[32]; | 113 | char name[32]; |
| 111 | int vfl_type; | 114 | int vfl_type; /* device type */ |
| 115 | int vfl_dir; /* receiver, transmitter or m2m */ | ||
| 112 | /* 'minor' is set to -1 if the registration failed */ | 116 | /* 'minor' is set to -1 if the registration failed */ |
| 113 | int minor; | 117 | int minor; |
| 114 | u16 num; | 118 | u16 num; |
