diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/videodev2.h | 14 | ||||
-rw-r--r-- | include/media/v4l2-common.h | 11 | ||||
-rw-r--r-- | include/media/v4l2-dev.h | 3 |
3 files changed, 15 insertions, 13 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 112b28c1f63a..fe6ccdfa9d48 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -1271,6 +1271,17 @@ struct v4l2_streamparm | |||
1271 | }; | 1271 | }; |
1272 | 1272 | ||
1273 | /* | 1273 | /* |
1274 | * A D V A N C E D D E B U G G I N G | ||
1275 | */ | ||
1276 | |||
1277 | /* VIDIOC_DBG_G_REGISTER and VIDIOC_DBG_S_REGISTER */ | ||
1278 | struct v4l2_register { | ||
1279 | __u32 i2c_id; /* I2C driver ID of the I2C chip, or 0 for the host */ | ||
1280 | __u32 reg; | ||
1281 | __u32 val; | ||
1282 | }; | ||
1283 | |||
1284 | /* | ||
1274 | * I O C T L C O D E S F O R V I D E O D E V I C E S | 1285 | * I O C T L C O D E S F O R V I D E O D E V I C E S |
1275 | * | 1286 | * |
1276 | */ | 1287 | */ |
@@ -1339,6 +1350,9 @@ struct v4l2_streamparm | |||
1339 | #define VIDIOC_ENUM_FRAMESIZES _IOWR ('V', 74, struct v4l2_frmsizeenum) | 1350 | #define VIDIOC_ENUM_FRAMESIZES _IOWR ('V', 74, struct v4l2_frmsizeenum) |
1340 | #define VIDIOC_ENUM_FRAMEINTERVALS _IOWR ('V', 75, struct v4l2_frmivalenum) | 1351 | #define VIDIOC_ENUM_FRAMEINTERVALS _IOWR ('V', 75, struct v4l2_frmivalenum) |
1341 | #endif | 1352 | #endif |
1353 | /* only implemented if CONFIG_VIDEO_ADV_DEBUG is defined */ | ||
1354 | #define VIDIOC_DBG_S_REGISTER _IOW ('d', 100, struct v4l2_register) | ||
1355 | #define VIDIOC_DBG_G_REGISTER _IOWR('d', 101, struct v4l2_register) | ||
1342 | 1356 | ||
1343 | #ifdef __OLD_VIDIOC_ | 1357 | #ifdef __OLD_VIDIOC_ |
1344 | /* for compatibility, will go away some day */ | 1358 | /* for compatibility, will go away some day */ |
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h index 91b19921f958..959e6f6a4eff 100644 --- a/include/media/v4l2-common.h +++ b/include/media/v4l2-common.h | |||
@@ -99,13 +99,6 @@ u32 v4l2_ctrl_next(const u32 * const *ctrl_classes, u32 id); | |||
99 | 99 | ||
100 | /* Internal ioctls */ | 100 | /* Internal ioctls */ |
101 | 101 | ||
102 | /* VIDIOC_INT_G_REGISTER and VIDIOC_INT_S_REGISTER */ | ||
103 | struct v4l2_register { | ||
104 | u32 i2c_id; /* I2C driver ID of the I2C chip. 0 for the I2C adapter. */ | ||
105 | unsigned long reg; | ||
106 | u32 val; | ||
107 | }; | ||
108 | |||
109 | /* VIDIOC_INT_DECODE_VBI_LINE */ | 102 | /* VIDIOC_INT_DECODE_VBI_LINE */ |
110 | struct v4l2_decode_vbi_line { | 103 | struct v4l2_decode_vbi_line { |
111 | u32 is_second_field; /* Set to 0 for the first (odd) field, | 104 | u32 is_second_field; /* Set to 0 for the first (odd) field, |
@@ -175,9 +168,7 @@ enum v4l2_chip_ident { | |||
175 | Replacement of TUNER_SET_STANDBY. */ | 168 | Replacement of TUNER_SET_STANDBY. */ |
176 | #define VIDIOC_INT_S_STANDBY _IOW('d', 94, u32) | 169 | #define VIDIOC_INT_S_STANDBY _IOW('d', 94, u32) |
177 | 170 | ||
178 | /* only implemented if CONFIG_VIDEO_ADV_DEBUG is defined */ | 171 | /* 100, 101 used by VIDIOC_DBG_[SG]_REGISTER */ |
179 | #define VIDIOC_INT_S_REGISTER _IOW ('d', 100, struct v4l2_register) | ||
180 | #define VIDIOC_INT_G_REGISTER _IOWR('d', 101, struct v4l2_register) | ||
181 | 172 | ||
182 | /* Generic reset command. The argument selects which subsystems to reset. | 173 | /* Generic reset command. The argument selects which subsystems to reset. |
183 | Passing 0 will always reset the whole chip. */ | 174 | Passing 0 will always reset the whole chip. */ |
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h index 46eb71f5653c..aeec56992ef5 100644 --- a/include/media/v4l2-dev.h +++ b/include/media/v4l2-dev.h | |||
@@ -77,9 +77,6 @@ int v4l_compat_translate_ioctl(struct inode *inode, struct file *file, | |||
77 | extern long v4l_compat_ioctl32(struct file *file, unsigned int cmd, | 77 | extern long v4l_compat_ioctl32(struct file *file, unsigned int cmd, |
78 | unsigned long arg); | 78 | unsigned long arg); |
79 | 79 | ||
80 | /* Forward definition of v4l2-common.h defined structure */ | ||
81 | struct v4l2_register; | ||
82 | |||
83 | /* | 80 | /* |
84 | * Newer version of video_device, handled by videodev2.c | 81 | * Newer version of video_device, handled by videodev2.c |
85 | * This version moves redundant code from video device code to | 82 | * This version moves redundant code from video device code to |