v4l2-subdev.h revision 05d08e9716b5974d6ed08973f44930804890b902
1a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich/**************************************************************************** 2a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich **************************************************************************** 3a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** 4a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** This header was automatically generated from a Linux kernel header 5a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** of the same name, to make information necessary for userspace to 6a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** call into the kernel available to libc. It contains only constants, 7a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** structures, and macros generated from the original header, and thus, 8a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** contains no copyrightable information. 9a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** 10a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** To edit the content of this header, modify the corresponding 11a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** source file (e.g. under external/kernel-headers/original/) then 12a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** run bionic/libc/kernel/tools/update_all.py 13a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** 14a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** Any manual change here will be lost the next time this script will 15a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** be run. You've been warned! 16a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich *** 17a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich **************************************************************************** 18a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ****************************************************************************/ 19655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#ifndef __LINUX_V4L2_SUBDEV_H 20655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define __LINUX_V4L2_SUBDEV_H 21655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/ioctl.h> 22106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#include <linux/types.h> 23106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#include <linux/v4l2-common.h> 25d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#include <linux/v4l2-mediabus.h> 26d7db594b8d1dab36b711bd887a9dd21675c87243Tao Baoenum v4l2_subdev_format_whence { 27106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris V4L2_SUBDEV_FORMAT_TRY = 0, 28655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich V4L2_SUBDEV_FORMAT_ACTIVE = 1, 30}; 31struct v4l2_subdev_format { 32 __u32 which; 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 __u32 pad; 35 struct v4l2_mbus_framefmt format; 36 __u32 reserved[8]; 37}; 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39struct v4l2_subdev_crop { 40 __u32 which; 41 __u32 pad; 42 struct v4l2_rect rect; 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 __u32 reserved[8]; 45}; 46struct v4l2_subdev_mbus_code_enum { 47 __u32 pad; 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 __u32 index; 50 __u32 code; 51 __u32 which; 52 __u32 reserved[8]; 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54}; 55struct v4l2_subdev_frame_size_enum { 56 __u32 index; 57 __u32 pad; 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 __u32 code; 60 __u32 min_width; 61 __u32 max_width; 62 __u32 min_height; 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 __u32 max_height; 65 __u32 which; 66 __u32 reserved[8]; 67}; 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69struct v4l2_subdev_frame_interval { 70 __u32 pad; 71 struct v4l2_fract interval; 72 __u32 reserved[9]; 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74}; 75struct v4l2_subdev_frame_interval_enum { 76 __u32 index; 77 __u32 pad; 78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 __u32 code; 80 __u32 width; 81 __u32 height; 82 struct v4l2_fract interval; 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 __u32 which; 85 __u32 reserved[8]; 86}; 87struct v4l2_subdev_selection { 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 __u32 which; 90 __u32 pad; 91 __u32 target; 92 __u32 flags; 93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 struct v4l2_rect r; 95 __u32 reserved[8]; 96}; 97#define v4l2_subdev_edid v4l2_edid 98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99#define VIDIOC_SUBDEV_G_FMT _IOWR('V', 4, struct v4l2_subdev_format) 100#define VIDIOC_SUBDEV_S_FMT _IOWR('V', 5, struct v4l2_subdev_format) 101#define VIDIOC_SUBDEV_G_FRAME_INTERVAL _IOWR('V', 21, struct v4l2_subdev_frame_interval) 102#define VIDIOC_SUBDEV_S_FRAME_INTERVAL _IOWR('V', 22, struct v4l2_subdev_frame_interval) 103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104#define VIDIOC_SUBDEV_ENUM_MBUS_CODE _IOWR('V', 2, struct v4l2_subdev_mbus_code_enum) 105#define VIDIOC_SUBDEV_ENUM_FRAME_SIZE _IOWR('V', 74, struct v4l2_subdev_frame_size_enum) 106#define VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL _IOWR('V', 75, struct v4l2_subdev_frame_interval_enum) 107#define VIDIOC_SUBDEV_G_CROP _IOWR('V', 59, struct v4l2_subdev_crop) 108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109#define VIDIOC_SUBDEV_S_CROP _IOWR('V', 60, struct v4l2_subdev_crop) 110#define VIDIOC_SUBDEV_G_SELECTION _IOWR('V', 61, struct v4l2_subdev_selection) 111#define VIDIOC_SUBDEV_S_SELECTION _IOWR('V', 62, struct v4l2_subdev_selection) 112#define VIDIOC_SUBDEV_G_EDID _IOWR('V', 40, struct v4l2_edid) 113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114#define VIDIOC_SUBDEV_S_EDID _IOWR('V', 41, struct v4l2_edid) 115#define VIDIOC_SUBDEV_S_DV_TIMINGS _IOWR('V', 87, struct v4l2_dv_timings) 116#define VIDIOC_SUBDEV_G_DV_TIMINGS _IOWR('V', 88, struct v4l2_dv_timings) 117#define VIDIOC_SUBDEV_ENUM_DV_TIMINGS _IOWR('V', 98, struct v4l2_enum_dv_timings) 118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119#define VIDIOC_SUBDEV_QUERY_DV_TIMINGS _IOR('V', 99, struct v4l2_dv_timings) 120#define VIDIOC_SUBDEV_DV_TIMINGS_CAP _IOWR('V', 100, struct v4l2_dv_timings_cap) 121#endif 122