@@ -1272,6 +1272,35 @@ struct v4l2_queryctrl {
__u32 reserved[2];
};
+/* Used in the VIDIOC_QUERY_EXT_CTRL ioctl for querying extended controls */
+struct v4l2_query_ext_ctrl {
+ __u32 id;
+ __u32 type;
+ char name[32];
+ char unit[32];
+ union {
+ __s64 val;
+ __u32 reserved[4];
+ } min;
+ union {
+ __s64 val;
+ __u32 reserved[4];
+ } max;
+ union {
+ __u64 val;
+ __u32 reserved[4];
+ } step;
+ union {
+ __s64 val;
+ __u32 reserved[4];
+ } def;
+ __u32 flags;
+ __u32 cols;
+ __u32 rows;
+ __u32 elem_size;
+ __u32 reserved[17];
+};
+
/* Used in the VIDIOC_QUERYMENU ioctl for querying menu items */
struct v4l2_querymenu {
__u32 id;
@@ -1965,6 +1994,8 @@ struct v4l2_create_buffers {
Never use these in applications! */
#define VIDIOC_DBG_G_CHIP_INFO _IOWR('V', 102, struct v4l2_dbg_chip_info)
+#define VIDIOC_QUERY_EXT_CTRL _IOWR('V', 103, struct v4l2_query_ext_ctrl)
+
/* Reminder: when adding new ioctls please add support for them to
drivers/media/video/v4l2-compat-ioctl32.c as well! */