Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef __LINUX_V4L2_SUBDEV_H
     20 #define __LINUX_V4L2_SUBDEV_H
     21 #include <linux/ioctl.h>
     22 #include <linux/types.h>
     23 #include <linux/v4l2-common.h>
     24 #include <linux/v4l2-mediabus.h>
     25 enum v4l2_subdev_format_whence {
     26   V4L2_SUBDEV_FORMAT_TRY = 0,
     27   V4L2_SUBDEV_FORMAT_ACTIVE = 1,
     28 };
     29 struct v4l2_subdev_format {
     30   __u32 which;
     31   __u32 pad;
     32   struct v4l2_mbus_framefmt format;
     33   __u32 reserved[8];
     34 };
     35 struct v4l2_subdev_crop {
     36   __u32 which;
     37   __u32 pad;
     38   struct v4l2_rect rect;
     39   __u32 reserved[8];
     40 };
     41 struct v4l2_subdev_mbus_code_enum {
     42   __u32 pad;
     43   __u32 index;
     44   __u32 code;
     45   __u32 which;
     46   __u32 reserved[8];
     47 };
     48 struct v4l2_subdev_frame_size_enum {
     49   __u32 index;
     50   __u32 pad;
     51   __u32 code;
     52   __u32 min_width;
     53   __u32 max_width;
     54   __u32 min_height;
     55   __u32 max_height;
     56   __u32 which;
     57   __u32 reserved[8];
     58 };
     59 struct v4l2_subdev_frame_interval {
     60   __u32 pad;
     61   struct v4l2_fract interval;
     62   __u32 reserved[9];
     63 };
     64 struct v4l2_subdev_frame_interval_enum {
     65   __u32 index;
     66   __u32 pad;
     67   __u32 code;
     68   __u32 width;
     69   __u32 height;
     70   struct v4l2_fract interval;
     71   __u32 which;
     72   __u32 reserved[8];
     73 };
     74 struct v4l2_subdev_selection {
     75   __u32 which;
     76   __u32 pad;
     77   __u32 target;
     78   __u32 flags;
     79   struct v4l2_rect r;
     80   __u32 reserved[8];
     81 };
     82 #define v4l2_subdev_edid v4l2_edid
     83 #define VIDIOC_SUBDEV_G_FMT _IOWR('V', 4, struct v4l2_subdev_format)
     84 #define VIDIOC_SUBDEV_S_FMT _IOWR('V', 5, struct v4l2_subdev_format)
     85 #define VIDIOC_SUBDEV_G_FRAME_INTERVAL _IOWR('V', 21, struct v4l2_subdev_frame_interval)
     86 #define VIDIOC_SUBDEV_S_FRAME_INTERVAL _IOWR('V', 22, struct v4l2_subdev_frame_interval)
     87 #define VIDIOC_SUBDEV_ENUM_MBUS_CODE _IOWR('V', 2, struct v4l2_subdev_mbus_code_enum)
     88 #define VIDIOC_SUBDEV_ENUM_FRAME_SIZE _IOWR('V', 74, struct v4l2_subdev_frame_size_enum)
     89 #define VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL _IOWR('V', 75, struct v4l2_subdev_frame_interval_enum)
     90 #define VIDIOC_SUBDEV_G_CROP _IOWR('V', 59, struct v4l2_subdev_crop)
     91 #define VIDIOC_SUBDEV_S_CROP _IOWR('V', 60, struct v4l2_subdev_crop)
     92 #define VIDIOC_SUBDEV_G_SELECTION _IOWR('V', 61, struct v4l2_subdev_selection)
     93 #define VIDIOC_SUBDEV_S_SELECTION _IOWR('V', 62, struct v4l2_subdev_selection)
     94 #define VIDIOC_SUBDEV_G_EDID _IOWR('V', 40, struct v4l2_edid)
     95 #define VIDIOC_SUBDEV_S_EDID _IOWR('V', 41, struct v4l2_edid)
     96 #define VIDIOC_SUBDEV_S_DV_TIMINGS _IOWR('V', 87, struct v4l2_dv_timings)
     97 #define VIDIOC_SUBDEV_G_DV_TIMINGS _IOWR('V', 88, struct v4l2_dv_timings)
     98 #define VIDIOC_SUBDEV_ENUM_DV_TIMINGS _IOWR('V', 98, struct v4l2_enum_dv_timings)
     99 #define VIDIOC_SUBDEV_QUERY_DV_TIMINGS _IOR('V', 99, struct v4l2_dv_timings)
    100 #define VIDIOC_SUBDEV_DV_TIMINGS_CAP _IOWR('V', 100, struct v4l2_dv_timings_cap)
    101 #endif
    102