aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/media/v4l2-ioctl.h3
-rw-r--r--include/uapi/linux/videodev2.h34
2 files changed, 28 insertions, 9 deletions
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h
index e10c2432f902..75a7dfc07dec 100644
--- a/include/media/v4l2-ioctl.h
+++ b/include/media/v4l2-ioctl.h
@@ -247,6 +247,9 @@ struct v4l2_ioctl_ops {
247 int (*vidioc_g_chip_ident) (struct file *file, void *fh, 247 int (*vidioc_g_chip_ident) (struct file *file, void *fh,
248 struct v4l2_dbg_chip_ident *chip); 248 struct v4l2_dbg_chip_ident *chip);
249 249
250 int (*vidioc_g_chip_name) (struct file *file, void *fh,
251 struct v4l2_dbg_chip_name *chip);
252
250 int (*vidioc_enum_framesizes) (struct file *file, void *fh, 253 int (*vidioc_enum_framesizes) (struct file *file, void *fh,
251 struct v4l2_frmsizeenum *fsize); 254 struct v4l2_frmsizeenum *fsize);
252 255
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index 9d57dba27412..e9c49c5e6416 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -1807,10 +1807,13 @@ struct v4l2_event_subscription {
1807 1807
1808/* VIDIOC_DBG_G_REGISTER and VIDIOC_DBG_S_REGISTER */ 1808/* VIDIOC_DBG_G_REGISTER and VIDIOC_DBG_S_REGISTER */
1809 1809
1810#define V4L2_CHIP_MATCH_HOST 0 /* Match against chip ID on host (0 for the host) */ 1810#define V4L2_CHIP_MATCH_BRIDGE 0 /* Match against chip ID on the bridge (0 for the bridge) */
1811#define V4L2_CHIP_MATCH_I2C_DRIVER 1 /* Match against I2C driver name */ 1811#define V4L2_CHIP_MATCH_HOST V4L2_CHIP_MATCH_BRIDGE
1812#define V4L2_CHIP_MATCH_I2C_ADDR 2 /* Match against I2C 7-bit address */ 1812#define V4L2_CHIP_MATCH_I2C_DRIVER 1 /* Match against I2C driver name */
1813#define V4L2_CHIP_MATCH_AC97 3 /* Match against anciliary AC97 chip */ 1813#define V4L2_CHIP_MATCH_I2C_ADDR 2 /* Match against I2C 7-bit address */
1814#define V4L2_CHIP_MATCH_AC97 3 /* Match against anciliary AC97 chip */
1815#define V4L2_CHIP_MATCH_SUBDEV_NAME 4 /* Match against subdev name */
1816#define V4L2_CHIP_MATCH_SUBDEV_IDX 5 /* Match against subdev index */
1814 1817
1815struct v4l2_dbg_match { 1818struct v4l2_dbg_match {
1816 __u32 type; /* Match type */ 1819 __u32 type; /* Match type */
@@ -1834,6 +1837,17 @@ struct v4l2_dbg_chip_ident {
1834 __u32 revision; /* chip revision, chip specific */ 1837 __u32 revision; /* chip revision, chip specific */
1835} __attribute__ ((packed)); 1838} __attribute__ ((packed));
1836 1839
1840#define V4L2_CHIP_FL_READABLE (1 << 0)
1841#define V4L2_CHIP_FL_WRITABLE (1 << 1)
1842
1843/* VIDIOC_DBG_G_CHIP_NAME */
1844struct v4l2_dbg_chip_name {
1845 struct v4l2_dbg_match match;
1846 char name[32];
1847 __u32 flags;
1848 __u32 reserved[8];
1849} __attribute__ ((packed));
1850
1837/** 1851/**
1838 * struct v4l2_create_buffers - VIDIOC_CREATE_BUFS argument 1852 * struct v4l2_create_buffers - VIDIOC_CREATE_BUFS argument
1839 * @index: on return, index of the first created buffer 1853 * @index: on return, index of the first created buffer
@@ -1911,15 +1925,12 @@ struct v4l2_create_buffers {
1911#define VIDIOC_G_EXT_CTRLS _IOWR('V', 71, struct v4l2_ext_controls) 1925#define VIDIOC_G_EXT_CTRLS _IOWR('V', 71, struct v4l2_ext_controls)
1912#define VIDIOC_S_EXT_CTRLS _IOWR('V', 72, struct v4l2_ext_controls) 1926#define VIDIOC_S_EXT_CTRLS _IOWR('V', 72, struct v4l2_ext_controls)
1913#define VIDIOC_TRY_EXT_CTRLS _IOWR('V', 73, struct v4l2_ext_controls) 1927#define VIDIOC_TRY_EXT_CTRLS _IOWR('V', 73, struct v4l2_ext_controls)
1914#if 1
1915#define VIDIOC_ENUM_FRAMESIZES _IOWR('V', 74, struct v4l2_frmsizeenum) 1928#define VIDIOC_ENUM_FRAMESIZES _IOWR('V', 74, struct v4l2_frmsizeenum)
1916#define VIDIOC_ENUM_FRAMEINTERVALS _IOWR('V', 75, struct v4l2_frmivalenum) 1929#define VIDIOC_ENUM_FRAMEINTERVALS _IOWR('V', 75, struct v4l2_frmivalenum)
1917#define VIDIOC_G_ENC_INDEX _IOR('V', 76, struct v4l2_enc_idx) 1930#define VIDIOC_G_ENC_INDEX _IOR('V', 76, struct v4l2_enc_idx)
1918#define VIDIOC_ENCODER_CMD _IOWR('V', 77, struct v4l2_encoder_cmd) 1931#define VIDIOC_ENCODER_CMD _IOWR('V', 77, struct v4l2_encoder_cmd)
1919#define VIDIOC_TRY_ENCODER_CMD _IOWR('V', 78, struct v4l2_encoder_cmd) 1932#define VIDIOC_TRY_ENCODER_CMD _IOWR('V', 78, struct v4l2_encoder_cmd)
1920#endif
1921 1933
1922#if 1
1923/* Experimental, meant for debugging, testing and internal use. 1934/* Experimental, meant for debugging, testing and internal use.
1924 Only implemented if CONFIG_VIDEO_ADV_DEBUG is defined. 1935 Only implemented if CONFIG_VIDEO_ADV_DEBUG is defined.
1925 You must be root to use these ioctls. Never use these in applications! */ 1936 You must be root to use these ioctls. Never use these in applications! */
@@ -1927,9 +1938,10 @@ struct v4l2_create_buffers {
1927#define VIDIOC_DBG_G_REGISTER _IOWR('V', 80, struct v4l2_dbg_register) 1938#define VIDIOC_DBG_G_REGISTER _IOWR('V', 80, struct v4l2_dbg_register)
1928 1939
1929/* Experimental, meant for debugging, testing and internal use. 1940/* Experimental, meant for debugging, testing and internal use.
1930 Never use this ioctl in applications! */ 1941 Never use this ioctl in applications!
1942 Note: this ioctl is deprecated in favor of VIDIOC_DBG_G_CHIP_NAME and
1943 will go away in the future. */
1931#define VIDIOC_DBG_G_CHIP_IDENT _IOWR('V', 81, struct v4l2_dbg_chip_ident) 1944#define VIDIOC_DBG_G_CHIP_IDENT _IOWR('V', 81, struct v4l2_dbg_chip_ident)
1932#endif
1933 1945
1934#define VIDIOC_S_HW_FREQ_SEEK _IOW('V', 82, struct v4l2_hw_freq_seek) 1946#define VIDIOC_S_HW_FREQ_SEEK _IOW('V', 82, struct v4l2_hw_freq_seek)
1935 1947
@@ -1963,6 +1975,10 @@ struct v4l2_create_buffers {
1963 versions. */ 1975 versions. */
1964#define VIDIOC_ENUM_FREQ_BANDS _IOWR('V', 101, struct v4l2_frequency_band) 1976#define VIDIOC_ENUM_FREQ_BANDS _IOWR('V', 101, struct v4l2_frequency_band)
1965 1977
1978/* Experimental, meant for debugging, testing and internal use.
1979 Never use these in applications! */
1980#define VIDIOC_DBG_G_CHIP_NAME _IOWR('V', 102, struct v4l2_dbg_chip_name)
1981
1966/* Reminder: when adding new ioctls please add support for them to 1982/* Reminder: when adding new ioctls please add support for them to
1967 drivers/media/video/v4l2-compat-ioctl32.c as well! */ 1983 drivers/media/video/v4l2-compat-ioctl32.c as well! */
1968 1984