blob: b191bea145333a66bc286022fe0c565b11cba15b [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 _UAPI__LINUX_VIDEODEV2_H
20#define _UAPI__LINUX_VIDEODEV2_H
21#include <sys/time.h>
22#include <linux/compiler.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <linux/ioctl.h>
25#include <linux/types.h>
26#include <linux/v4l2-common.h>
27#include <linux/v4l2-controls.h>
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define VIDEO_MAX_FRAME 32
30#define VIDEO_MAX_PLANES 8
31#define v4l2_fourcc(a, b, c, d) ((__u32)(a) | ((__u32)(b) << 8) | ((__u32)(c) << 16) | ((__u32)(d) << 24))
32enum v4l2_field {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 V4L2_FIELD_ANY = 0,
35 V4L2_FIELD_NONE = 1,
36 V4L2_FIELD_TOP = 2,
37 V4L2_FIELD_BOTTOM = 3,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 V4L2_FIELD_INTERLACED = 4,
40 V4L2_FIELD_SEQ_TB = 5,
41 V4L2_FIELD_SEQ_BT = 6,
42 V4L2_FIELD_ALTERNATE = 7,
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 V4L2_FIELD_INTERLACED_TB = 8,
45 V4L2_FIELD_INTERLACED_BT = 9,
46};
47#define V4L2_FIELD_HAS_TOP(field) ((field) == V4L2_FIELD_TOP || (field) == V4L2_FIELD_INTERLACED || (field) == V4L2_FIELD_INTERLACED_TB || (field) == V4L2_FIELD_INTERLACED_BT || (field) == V4L2_FIELD_SEQ_TB || (field) == V4L2_FIELD_SEQ_BT)
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define V4L2_FIELD_HAS_BOTTOM(field) ((field) == V4L2_FIELD_BOTTOM || (field) == V4L2_FIELD_INTERLACED || (field) == V4L2_FIELD_INTERLACED_TB || (field) == V4L2_FIELD_INTERLACED_BT || (field) == V4L2_FIELD_SEQ_TB || (field) == V4L2_FIELD_SEQ_BT)
50#define V4L2_FIELD_HAS_BOTH(field) ((field) == V4L2_FIELD_INTERLACED || (field) == V4L2_FIELD_INTERLACED_TB || (field) == V4L2_FIELD_INTERLACED_BT || (field) == V4L2_FIELD_SEQ_TB || (field) == V4L2_FIELD_SEQ_BT)
51enum v4l2_buf_type {
52 V4L2_BUF_TYPE_VIDEO_CAPTURE = 1,
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 V4L2_BUF_TYPE_VIDEO_OUTPUT = 2,
55 V4L2_BUF_TYPE_VIDEO_OVERLAY = 3,
56 V4L2_BUF_TYPE_VBI_CAPTURE = 4,
57 V4L2_BUF_TYPE_VBI_OUTPUT = 5,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 V4L2_BUF_TYPE_SLICED_VBI_CAPTURE = 6,
60 V4L2_BUF_TYPE_SLICED_VBI_OUTPUT = 7,
61 V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY = 8,
62 V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE = 9,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE = 10,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070065 V4L2_BUF_TYPE_SDR_CAPTURE = 11,
Ben Cheng655a7c02013-10-16 16:09:24 -070066 V4L2_BUF_TYPE_PRIVATE = 0x80,
67};
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070069#define V4L2_TYPE_IS_MULTIPLANAR(type) ((type) == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE)
Ben Cheng655a7c02013-10-16 16:09:24 -070070#define V4L2_TYPE_IS_OUTPUT(type) ((type) == V4L2_BUF_TYPE_VIDEO_OUTPUT || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE || (type) == V4L2_BUF_TYPE_VIDEO_OVERLAY || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY || (type) == V4L2_BUF_TYPE_VBI_OUTPUT || (type) == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT)
71enum v4l2_tuner_type {
72 V4L2_TUNER_RADIO = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070074 V4L2_TUNER_ANALOG_TV = 2,
Ben Cheng655a7c02013-10-16 16:09:24 -070075 V4L2_TUNER_DIGITAL_TV = 3,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070076 V4L2_TUNER_ADC = 4,
77 V4L2_TUNER_RF = 5,
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070079};
80enum v4l2_memory {
81 V4L2_MEMORY_MMAP = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -070082 V4L2_MEMORY_USERPTR = 2,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070084 V4L2_MEMORY_OVERLAY = 3,
85 V4L2_MEMORY_DMABUF = 4,
86};
Ben Cheng655a7c02013-10-16 16:09:24 -070087enum v4l2_colorspace {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089 V4L2_COLORSPACE_SMPTE170M = 1,
90 V4L2_COLORSPACE_SMPTE240M = 2,
91 V4L2_COLORSPACE_REC709 = 3,
Ben Cheng655a7c02013-10-16 16:09:24 -070092 V4L2_COLORSPACE_BT878 = 4,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070094 V4L2_COLORSPACE_470_SYSTEM_M = 5,
95 V4L2_COLORSPACE_470_SYSTEM_BG = 6,
96 V4L2_COLORSPACE_JPEG = 7,
Ben Cheng655a7c02013-10-16 16:09:24 -070097 V4L2_COLORSPACE_SRGB = 8,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099};
100enum v4l2_priority {
101 V4L2_PRIORITY_UNSET = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700102 V4L2_PRIORITY_BACKGROUND = 1,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700104 V4L2_PRIORITY_INTERACTIVE = 2,
105 V4L2_PRIORITY_RECORD = 3,
106 V4L2_PRIORITY_DEFAULT = V4L2_PRIORITY_INTERACTIVE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700107};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700109struct v4l2_rect {
110 __s32 left;
111 __s32 top;
Christopher Ferris38062f92014-07-09 15:33:25 -0700112 __u32 width;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700114 __u32 height;
Ben Cheng655a7c02013-10-16 16:09:24 -0700115};
116struct v4l2_fract {
Ben Cheng655a7c02013-10-16 16:09:24 -0700117 __u32 numerator;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700119 __u32 denominator;
120};
121struct v4l2_capability {
Ben Cheng655a7c02013-10-16 16:09:24 -0700122 __u8 driver[16];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700124 __u8 card[32];
125 __u8 bus_info[32];
126 __u32 version;
Ben Cheng655a7c02013-10-16 16:09:24 -0700127 __u32 capabilities;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700129 __u32 device_caps;
130 __u32 reserved[3];
131};
Ben Cheng655a7c02013-10-16 16:09:24 -0700132#define V4L2_CAP_VIDEO_CAPTURE 0x00000001
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700134#define V4L2_CAP_VIDEO_OUTPUT 0x00000002
135#define V4L2_CAP_VIDEO_OVERLAY 0x00000004
136#define V4L2_CAP_VBI_CAPTURE 0x00000010
Ben Cheng655a7c02013-10-16 16:09:24 -0700137#define V4L2_CAP_VBI_OUTPUT 0x00000020
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700139#define V4L2_CAP_SLICED_VBI_CAPTURE 0x00000040
140#define V4L2_CAP_SLICED_VBI_OUTPUT 0x00000080
141#define V4L2_CAP_RDS_CAPTURE 0x00000100
Ben Cheng655a7c02013-10-16 16:09:24 -0700142#define V4L2_CAP_VIDEO_OUTPUT_OVERLAY 0x00000200
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700144#define V4L2_CAP_HW_FREQ_SEEK 0x00000400
145#define V4L2_CAP_RDS_OUTPUT 0x00000800
146#define V4L2_CAP_VIDEO_CAPTURE_MPLANE 0x00001000
Ben Cheng655a7c02013-10-16 16:09:24 -0700147#define V4L2_CAP_VIDEO_OUTPUT_MPLANE 0x00002000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700149#define V4L2_CAP_VIDEO_M2M_MPLANE 0x00004000
150#define V4L2_CAP_VIDEO_M2M 0x00008000
151#define V4L2_CAP_TUNER 0x00010000
Ben Cheng655a7c02013-10-16 16:09:24 -0700152#define V4L2_CAP_AUDIO 0x00020000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700154#define V4L2_CAP_RADIO 0x00040000
155#define V4L2_CAP_MODULATOR 0x00080000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700156#define V4L2_CAP_SDR_CAPTURE 0x00100000
Ben Cheng655a7c02013-10-16 16:09:24 -0700157#define V4L2_CAP_READWRITE 0x01000000
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159#define V4L2_CAP_ASYNCIO 0x02000000
160#define V4L2_CAP_STREAMING 0x04000000
161#define V4L2_CAP_DEVICE_CAPS 0x80000000
162struct v4l2_pix_format {
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 __u32 width;
165 __u32 height;
166 __u32 pixelformat;
167 __u32 field;
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 __u32 bytesperline;
170 __u32 sizeimage;
171 __u32 colorspace;
172 __u32 priv;
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174};
175#define V4L2_PIX_FMT_RGB332 v4l2_fourcc('R', 'G', 'B', '1')
176#define V4L2_PIX_FMT_RGB444 v4l2_fourcc('R', '4', '4', '4')
177#define V4L2_PIX_FMT_RGB555 v4l2_fourcc('R', 'G', 'B', 'O')
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179#define V4L2_PIX_FMT_RGB565 v4l2_fourcc('R', 'G', 'B', 'P')
180#define V4L2_PIX_FMT_RGB555X v4l2_fourcc('R', 'G', 'B', 'Q')
181#define V4L2_PIX_FMT_RGB565X v4l2_fourcc('R', 'G', 'B', 'R')
182#define V4L2_PIX_FMT_BGR666 v4l2_fourcc('B', 'G', 'R', 'H')
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184#define V4L2_PIX_FMT_BGR24 v4l2_fourcc('B', 'G', 'R', '3')
185#define V4L2_PIX_FMT_RGB24 v4l2_fourcc('R', 'G', 'B', '3')
186#define V4L2_PIX_FMT_BGR32 v4l2_fourcc('B', 'G', 'R', '4')
187#define V4L2_PIX_FMT_RGB32 v4l2_fourcc('R', 'G', 'B', '4')
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189#define V4L2_PIX_FMT_GREY v4l2_fourcc('G', 'R', 'E', 'Y')
190#define V4L2_PIX_FMT_Y4 v4l2_fourcc('Y', '0', '4', ' ')
191#define V4L2_PIX_FMT_Y6 v4l2_fourcc('Y', '0', '6', ' ')
192#define V4L2_PIX_FMT_Y10 v4l2_fourcc('Y', '1', '0', ' ')
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194#define V4L2_PIX_FMT_Y12 v4l2_fourcc('Y', '1', '2', ' ')
195#define V4L2_PIX_FMT_Y16 v4l2_fourcc('Y', '1', '6', ' ')
196#define V4L2_PIX_FMT_Y10BPACK v4l2_fourcc('Y', '1', '0', 'B')
197#define V4L2_PIX_FMT_PAL8 v4l2_fourcc('P', 'A', 'L', '8')
198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199#define V4L2_PIX_FMT_UV8 v4l2_fourcc('U', 'V', '8', ' ')
200#define V4L2_PIX_FMT_YVU410 v4l2_fourcc('Y', 'V', 'U', '9')
201#define V4L2_PIX_FMT_YVU420 v4l2_fourcc('Y', 'V', '1', '2')
202#define V4L2_PIX_FMT_YUYV v4l2_fourcc('Y', 'U', 'Y', 'V')
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204#define V4L2_PIX_FMT_YYUV v4l2_fourcc('Y', 'Y', 'U', 'V')
205#define V4L2_PIX_FMT_YVYU v4l2_fourcc('Y', 'V', 'Y', 'U')
206#define V4L2_PIX_FMT_UYVY v4l2_fourcc('U', 'Y', 'V', 'Y')
207#define V4L2_PIX_FMT_VYUY v4l2_fourcc('V', 'Y', 'U', 'Y')
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209#define V4L2_PIX_FMT_YUV422P v4l2_fourcc('4', '2', '2', 'P')
210#define V4L2_PIX_FMT_YUV411P v4l2_fourcc('4', '1', '1', 'P')
211#define V4L2_PIX_FMT_Y41P v4l2_fourcc('Y', '4', '1', 'P')
212#define V4L2_PIX_FMT_YUV444 v4l2_fourcc('Y', '4', '4', '4')
213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214#define V4L2_PIX_FMT_YUV555 v4l2_fourcc('Y', 'U', 'V', 'O')
215#define V4L2_PIX_FMT_YUV565 v4l2_fourcc('Y', 'U', 'V', 'P')
216#define V4L2_PIX_FMT_YUV32 v4l2_fourcc('Y', 'U', 'V', '4')
217#define V4L2_PIX_FMT_YUV410 v4l2_fourcc('Y', 'U', 'V', '9')
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219#define V4L2_PIX_FMT_YUV420 v4l2_fourcc('Y', 'U', '1', '2')
220#define V4L2_PIX_FMT_HI240 v4l2_fourcc('H', 'I', '2', '4')
221#define V4L2_PIX_FMT_HM12 v4l2_fourcc('H', 'M', '1', '2')
222#define V4L2_PIX_FMT_M420 v4l2_fourcc('M', '4', '2', '0')
223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224#define V4L2_PIX_FMT_NV12 v4l2_fourcc('N', 'V', '1', '2')
225#define V4L2_PIX_FMT_NV21 v4l2_fourcc('N', 'V', '2', '1')
226#define V4L2_PIX_FMT_NV16 v4l2_fourcc('N', 'V', '1', '6')
227#define V4L2_PIX_FMT_NV61 v4l2_fourcc('N', 'V', '6', '1')
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229#define V4L2_PIX_FMT_NV24 v4l2_fourcc('N', 'V', '2', '4')
230#define V4L2_PIX_FMT_NV42 v4l2_fourcc('N', 'V', '4', '2')
231#define V4L2_PIX_FMT_NV12M v4l2_fourcc('N', 'M', '1', '2')
232#define V4L2_PIX_FMT_NV21M v4l2_fourcc('N', 'M', '2', '1')
233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700234#define V4L2_PIX_FMT_NV16M v4l2_fourcc('N', 'M', '1', '6')
235#define V4L2_PIX_FMT_NV61M v4l2_fourcc('N', 'M', '6', '1')
Ben Cheng655a7c02013-10-16 16:09:24 -0700236#define V4L2_PIX_FMT_NV12MT v4l2_fourcc('T', 'M', '1', '2')
237#define V4L2_PIX_FMT_NV12MT_16X16 v4l2_fourcc('V', 'M', '1', '2')
Christopher Ferris38062f92014-07-09 15:33:25 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700239#define V4L2_PIX_FMT_YUV420M v4l2_fourcc('Y', 'M', '1', '2')
240#define V4L2_PIX_FMT_YVU420M v4l2_fourcc('Y', 'M', '2', '1')
Ben Cheng655a7c02013-10-16 16:09:24 -0700241#define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc('B', 'A', '8', '1')
242#define V4L2_PIX_FMT_SGBRG8 v4l2_fourcc('G', 'B', 'R', 'G')
Christopher Ferris38062f92014-07-09 15:33:25 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700244#define V4L2_PIX_FMT_SGRBG8 v4l2_fourcc('G', 'R', 'B', 'G')
245#define V4L2_PIX_FMT_SRGGB8 v4l2_fourcc('R', 'G', 'G', 'B')
Ben Cheng655a7c02013-10-16 16:09:24 -0700246#define V4L2_PIX_FMT_SBGGR10 v4l2_fourcc('B', 'G', '1', '0')
247#define V4L2_PIX_FMT_SGBRG10 v4l2_fourcc('G', 'B', '1', '0')
Christopher Ferris38062f92014-07-09 15:33:25 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700249#define V4L2_PIX_FMT_SGRBG10 v4l2_fourcc('B', 'A', '1', '0')
250#define V4L2_PIX_FMT_SRGGB10 v4l2_fourcc('R', 'G', '1', '0')
Ben Cheng655a7c02013-10-16 16:09:24 -0700251#define V4L2_PIX_FMT_SBGGR12 v4l2_fourcc('B', 'G', '1', '2')
252#define V4L2_PIX_FMT_SGBRG12 v4l2_fourcc('G', 'B', '1', '2')
Christopher Ferris38062f92014-07-09 15:33:25 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700254#define V4L2_PIX_FMT_SGRBG12 v4l2_fourcc('B', 'A', '1', '2')
255#define V4L2_PIX_FMT_SRGGB12 v4l2_fourcc('R', 'G', '1', '2')
Ben Cheng655a7c02013-10-16 16:09:24 -0700256#define V4L2_PIX_FMT_SBGGR10ALAW8 v4l2_fourcc('a', 'B', 'A', '8')
257#define V4L2_PIX_FMT_SGBRG10ALAW8 v4l2_fourcc('a', 'G', 'A', '8')
Christopher Ferris38062f92014-07-09 15:33:25 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700259#define V4L2_PIX_FMT_SGRBG10ALAW8 v4l2_fourcc('a', 'g', 'A', '8')
260#define V4L2_PIX_FMT_SRGGB10ALAW8 v4l2_fourcc('a', 'R', 'A', '8')
Ben Cheng655a7c02013-10-16 16:09:24 -0700261#define V4L2_PIX_FMT_SBGGR10DPCM8 v4l2_fourcc('b', 'B', 'A', '8')
262#define V4L2_PIX_FMT_SGBRG10DPCM8 v4l2_fourcc('b', 'G', 'A', '8')
Christopher Ferris38062f92014-07-09 15:33:25 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700264#define V4L2_PIX_FMT_SGRBG10DPCM8 v4l2_fourcc('B', 'D', '1', '0')
265#define V4L2_PIX_FMT_SRGGB10DPCM8 v4l2_fourcc('b', 'R', 'A', '8')
Ben Cheng655a7c02013-10-16 16:09:24 -0700266#define V4L2_PIX_FMT_SBGGR16 v4l2_fourcc('B', 'Y', 'R', '2')
267#define V4L2_PIX_FMT_MJPEG v4l2_fourcc('M', 'J', 'P', 'G')
Christopher Ferris38062f92014-07-09 15:33:25 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700269#define V4L2_PIX_FMT_JPEG v4l2_fourcc('J', 'P', 'E', 'G')
270#define V4L2_PIX_FMT_DV v4l2_fourcc('d', 'v', 's', 'd')
Ben Cheng655a7c02013-10-16 16:09:24 -0700271#define V4L2_PIX_FMT_MPEG v4l2_fourcc('M', 'P', 'E', 'G')
272#define V4L2_PIX_FMT_H264 v4l2_fourcc('H', '2', '6', '4')
Christopher Ferris38062f92014-07-09 15:33:25 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700274#define V4L2_PIX_FMT_H264_NO_SC v4l2_fourcc('A', 'V', 'C', '1')
275#define V4L2_PIX_FMT_H264_MVC v4l2_fourcc('M', '2', '6', '4')
Ben Cheng655a7c02013-10-16 16:09:24 -0700276#define V4L2_PIX_FMT_H263 v4l2_fourcc('H', '2', '6', '3')
277#define V4L2_PIX_FMT_MPEG1 v4l2_fourcc('M', 'P', 'G', '1')
Christopher Ferris38062f92014-07-09 15:33:25 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700279#define V4L2_PIX_FMT_MPEG2 v4l2_fourcc('M', 'P', 'G', '2')
280#define V4L2_PIX_FMT_MPEG4 v4l2_fourcc('M', 'P', 'G', '4')
Ben Cheng655a7c02013-10-16 16:09:24 -0700281#define V4L2_PIX_FMT_XVID v4l2_fourcc('X', 'V', 'I', 'D')
282#define V4L2_PIX_FMT_VC1_ANNEX_G v4l2_fourcc('V', 'C', '1', 'G')
Christopher Ferris38062f92014-07-09 15:33:25 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700284#define V4L2_PIX_FMT_VC1_ANNEX_L v4l2_fourcc('V', 'C', '1', 'L')
285#define V4L2_PIX_FMT_VP8 v4l2_fourcc('V', 'P', '8', '0')
Ben Cheng655a7c02013-10-16 16:09:24 -0700286#define V4L2_PIX_FMT_CPIA1 v4l2_fourcc('C', 'P', 'I', 'A')
287#define V4L2_PIX_FMT_WNVA v4l2_fourcc('W', 'N', 'V', 'A')
Christopher Ferris38062f92014-07-09 15:33:25 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700289#define V4L2_PIX_FMT_SN9C10X v4l2_fourcc('S', '9', '1', '0')
290#define V4L2_PIX_FMT_SN9C20X_I420 v4l2_fourcc('S', '9', '2', '0')
Ben Cheng655a7c02013-10-16 16:09:24 -0700291#define V4L2_PIX_FMT_PWC1 v4l2_fourcc('P', 'W', 'C', '1')
292#define V4L2_PIX_FMT_PWC2 v4l2_fourcc('P', 'W', 'C', '2')
Christopher Ferris38062f92014-07-09 15:33:25 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700294#define V4L2_PIX_FMT_ET61X251 v4l2_fourcc('E', '6', '2', '5')
295#define V4L2_PIX_FMT_SPCA501 v4l2_fourcc('S', '5', '0', '1')
Ben Cheng655a7c02013-10-16 16:09:24 -0700296#define V4L2_PIX_FMT_SPCA505 v4l2_fourcc('S', '5', '0', '5')
297#define V4L2_PIX_FMT_SPCA508 v4l2_fourcc('S', '5', '0', '8')
Christopher Ferris38062f92014-07-09 15:33:25 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700299#define V4L2_PIX_FMT_SPCA561 v4l2_fourcc('S', '5', '6', '1')
300#define V4L2_PIX_FMT_PAC207 v4l2_fourcc('P', '2', '0', '7')
Ben Cheng655a7c02013-10-16 16:09:24 -0700301#define V4L2_PIX_FMT_MR97310A v4l2_fourcc('M', '3', '1', '0')
302#define V4L2_PIX_FMT_JL2005BCD v4l2_fourcc('J', 'L', '2', '0')
Christopher Ferris38062f92014-07-09 15:33:25 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700304#define V4L2_PIX_FMT_SN9C2028 v4l2_fourcc('S', 'O', 'N', 'X')
305#define V4L2_PIX_FMT_SQ905C v4l2_fourcc('9', '0', '5', 'C')
Ben Cheng655a7c02013-10-16 16:09:24 -0700306#define V4L2_PIX_FMT_PJPG v4l2_fourcc('P', 'J', 'P', 'G')
307#define V4L2_PIX_FMT_OV511 v4l2_fourcc('O', '5', '1', '1')
Christopher Ferris38062f92014-07-09 15:33:25 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700309#define V4L2_PIX_FMT_OV518 v4l2_fourcc('O', '5', '1', '8')
310#define V4L2_PIX_FMT_STV0680 v4l2_fourcc('S', '6', '8', '0')
Ben Cheng655a7c02013-10-16 16:09:24 -0700311#define V4L2_PIX_FMT_TM6000 v4l2_fourcc('T', 'M', '6', '0')
312#define V4L2_PIX_FMT_CIT_YYVYUY v4l2_fourcc('C', 'I', 'T', 'V')
Christopher Ferris38062f92014-07-09 15:33:25 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700314#define V4L2_PIX_FMT_KONICA420 v4l2_fourcc('K', 'O', 'N', 'I')
315#define V4L2_PIX_FMT_JPGL v4l2_fourcc('J', 'P', 'G', 'L')
Ben Cheng655a7c02013-10-16 16:09:24 -0700316#define V4L2_PIX_FMT_SE401 v4l2_fourcc('S', '4', '0', '1')
317#define V4L2_PIX_FMT_S5C_UYVY_JPG v4l2_fourcc('S', '5', 'C', 'I')
Christopher Ferris38062f92014-07-09 15:33:25 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700319#define V4L2_SDR_FMT_CU8 v4l2_fourcc('C', 'U', '0', '8')
320#define V4L2_SDR_FMT_CU16LE v4l2_fourcc('C', 'U', '1', '6')
Ben Cheng655a7c02013-10-16 16:09:24 -0700321struct v4l2_fmtdesc {
322 __u32 index;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700324 __u32 type;
325 __u32 flags;
326 __u8 description[32];
327 __u32 pixelformat;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700329 __u32 reserved[4];
330};
331#define V4L2_FMT_FLAG_COMPRESSED 0x0001
332#define V4L2_FMT_FLAG_EMULATED 0x0002
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700334enum v4l2_frmsizetypes {
335 V4L2_FRMSIZE_TYPE_DISCRETE = 1,
336 V4L2_FRMSIZE_TYPE_CONTINUOUS = 2,
337 V4L2_FRMSIZE_TYPE_STEPWISE = 3,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700339};
340struct v4l2_frmsize_discrete {
341 __u32 width;
342 __u32 height;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700344};
345struct v4l2_frmsize_stepwise {
346 __u32 min_width;
347 __u32 max_width;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700349 __u32 step_width;
350 __u32 min_height;
351 __u32 max_height;
352 __u32 step_height;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700354};
355struct v4l2_frmsizeenum {
356 __u32 index;
357 __u32 pixel_format;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700359 __u32 type;
360 union {
361 struct v4l2_frmsize_discrete discrete;
362 struct v4l2_frmsize_stepwise stepwise;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700364 };
365 __u32 reserved[2];
366};
367enum v4l2_frmivaltypes {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700369 V4L2_FRMIVAL_TYPE_DISCRETE = 1,
370 V4L2_FRMIVAL_TYPE_CONTINUOUS = 2,
371 V4L2_FRMIVAL_TYPE_STEPWISE = 3,
372};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700374struct v4l2_frmival_stepwise {
375 struct v4l2_fract min;
376 struct v4l2_fract max;
377 struct v4l2_fract step;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700379};
380struct v4l2_frmivalenum {
381 __u32 index;
382 __u32 pixel_format;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700384 __u32 width;
385 __u32 height;
386 __u32 type;
387 union {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700389 struct v4l2_fract discrete;
390 struct v4l2_frmival_stepwise stepwise;
391 };
392 __u32 reserved[2];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700394};
395struct v4l2_timecode {
396 __u32 type;
397 __u32 flags;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700399 __u8 frames;
400 __u8 seconds;
401 __u8 minutes;
402 __u8 hours;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700404 __u8 userbits[4];
405};
406#define V4L2_TC_TYPE_24FPS 1
407#define V4L2_TC_TYPE_25FPS 2
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700409#define V4L2_TC_TYPE_30FPS 3
410#define V4L2_TC_TYPE_50FPS 4
411#define V4L2_TC_TYPE_60FPS 5
412#define V4L2_TC_FLAG_DROPFRAME 0x0001
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700414#define V4L2_TC_FLAG_COLORFRAME 0x0002
415#define V4L2_TC_USERBITS_field 0x000C
416#define V4L2_TC_USERBITS_USERDEFINED 0x0000
417#define V4L2_TC_USERBITS_8BITCHARS 0x0008
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700419struct v4l2_jpegcompression {
420 int quality;
421 int APPn;
422 int APP_len;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700424 char APP_data[60];
425 int COM_len;
426 char COM_data[60];
427 __u32 jpeg_markers;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700429#define V4L2_JPEG_MARKER_DHT (1<<3)
430#define V4L2_JPEG_MARKER_DQT (1<<4)
431#define V4L2_JPEG_MARKER_DRI (1<<5)
432#define V4L2_JPEG_MARKER_COM (1<<6)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700434#define V4L2_JPEG_MARKER_APP (1<<7)
435};
436struct v4l2_requestbuffers {
437 __u32 count;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700439 __u32 type;
440 __u32 memory;
441 __u32 reserved[2];
442};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700444struct v4l2_plane {
445 __u32 bytesused;
446 __u32 length;
447 union {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700449 __u32 mem_offset;
450 unsigned long userptr;
451 __s32 fd;
452 } m;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700454 __u32 data_offset;
455 __u32 reserved[11];
456};
457struct v4l2_buffer {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700459 __u32 index;
460 __u32 type;
461 __u32 bytesused;
462 __u32 flags;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700464 __u32 field;
465 struct timeval timestamp;
466 struct v4l2_timecode timecode;
467 __u32 sequence;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700469 __u32 memory;
470 union {
471 __u32 offset;
472 unsigned long userptr;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700474 struct v4l2_plane *planes;
475 __s32 fd;
476 } m;
477 __u32 length;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700479 __u32 reserved2;
480 __u32 reserved;
481};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700482#define V4L2_BUF_FLAG_MAPPED 0x00000001
Christopher Ferris38062f92014-07-09 15:33:25 -0700483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700484#define V4L2_BUF_FLAG_QUEUED 0x00000002
485#define V4L2_BUF_FLAG_DONE 0x00000004
486#define V4L2_BUF_FLAG_KEYFRAME 0x00000008
487#define V4L2_BUF_FLAG_PFRAME 0x00000010
Christopher Ferris38062f92014-07-09 15:33:25 -0700488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700489#define V4L2_BUF_FLAG_BFRAME 0x00000020
490#define V4L2_BUF_FLAG_ERROR 0x00000040
491#define V4L2_BUF_FLAG_TIMECODE 0x00000100
492#define V4L2_BUF_FLAG_PREPARED 0x00000400
Christopher Ferris38062f92014-07-09 15:33:25 -0700493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700494#define V4L2_BUF_FLAG_NO_CACHE_INVALIDATE 0x00000800
495#define V4L2_BUF_FLAG_NO_CACHE_CLEAN 0x00001000
496#define V4L2_BUF_FLAG_TIMESTAMP_MASK 0x0000e000
497#define V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN 0x00000000
Christopher Ferris38062f92014-07-09 15:33:25 -0700498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700499#define V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC 0x00002000
500#define V4L2_BUF_FLAG_TIMESTAMP_COPY 0x00004000
501#define V4L2_BUF_FLAG_TSTAMP_SRC_MASK 0x00070000
502#define V4L2_BUF_FLAG_TSTAMP_SRC_EOF 0x00000000
503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
504#define V4L2_BUF_FLAG_TSTAMP_SRC_SOE 0x00010000
Ben Cheng655a7c02013-10-16 16:09:24 -0700505struct v4l2_exportbuffer {
506 __u32 type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700507 __u32 index;
Christopher Ferris38062f92014-07-09 15:33:25 -0700508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700509 __u32 plane;
Ben Cheng655a7c02013-10-16 16:09:24 -0700510 __u32 flags;
511 __s32 fd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700512 __u32 reserved[11];
Christopher Ferris38062f92014-07-09 15:33:25 -0700513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700514};
Ben Cheng655a7c02013-10-16 16:09:24 -0700515struct v4l2_framebuffer {
516 __u32 capability;
Ben Cheng655a7c02013-10-16 16:09:24 -0700517 __u32 flags;
Christopher Ferris38062f92014-07-09 15:33:25 -0700518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700519 void *base;
Ben Cheng655a7c02013-10-16 16:09:24 -0700520 struct v4l2_pix_format fmt;
521};
Ben Cheng655a7c02013-10-16 16:09:24 -0700522#define V4L2_FBUF_CAP_EXTERNOVERLAY 0x0001
Christopher Ferris38062f92014-07-09 15:33:25 -0700523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700524#define V4L2_FBUF_CAP_CHROMAKEY 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -0700525#define V4L2_FBUF_CAP_LIST_CLIPPING 0x0004
526#define V4L2_FBUF_CAP_BITMAP_CLIPPING 0x0008
Ben Cheng655a7c02013-10-16 16:09:24 -0700527#define V4L2_FBUF_CAP_LOCAL_ALPHA 0x0010
Christopher Ferris38062f92014-07-09 15:33:25 -0700528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700529#define V4L2_FBUF_CAP_GLOBAL_ALPHA 0x0020
Ben Cheng655a7c02013-10-16 16:09:24 -0700530#define V4L2_FBUF_CAP_LOCAL_INV_ALPHA 0x0040
531#define V4L2_FBUF_CAP_SRC_CHROMAKEY 0x0080
Ben Cheng655a7c02013-10-16 16:09:24 -0700532#define V4L2_FBUF_FLAG_PRIMARY 0x0001
Christopher Ferris38062f92014-07-09 15:33:25 -0700533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700534#define V4L2_FBUF_FLAG_OVERLAY 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -0700535#define V4L2_FBUF_FLAG_CHROMAKEY 0x0004
536#define V4L2_FBUF_FLAG_LOCAL_ALPHA 0x0008
Ben Cheng655a7c02013-10-16 16:09:24 -0700537#define V4L2_FBUF_FLAG_GLOBAL_ALPHA 0x0010
Christopher Ferris38062f92014-07-09 15:33:25 -0700538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700539#define V4L2_FBUF_FLAG_LOCAL_INV_ALPHA 0x0020
Ben Cheng655a7c02013-10-16 16:09:24 -0700540#define V4L2_FBUF_FLAG_SRC_CHROMAKEY 0x0040
541struct v4l2_clip {
Ben Cheng655a7c02013-10-16 16:09:24 -0700542 struct v4l2_rect c;
Christopher Ferris38062f92014-07-09 15:33:25 -0700543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700544 struct v4l2_clip __user *next;
Ben Cheng655a7c02013-10-16 16:09:24 -0700545};
546struct v4l2_window {
Ben Cheng655a7c02013-10-16 16:09:24 -0700547 struct v4l2_rect w;
Christopher Ferris38062f92014-07-09 15:33:25 -0700548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700549 __u32 field;
Ben Cheng655a7c02013-10-16 16:09:24 -0700550 __u32 chromakey;
551 struct v4l2_clip __user *clips;
Ben Cheng655a7c02013-10-16 16:09:24 -0700552 __u32 clipcount;
Christopher Ferris38062f92014-07-09 15:33:25 -0700553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700554 void __user *bitmap;
Ben Cheng655a7c02013-10-16 16:09:24 -0700555 __u8 global_alpha;
556};
Ben Cheng655a7c02013-10-16 16:09:24 -0700557struct v4l2_captureparm {
Christopher Ferris38062f92014-07-09 15:33:25 -0700558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700559 __u32 capability;
Ben Cheng655a7c02013-10-16 16:09:24 -0700560 __u32 capturemode;
561 struct v4l2_fract timeperframe;
Ben Cheng655a7c02013-10-16 16:09:24 -0700562 __u32 extendedmode;
Christopher Ferris38062f92014-07-09 15:33:25 -0700563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700564 __u32 readbuffers;
Ben Cheng655a7c02013-10-16 16:09:24 -0700565 __u32 reserved[4];
566};
Ben Cheng655a7c02013-10-16 16:09:24 -0700567#define V4L2_MODE_HIGHQUALITY 0x0001
Christopher Ferris38062f92014-07-09 15:33:25 -0700568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700569#define V4L2_CAP_TIMEPERFRAME 0x1000
Ben Cheng655a7c02013-10-16 16:09:24 -0700570struct v4l2_outputparm {
571 __u32 capability;
Ben Cheng655a7c02013-10-16 16:09:24 -0700572 __u32 outputmode;
Christopher Ferris38062f92014-07-09 15:33:25 -0700573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700574 struct v4l2_fract timeperframe;
Ben Cheng655a7c02013-10-16 16:09:24 -0700575 __u32 extendedmode;
576 __u32 writebuffers;
Ben Cheng655a7c02013-10-16 16:09:24 -0700577 __u32 reserved[4];
Christopher Ferris38062f92014-07-09 15:33:25 -0700578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700579};
Ben Cheng655a7c02013-10-16 16:09:24 -0700580struct v4l2_cropcap {
581 __u32 type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700582 struct v4l2_rect bounds;
Christopher Ferris38062f92014-07-09 15:33:25 -0700583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700584 struct v4l2_rect defrect;
Ben Cheng655a7c02013-10-16 16:09:24 -0700585 struct v4l2_fract pixelaspect;
586};
Ben Cheng655a7c02013-10-16 16:09:24 -0700587struct v4l2_crop {
Christopher Ferris38062f92014-07-09 15:33:25 -0700588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700589 __u32 type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700590 struct v4l2_rect c;
591};
Ben Cheng655a7c02013-10-16 16:09:24 -0700592struct v4l2_selection {
Christopher Ferris38062f92014-07-09 15:33:25 -0700593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700594 __u32 type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700595 __u32 target;
596 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700597 struct v4l2_rect r;
Christopher Ferris38062f92014-07-09 15:33:25 -0700598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700599 __u32 reserved[9];
Ben Cheng655a7c02013-10-16 16:09:24 -0700600};
601typedef __u64 v4l2_std_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700602#define V4L2_STD_PAL_B ((v4l2_std_id)0x00000001)
Christopher Ferris38062f92014-07-09 15:33:25 -0700603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700604#define V4L2_STD_PAL_B1 ((v4l2_std_id)0x00000002)
Ben Cheng655a7c02013-10-16 16:09:24 -0700605#define V4L2_STD_PAL_G ((v4l2_std_id)0x00000004)
606#define V4L2_STD_PAL_H ((v4l2_std_id)0x00000008)
Ben Cheng655a7c02013-10-16 16:09:24 -0700607#define V4L2_STD_PAL_I ((v4l2_std_id)0x00000010)
Christopher Ferris38062f92014-07-09 15:33:25 -0700608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700609#define V4L2_STD_PAL_D ((v4l2_std_id)0x00000020)
Ben Cheng655a7c02013-10-16 16:09:24 -0700610#define V4L2_STD_PAL_D1 ((v4l2_std_id)0x00000040)
611#define V4L2_STD_PAL_K ((v4l2_std_id)0x00000080)
Ben Cheng655a7c02013-10-16 16:09:24 -0700612#define V4L2_STD_PAL_M ((v4l2_std_id)0x00000100)
Christopher Ferris38062f92014-07-09 15:33:25 -0700613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700614#define V4L2_STD_PAL_N ((v4l2_std_id)0x00000200)
Ben Cheng655a7c02013-10-16 16:09:24 -0700615#define V4L2_STD_PAL_Nc ((v4l2_std_id)0x00000400)
616#define V4L2_STD_PAL_60 ((v4l2_std_id)0x00000800)
Ben Cheng655a7c02013-10-16 16:09:24 -0700617#define V4L2_STD_NTSC_M ((v4l2_std_id)0x00001000)
Christopher Ferris38062f92014-07-09 15:33:25 -0700618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700619#define V4L2_STD_NTSC_M_JP ((v4l2_std_id)0x00002000)
Ben Cheng655a7c02013-10-16 16:09:24 -0700620#define V4L2_STD_NTSC_443 ((v4l2_std_id)0x00004000)
621#define V4L2_STD_NTSC_M_KR ((v4l2_std_id)0x00008000)
Ben Cheng655a7c02013-10-16 16:09:24 -0700622#define V4L2_STD_SECAM_B ((v4l2_std_id)0x00010000)
Christopher Ferris38062f92014-07-09 15:33:25 -0700623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700624#define V4L2_STD_SECAM_D ((v4l2_std_id)0x00020000)
Ben Cheng655a7c02013-10-16 16:09:24 -0700625#define V4L2_STD_SECAM_G ((v4l2_std_id)0x00040000)
626#define V4L2_STD_SECAM_H ((v4l2_std_id)0x00080000)
Ben Cheng655a7c02013-10-16 16:09:24 -0700627#define V4L2_STD_SECAM_K ((v4l2_std_id)0x00100000)
Christopher Ferris38062f92014-07-09 15:33:25 -0700628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700629#define V4L2_STD_SECAM_K1 ((v4l2_std_id)0x00200000)
Ben Cheng655a7c02013-10-16 16:09:24 -0700630#define V4L2_STD_SECAM_L ((v4l2_std_id)0x00400000)
631#define V4L2_STD_SECAM_LC ((v4l2_std_id)0x00800000)
Ben Cheng655a7c02013-10-16 16:09:24 -0700632#define V4L2_STD_ATSC_8_VSB ((v4l2_std_id)0x01000000)
Christopher Ferris38062f92014-07-09 15:33:25 -0700633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700634#define V4L2_STD_ATSC_16_VSB ((v4l2_std_id)0x02000000)
Ben Cheng655a7c02013-10-16 16:09:24 -0700635#define V4L2_STD_NTSC (V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_JP | V4L2_STD_NTSC_M_KR)
636#define V4L2_STD_SECAM_DK (V4L2_STD_SECAM_D | V4L2_STD_SECAM_K | V4L2_STD_SECAM_K1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700637#define V4L2_STD_SECAM (V4L2_STD_SECAM_B | V4L2_STD_SECAM_G | V4L2_STD_SECAM_H | V4L2_STD_SECAM_DK | V4L2_STD_SECAM_L | V4L2_STD_SECAM_LC)
Christopher Ferris38062f92014-07-09 15:33:25 -0700638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700639#define V4L2_STD_PAL_BG (V4L2_STD_PAL_B | V4L2_STD_PAL_B1 | V4L2_STD_PAL_G)
Ben Cheng655a7c02013-10-16 16:09:24 -0700640#define V4L2_STD_PAL_DK (V4L2_STD_PAL_D | V4L2_STD_PAL_D1 | V4L2_STD_PAL_K)
641#define V4L2_STD_PAL (V4L2_STD_PAL_BG | V4L2_STD_PAL_DK | V4L2_STD_PAL_H | V4L2_STD_PAL_I)
Ben Cheng655a7c02013-10-16 16:09:24 -0700642#define V4L2_STD_B (V4L2_STD_PAL_B | V4L2_STD_PAL_B1 | V4L2_STD_SECAM_B)
Christopher Ferris38062f92014-07-09 15:33:25 -0700643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700644#define V4L2_STD_G (V4L2_STD_PAL_G | V4L2_STD_SECAM_G)
Ben Cheng655a7c02013-10-16 16:09:24 -0700645#define V4L2_STD_H (V4L2_STD_PAL_H | V4L2_STD_SECAM_H)
646#define V4L2_STD_L (V4L2_STD_SECAM_L | V4L2_STD_SECAM_LC)
Ben Cheng655a7c02013-10-16 16:09:24 -0700647#define V4L2_STD_GH (V4L2_STD_G | V4L2_STD_H)
Christopher Ferris38062f92014-07-09 15:33:25 -0700648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700649#define V4L2_STD_DK (V4L2_STD_PAL_DK | V4L2_STD_SECAM_DK)
Ben Cheng655a7c02013-10-16 16:09:24 -0700650#define V4L2_STD_BG (V4L2_STD_B | V4L2_STD_G)
651#define V4L2_STD_MN (V4L2_STD_PAL_M | V4L2_STD_PAL_N | V4L2_STD_PAL_Nc | V4L2_STD_NTSC)
Ben Cheng655a7c02013-10-16 16:09:24 -0700652#define V4L2_STD_MTS (V4L2_STD_NTSC_M | V4L2_STD_PAL_M | V4L2_STD_PAL_N | V4L2_STD_PAL_Nc)
Christopher Ferris38062f92014-07-09 15:33:25 -0700653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700654#define V4L2_STD_525_60 (V4L2_STD_PAL_M | V4L2_STD_PAL_60 | V4L2_STD_NTSC | V4L2_STD_NTSC_443)
Ben Cheng655a7c02013-10-16 16:09:24 -0700655#define V4L2_STD_625_50 (V4L2_STD_PAL | V4L2_STD_PAL_N | V4L2_STD_PAL_Nc | V4L2_STD_SECAM)
656#define V4L2_STD_ATSC (V4L2_STD_ATSC_8_VSB | V4L2_STD_ATSC_16_VSB)
Ben Cheng655a7c02013-10-16 16:09:24 -0700657#define V4L2_STD_UNKNOWN 0
Christopher Ferris38062f92014-07-09 15:33:25 -0700658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700659#define V4L2_STD_ALL (V4L2_STD_525_60 | V4L2_STD_625_50)
Ben Cheng655a7c02013-10-16 16:09:24 -0700660struct v4l2_standard {
661 __u32 index;
Ben Cheng655a7c02013-10-16 16:09:24 -0700662 v4l2_std_id id;
Christopher Ferris38062f92014-07-09 15:33:25 -0700663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700664 __u8 name[24];
Ben Cheng655a7c02013-10-16 16:09:24 -0700665 struct v4l2_fract frameperiod;
666 __u32 framelines;
Ben Cheng655a7c02013-10-16 16:09:24 -0700667 __u32 reserved[4];
Christopher Ferris38062f92014-07-09 15:33:25 -0700668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700669};
Ben Cheng655a7c02013-10-16 16:09:24 -0700670struct v4l2_bt_timings {
671 __u32 width;
Ben Cheng655a7c02013-10-16 16:09:24 -0700672 __u32 height;
Christopher Ferris38062f92014-07-09 15:33:25 -0700673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700674 __u32 interlaced;
Ben Cheng655a7c02013-10-16 16:09:24 -0700675 __u32 polarities;
676 __u64 pixelclock;
Ben Cheng655a7c02013-10-16 16:09:24 -0700677 __u32 hfrontporch;
Christopher Ferris38062f92014-07-09 15:33:25 -0700678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700679 __u32 hsync;
Ben Cheng655a7c02013-10-16 16:09:24 -0700680 __u32 hbackporch;
681 __u32 vfrontporch;
Ben Cheng655a7c02013-10-16 16:09:24 -0700682 __u32 vsync;
Christopher Ferris38062f92014-07-09 15:33:25 -0700683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700684 __u32 vbackporch;
Ben Cheng655a7c02013-10-16 16:09:24 -0700685 __u32 il_vfrontporch;
686 __u32 il_vsync;
Ben Cheng655a7c02013-10-16 16:09:24 -0700687 __u32 il_vbackporch;
Christopher Ferris38062f92014-07-09 15:33:25 -0700688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700689 __u32 standards;
Ben Cheng655a7c02013-10-16 16:09:24 -0700690 __u32 flags;
691 __u32 reserved[14];
Ben Cheng655a7c02013-10-16 16:09:24 -0700692} __attribute__ ((packed));
Christopher Ferris38062f92014-07-09 15:33:25 -0700693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700694#define V4L2_DV_PROGRESSIVE 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700695#define V4L2_DV_INTERLACED 1
696#define V4L2_DV_VSYNC_POS_POL 0x00000001
Ben Cheng655a7c02013-10-16 16:09:24 -0700697#define V4L2_DV_HSYNC_POS_POL 0x00000002
Christopher Ferris38062f92014-07-09 15:33:25 -0700698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700699#define V4L2_DV_BT_STD_CEA861 (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700700#define V4L2_DV_BT_STD_DMT (1 << 1)
701#define V4L2_DV_BT_STD_CVT (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700702#define V4L2_DV_BT_STD_GTF (1 << 3)
Christopher Ferris38062f92014-07-09 15:33:25 -0700703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700704#define V4L2_DV_FL_REDUCED_BLANKING (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700705#define V4L2_DV_FL_CAN_REDUCE_FPS (1 << 1)
706#define V4L2_DV_FL_REDUCED_FPS (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700707#define V4L2_DV_FL_HALF_LINE (1 << 3)
Christopher Ferris38062f92014-07-09 15:33:25 -0700708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700709#define V4L2_DV_BT_BLANKING_WIDTH(bt) ((bt)->hfrontporch + (bt)->hsync + (bt)->hbackporch)
710#define V4L2_DV_BT_FRAME_WIDTH(bt) ((bt)->width + V4L2_DV_BT_BLANKING_WIDTH(bt))
711#define V4L2_DV_BT_BLANKING_HEIGHT(bt) ((bt)->vfrontporch + (bt)->vsync + (bt)->vbackporch + (bt)->il_vfrontporch + (bt)->il_vsync + (bt)->il_vbackporch)
712#define V4L2_DV_BT_FRAME_HEIGHT(bt) ((bt)->height + V4L2_DV_BT_BLANKING_HEIGHT(bt))
713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700714struct v4l2_dv_timings {
715 __u32 type;
716 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700717 struct v4l2_bt_timings bt;
Christopher Ferris38062f92014-07-09 15:33:25 -0700718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700719 __u32 reserved[32];
Ben Cheng655a7c02013-10-16 16:09:24 -0700720 };
721} __attribute__ ((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700722#define V4L2_DV_BT_656_1120 0
Christopher Ferris38062f92014-07-09 15:33:25 -0700723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700724struct v4l2_enum_dv_timings {
Ben Cheng655a7c02013-10-16 16:09:24 -0700725 __u32 index;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700726 __u32 pad;
727 __u32 reserved[2];
728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700729 struct v4l2_dv_timings timings;
730};
731struct v4l2_bt_timings_cap {
732 __u32 min_width;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700734 __u32 max_width;
735 __u32 min_height;
736 __u32 max_height;
737 __u64 min_pixelclock;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700739 __u64 max_pixelclock;
740 __u32 standards;
741 __u32 capabilities;
742 __u32 reserved[16];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700744} __attribute__ ((packed));
745#define V4L2_DV_BT_CAP_INTERLACED (1 << 0)
746#define V4L2_DV_BT_CAP_PROGRESSIVE (1 << 1)
747#define V4L2_DV_BT_CAP_REDUCED_BLANKING (1 << 2)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700749#define V4L2_DV_BT_CAP_CUSTOM (1 << 3)
750struct v4l2_dv_timings_cap {
751 __u32 type;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700752 __u32 pad;
753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
754 __u32 reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700755 union {
756 struct v4l2_bt_timings_cap bt;
757 __u32 raw_data[32];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700759 };
Ben Cheng655a7c02013-10-16 16:09:24 -0700760};
761struct v4l2_input {
762 __u32 index;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700764 __u8 name[32];
Ben Cheng655a7c02013-10-16 16:09:24 -0700765 __u32 type;
766 __u32 audioset;
767 __u32 tuner;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700769 v4l2_std_id std;
Ben Cheng655a7c02013-10-16 16:09:24 -0700770 __u32 status;
771 __u32 capabilities;
772 __u32 reserved[3];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700774};
Ben Cheng655a7c02013-10-16 16:09:24 -0700775#define V4L2_INPUT_TYPE_TUNER 1
776#define V4L2_INPUT_TYPE_CAMERA 2
777#define V4L2_IN_ST_NO_POWER 0x00000001
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700779#define V4L2_IN_ST_NO_SIGNAL 0x00000002
Ben Cheng655a7c02013-10-16 16:09:24 -0700780#define V4L2_IN_ST_NO_COLOR 0x00000004
781#define V4L2_IN_ST_HFLIP 0x00000010
782#define V4L2_IN_ST_VFLIP 0x00000020
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700784#define V4L2_IN_ST_NO_H_LOCK 0x00000100
Ben Cheng655a7c02013-10-16 16:09:24 -0700785#define V4L2_IN_ST_COLOR_KILL 0x00000200
786#define V4L2_IN_ST_NO_SYNC 0x00010000
787#define V4L2_IN_ST_NO_EQU 0x00020000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700789#define V4L2_IN_ST_NO_CARRIER 0x00040000
Ben Cheng655a7c02013-10-16 16:09:24 -0700790#define V4L2_IN_ST_MACROVISION 0x01000000
791#define V4L2_IN_ST_NO_ACCESS 0x02000000
792#define V4L2_IN_ST_VTR 0x04000000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700794#define V4L2_IN_CAP_DV_TIMINGS 0x00000002
Ben Cheng655a7c02013-10-16 16:09:24 -0700795#define V4L2_IN_CAP_CUSTOM_TIMINGS V4L2_IN_CAP_DV_TIMINGS
796#define V4L2_IN_CAP_STD 0x00000004
797struct v4l2_output {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700799 __u32 index;
Ben Cheng655a7c02013-10-16 16:09:24 -0700800 __u8 name[32];
801 __u32 type;
802 __u32 audioset;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700804 __u32 modulator;
Ben Cheng655a7c02013-10-16 16:09:24 -0700805 v4l2_std_id std;
806 __u32 capabilities;
807 __u32 reserved[3];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700809};
Ben Cheng655a7c02013-10-16 16:09:24 -0700810#define V4L2_OUTPUT_TYPE_MODULATOR 1
811#define V4L2_OUTPUT_TYPE_ANALOG 2
812#define V4L2_OUTPUT_TYPE_ANALOGVGAOVERLAY 3
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700814#define V4L2_OUT_CAP_DV_TIMINGS 0x00000002
Ben Cheng655a7c02013-10-16 16:09:24 -0700815#define V4L2_OUT_CAP_CUSTOM_TIMINGS V4L2_OUT_CAP_DV_TIMINGS
816#define V4L2_OUT_CAP_STD 0x00000004
817struct v4l2_control {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700819 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700820 __s32 value;
821};
822struct v4l2_ext_control {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700824 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700825 __u32 size;
826 __u32 reserved2[1];
827 union {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700829 __s32 value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700830 __s64 value64;
831 char *string;
832 };
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700834} __attribute__ ((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700835struct v4l2_ext_controls {
836 __u32 ctrl_class;
837 __u32 count;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700839 __u32 error_idx;
Ben Cheng655a7c02013-10-16 16:09:24 -0700840 __u32 reserved[2];
841 struct v4l2_ext_control *controls;
842};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700844#define V4L2_CTRL_ID_MASK (0x0fffffff)
Ben Cheng655a7c02013-10-16 16:09:24 -0700845#define V4L2_CTRL_ID2CLASS(id) ((id) & 0x0fff0000UL)
846#define V4L2_CTRL_DRIVER_PRIV(id) (((id) & 0xffff) >= 0x1000)
847enum v4l2_ctrl_type {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700849 V4L2_CTRL_TYPE_INTEGER = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700850 V4L2_CTRL_TYPE_BOOLEAN = 2,
851 V4L2_CTRL_TYPE_MENU = 3,
852 V4L2_CTRL_TYPE_BUTTON = 4,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700854 V4L2_CTRL_TYPE_INTEGER64 = 5,
Ben Cheng655a7c02013-10-16 16:09:24 -0700855 V4L2_CTRL_TYPE_CTRL_CLASS = 6,
856 V4L2_CTRL_TYPE_STRING = 7,
857 V4L2_CTRL_TYPE_BITMASK = 8,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700859 V4L2_CTRL_TYPE_INTEGER_MENU = 9,
Ben Cheng655a7c02013-10-16 16:09:24 -0700860};
861struct v4l2_queryctrl {
862 __u32 id;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700864 __u32 type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700865 __u8 name[32];
866 __s32 minimum;
867 __s32 maximum;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700869 __s32 step;
Ben Cheng655a7c02013-10-16 16:09:24 -0700870 __s32 default_value;
871 __u32 flags;
872 __u32 reserved[2];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700874};
Ben Cheng655a7c02013-10-16 16:09:24 -0700875struct v4l2_querymenu {
876 __u32 id;
877 __u32 index;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700879 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700880 __u8 name[32];
881 __s64 value;
882 };
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700884 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700885} __attribute__ ((packed));
886#define V4L2_CTRL_FLAG_DISABLED 0x0001
887#define V4L2_CTRL_FLAG_GRABBED 0x0002
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700888/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700889#define V4L2_CTRL_FLAG_READ_ONLY 0x0004
Ben Cheng655a7c02013-10-16 16:09:24 -0700890#define V4L2_CTRL_FLAG_UPDATE 0x0008
891#define V4L2_CTRL_FLAG_INACTIVE 0x0010
892#define V4L2_CTRL_FLAG_SLIDER 0x0020
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700893/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700894#define V4L2_CTRL_FLAG_WRITE_ONLY 0x0040
Ben Cheng655a7c02013-10-16 16:09:24 -0700895#define V4L2_CTRL_FLAG_VOLATILE 0x0080
896#define V4L2_CTRL_FLAG_NEXT_CTRL 0x80000000
897#define V4L2_CID_MAX_CTRLS 1024
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700898/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700899#define V4L2_CID_PRIVATE_BASE 0x08000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700900struct v4l2_tuner {
901 __u32 index;
902 __u8 name[32];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700903/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700904 __u32 type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700905 __u32 capability;
906 __u32 rangelow;
907 __u32 rangehigh;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700908/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700909 __u32 rxsubchans;
Ben Cheng655a7c02013-10-16 16:09:24 -0700910 __u32 audmode;
911 __s32 signal;
912 __s32 afc;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700913/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700914 __u32 reserved[4];
Ben Cheng655a7c02013-10-16 16:09:24 -0700915};
916struct v4l2_modulator {
917 __u32 index;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700918/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700919 __u8 name[32];
Ben Cheng655a7c02013-10-16 16:09:24 -0700920 __u32 capability;
921 __u32 rangelow;
922 __u32 rangehigh;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700923/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700924 __u32 txsubchans;
Ben Cheng655a7c02013-10-16 16:09:24 -0700925 __u32 reserved[4];
926};
927#define V4L2_TUNER_CAP_LOW 0x0001
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700928/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700929#define V4L2_TUNER_CAP_NORM 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -0700930#define V4L2_TUNER_CAP_HWSEEK_BOUNDED 0x0004
931#define V4L2_TUNER_CAP_HWSEEK_WRAP 0x0008
932#define V4L2_TUNER_CAP_STEREO 0x0010
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700933/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700934#define V4L2_TUNER_CAP_LANG2 0x0020
Ben Cheng655a7c02013-10-16 16:09:24 -0700935#define V4L2_TUNER_CAP_SAP 0x0020
936#define V4L2_TUNER_CAP_LANG1 0x0040
937#define V4L2_TUNER_CAP_RDS 0x0080
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700938/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700939#define V4L2_TUNER_CAP_RDS_BLOCK_IO 0x0100
Ben Cheng655a7c02013-10-16 16:09:24 -0700940#define V4L2_TUNER_CAP_RDS_CONTROLS 0x0200
941#define V4L2_TUNER_CAP_FREQ_BANDS 0x0400
942#define V4L2_TUNER_CAP_HWSEEK_PROG_LIM 0x0800
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700943/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
944#define V4L2_TUNER_CAP_1HZ 0x1000
Ben Cheng655a7c02013-10-16 16:09:24 -0700945#define V4L2_TUNER_SUB_MONO 0x0001
Ben Cheng655a7c02013-10-16 16:09:24 -0700946#define V4L2_TUNER_SUB_STEREO 0x0002
947#define V4L2_TUNER_SUB_LANG2 0x0004
Christopher Ferris38062f92014-07-09 15:33:25 -0700948/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700949#define V4L2_TUNER_SUB_SAP 0x0004
950#define V4L2_TUNER_SUB_LANG1 0x0008
Ben Cheng655a7c02013-10-16 16:09:24 -0700951#define V4L2_TUNER_SUB_RDS 0x0010
952#define V4L2_TUNER_MODE_MONO 0x0000
Christopher Ferris38062f92014-07-09 15:33:25 -0700953/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700954#define V4L2_TUNER_MODE_STEREO 0x0001
955#define V4L2_TUNER_MODE_LANG2 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -0700956#define V4L2_TUNER_MODE_SAP 0x0002
957#define V4L2_TUNER_MODE_LANG1 0x0003
Christopher Ferris38062f92014-07-09 15:33:25 -0700958/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700959#define V4L2_TUNER_MODE_LANG1_LANG2 0x0004
960struct v4l2_frequency {
Ben Cheng655a7c02013-10-16 16:09:24 -0700961 __u32 tuner;
962 __u32 type;
Christopher Ferris38062f92014-07-09 15:33:25 -0700963/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700964 __u32 frequency;
965 __u32 reserved[8];
Ben Cheng655a7c02013-10-16 16:09:24 -0700966};
967#define V4L2_BAND_MODULATION_VSB (1 << 1)
Christopher Ferris38062f92014-07-09 15:33:25 -0700968/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700969#define V4L2_BAND_MODULATION_FM (1 << 2)
970#define V4L2_BAND_MODULATION_AM (1 << 3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700971struct v4l2_frequency_band {
972 __u32 tuner;
Christopher Ferris38062f92014-07-09 15:33:25 -0700973/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700974 __u32 type;
975 __u32 index;
Ben Cheng655a7c02013-10-16 16:09:24 -0700976 __u32 capability;
977 __u32 rangelow;
Christopher Ferris38062f92014-07-09 15:33:25 -0700978/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700979 __u32 rangehigh;
980 __u32 modulation;
Ben Cheng655a7c02013-10-16 16:09:24 -0700981 __u32 reserved[9];
982};
Christopher Ferris38062f92014-07-09 15:33:25 -0700983/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700984struct v4l2_hw_freq_seek {
985 __u32 tuner;
Ben Cheng655a7c02013-10-16 16:09:24 -0700986 __u32 type;
987 __u32 seek_upward;
Christopher Ferris38062f92014-07-09 15:33:25 -0700988/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700989 __u32 wrap_around;
990 __u32 spacing;
Ben Cheng655a7c02013-10-16 16:09:24 -0700991 __u32 rangelow;
992 __u32 rangehigh;
Christopher Ferris38062f92014-07-09 15:33:25 -0700993/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700994 __u32 reserved[5];
995};
Ben Cheng655a7c02013-10-16 16:09:24 -0700996struct v4l2_rds_data {
997 __u8 lsb;
Christopher Ferris38062f92014-07-09 15:33:25 -0700998/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700999 __u8 msb;
1000 __u8 block;
Ben Cheng655a7c02013-10-16 16:09:24 -07001001} __attribute__ ((packed));
1002#define V4L2_RDS_BLOCK_MSK 0x7
Christopher Ferris38062f92014-07-09 15:33:25 -07001003/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001004#define V4L2_RDS_BLOCK_A 0
1005#define V4L2_RDS_BLOCK_B 1
Ben Cheng655a7c02013-10-16 16:09:24 -07001006#define V4L2_RDS_BLOCK_C 2
1007#define V4L2_RDS_BLOCK_D 3
Christopher Ferris38062f92014-07-09 15:33:25 -07001008/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001009#define V4L2_RDS_BLOCK_C_ALT 4
1010#define V4L2_RDS_BLOCK_INVALID 7
Ben Cheng655a7c02013-10-16 16:09:24 -07001011#define V4L2_RDS_BLOCK_CORRECTED 0x40
1012#define V4L2_RDS_BLOCK_ERROR 0x80
Christopher Ferris38062f92014-07-09 15:33:25 -07001013/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001014struct v4l2_audio {
1015 __u32 index;
Ben Cheng655a7c02013-10-16 16:09:24 -07001016 __u8 name[32];
1017 __u32 capability;
Christopher Ferris38062f92014-07-09 15:33:25 -07001018/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001019 __u32 mode;
1020 __u32 reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -07001021};
1022#define V4L2_AUDCAP_STEREO 0x00001
Christopher Ferris38062f92014-07-09 15:33:25 -07001023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001024#define V4L2_AUDCAP_AVL 0x00002
1025#define V4L2_AUDMODE_AVL 0x00001
Ben Cheng655a7c02013-10-16 16:09:24 -07001026struct v4l2_audioout {
1027 __u32 index;
Christopher Ferris38062f92014-07-09 15:33:25 -07001028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001029 __u8 name[32];
1030 __u32 capability;
Ben Cheng655a7c02013-10-16 16:09:24 -07001031 __u32 mode;
1032 __u32 reserved[2];
Christopher Ferris38062f92014-07-09 15:33:25 -07001033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001034};
1035#define V4L2_ENC_IDX_FRAME_I (0)
Ben Cheng655a7c02013-10-16 16:09:24 -07001036#define V4L2_ENC_IDX_FRAME_P (1)
1037#define V4L2_ENC_IDX_FRAME_B (2)
Christopher Ferris38062f92014-07-09 15:33:25 -07001038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001039#define V4L2_ENC_IDX_FRAME_MASK (0xf)
1040struct v4l2_enc_idx_entry {
Ben Cheng655a7c02013-10-16 16:09:24 -07001041 __u64 offset;
1042 __u64 pts;
Christopher Ferris38062f92014-07-09 15:33:25 -07001043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001044 __u32 length;
1045 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -07001046 __u32 reserved[2];
1047};
Christopher Ferris38062f92014-07-09 15:33:25 -07001048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001049#define V4L2_ENC_IDX_ENTRIES (64)
1050struct v4l2_enc_idx {
Ben Cheng655a7c02013-10-16 16:09:24 -07001051 __u32 entries;
1052 __u32 entries_cap;
Christopher Ferris38062f92014-07-09 15:33:25 -07001053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001054 __u32 reserved[4];
1055 struct v4l2_enc_idx_entry entry[V4L2_ENC_IDX_ENTRIES];
Ben Cheng655a7c02013-10-16 16:09:24 -07001056};
1057#define V4L2_ENC_CMD_START (0)
Christopher Ferris38062f92014-07-09 15:33:25 -07001058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001059#define V4L2_ENC_CMD_STOP (1)
1060#define V4L2_ENC_CMD_PAUSE (2)
Ben Cheng655a7c02013-10-16 16:09:24 -07001061#define V4L2_ENC_CMD_RESUME (3)
1062#define V4L2_ENC_CMD_STOP_AT_GOP_END (1 << 0)
Christopher Ferris38062f92014-07-09 15:33:25 -07001063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001064struct v4l2_encoder_cmd {
1065 __u32 cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -07001066 __u32 flags;
1067 union {
Christopher Ferris38062f92014-07-09 15:33:25 -07001068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001069 struct {
1070 __u32 data[8];
Ben Cheng655a7c02013-10-16 16:09:24 -07001071 } raw;
1072 };
Christopher Ferris38062f92014-07-09 15:33:25 -07001073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001074};
1075#define V4L2_DEC_CMD_START (0)
Ben Cheng655a7c02013-10-16 16:09:24 -07001076#define V4L2_DEC_CMD_STOP (1)
1077#define V4L2_DEC_CMD_PAUSE (2)
Christopher Ferris38062f92014-07-09 15:33:25 -07001078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001079#define V4L2_DEC_CMD_RESUME (3)
1080#define V4L2_DEC_CMD_START_MUTE_AUDIO (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -07001081#define V4L2_DEC_CMD_PAUSE_TO_BLACK (1 << 0)
1082#define V4L2_DEC_CMD_STOP_TO_BLACK (1 << 0)
Christopher Ferris38062f92014-07-09 15:33:25 -07001083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001084#define V4L2_DEC_CMD_STOP_IMMEDIATELY (1 << 1)
1085#define V4L2_DEC_START_FMT_NONE (0)
Ben Cheng655a7c02013-10-16 16:09:24 -07001086#define V4L2_DEC_START_FMT_GOP (1)
1087struct v4l2_decoder_cmd {
Christopher Ferris38062f92014-07-09 15:33:25 -07001088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001089 __u32 cmd;
1090 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -07001091 union {
1092 struct {
Christopher Ferris38062f92014-07-09 15:33:25 -07001093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001094 __u64 pts;
1095 } stop;
Ben Cheng655a7c02013-10-16 16:09:24 -07001096 struct {
1097 __s32 speed;
Christopher Ferris38062f92014-07-09 15:33:25 -07001098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001099 __u32 format;
1100 } start;
Ben Cheng655a7c02013-10-16 16:09:24 -07001101 struct {
1102 __u32 data[16];
Christopher Ferris38062f92014-07-09 15:33:25 -07001103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001104 } raw;
1105 };
Ben Cheng655a7c02013-10-16 16:09:24 -07001106};
1107struct v4l2_vbi_format {
Christopher Ferris38062f92014-07-09 15:33:25 -07001108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001109 __u32 sampling_rate;
1110 __u32 offset;
Ben Cheng655a7c02013-10-16 16:09:24 -07001111 __u32 samples_per_line;
1112 __u32 sample_format;
Christopher Ferris38062f92014-07-09 15:33:25 -07001113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001114 __s32 start[2];
1115 __u32 count[2];
Ben Cheng655a7c02013-10-16 16:09:24 -07001116 __u32 flags;
1117 __u32 reserved[2];
Christopher Ferris38062f92014-07-09 15:33:25 -07001118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001119};
1120#define V4L2_VBI_UNSYNC (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -07001121#define V4L2_VBI_INTERLACED (1 << 1)
1122struct v4l2_sliced_vbi_format {
Christopher Ferris38062f92014-07-09 15:33:25 -07001123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001124 __u16 service_set;
1125 __u16 service_lines[2][24];
Ben Cheng655a7c02013-10-16 16:09:24 -07001126 __u32 io_size;
1127 __u32 reserved[2];
Christopher Ferris38062f92014-07-09 15:33:25 -07001128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001129};
1130#define V4L2_SLICED_TELETEXT_B (0x0001)
Ben Cheng655a7c02013-10-16 16:09:24 -07001131#define V4L2_SLICED_VPS (0x0400)
1132#define V4L2_SLICED_CAPTION_525 (0x1000)
Christopher Ferris38062f92014-07-09 15:33:25 -07001133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001134#define V4L2_SLICED_WSS_625 (0x4000)
1135#define V4L2_SLICED_VBI_525 (V4L2_SLICED_CAPTION_525)
Ben Cheng655a7c02013-10-16 16:09:24 -07001136#define V4L2_SLICED_VBI_625 (V4L2_SLICED_TELETEXT_B | V4L2_SLICED_VPS | V4L2_SLICED_WSS_625)
1137struct v4l2_sliced_vbi_cap {
Christopher Ferris38062f92014-07-09 15:33:25 -07001138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001139 __u16 service_set;
1140 __u16 service_lines[2][24];
Ben Cheng655a7c02013-10-16 16:09:24 -07001141 __u32 type;
1142 __u32 reserved[3];
Christopher Ferris38062f92014-07-09 15:33:25 -07001143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001144};
1145struct v4l2_sliced_vbi_data {
Ben Cheng655a7c02013-10-16 16:09:24 -07001146 __u32 id;
1147 __u32 field;
Christopher Ferris38062f92014-07-09 15:33:25 -07001148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001149 __u32 line;
1150 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -07001151 __u8 data[48];
1152};
Christopher Ferris38062f92014-07-09 15:33:25 -07001153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001154#define V4L2_MPEG_VBI_IVTV_TELETEXT_B (1)
1155#define V4L2_MPEG_VBI_IVTV_CAPTION_525 (4)
Ben Cheng655a7c02013-10-16 16:09:24 -07001156#define V4L2_MPEG_VBI_IVTV_WSS_625 (5)
1157#define V4L2_MPEG_VBI_IVTV_VPS (7)
Christopher Ferris38062f92014-07-09 15:33:25 -07001158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001159struct v4l2_mpeg_vbi_itv0_line {
1160 __u8 id;
Ben Cheng655a7c02013-10-16 16:09:24 -07001161 __u8 data[42];
1162} __attribute__ ((packed));
Christopher Ferris38062f92014-07-09 15:33:25 -07001163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001164struct v4l2_mpeg_vbi_itv0 {
1165 __le32 linemask[2];
Ben Cheng655a7c02013-10-16 16:09:24 -07001166 struct v4l2_mpeg_vbi_itv0_line line[35];
1167} __attribute__ ((packed));
Christopher Ferris38062f92014-07-09 15:33:25 -07001168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001169struct v4l2_mpeg_vbi_ITV0 {
1170 struct v4l2_mpeg_vbi_itv0_line line[36];
Ben Cheng655a7c02013-10-16 16:09:24 -07001171} __attribute__ ((packed));
1172#define V4L2_MPEG_VBI_IVTV_MAGIC0 "itv0"
Christopher Ferris38062f92014-07-09 15:33:25 -07001173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001174#define V4L2_MPEG_VBI_IVTV_MAGIC1 "ITV0"
1175struct v4l2_mpeg_vbi_fmt_ivtv {
Ben Cheng655a7c02013-10-16 16:09:24 -07001176 __u8 magic[4];
1177 union {
Christopher Ferris38062f92014-07-09 15:33:25 -07001178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001179 struct v4l2_mpeg_vbi_itv0 itv0;
1180 struct v4l2_mpeg_vbi_ITV0 ITV0;
Ben Cheng655a7c02013-10-16 16:09:24 -07001181 };
1182} __attribute__ ((packed));
Christopher Ferris38062f92014-07-09 15:33:25 -07001183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001184struct v4l2_plane_pix_format {
1185 __u32 sizeimage;
Ben Cheng655a7c02013-10-16 16:09:24 -07001186 __u16 bytesperline;
1187 __u16 reserved[7];
Christopher Ferris38062f92014-07-09 15:33:25 -07001188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001189} __attribute__ ((packed));
1190struct v4l2_pix_format_mplane {
Ben Cheng655a7c02013-10-16 16:09:24 -07001191 __u32 width;
1192 __u32 height;
Christopher Ferris38062f92014-07-09 15:33:25 -07001193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001194 __u32 pixelformat;
1195 __u32 field;
Ben Cheng655a7c02013-10-16 16:09:24 -07001196 __u32 colorspace;
1197 struct v4l2_plane_pix_format plane_fmt[VIDEO_MAX_PLANES];
Christopher Ferris38062f92014-07-09 15:33:25 -07001198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001199 __u8 num_planes;
1200 __u8 reserved[11];
Ben Cheng655a7c02013-10-16 16:09:24 -07001201} __attribute__ ((packed));
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001202struct v4l2_sdr_format {
1203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1204 __u32 pixelformat;
1205 __u8 reserved[28];
1206} __attribute__ ((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -07001207struct v4l2_format {
Christopher Ferris38062f92014-07-09 15:33:25 -07001208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001209 __u32 type;
1210 union {
Ben Cheng655a7c02013-10-16 16:09:24 -07001211 struct v4l2_pix_format pix;
1212 struct v4l2_pix_format_mplane pix_mp;
Christopher Ferris38062f92014-07-09 15:33:25 -07001213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001214 struct v4l2_window win;
1215 struct v4l2_vbi_format vbi;
Ben Cheng655a7c02013-10-16 16:09:24 -07001216 struct v4l2_sliced_vbi_format sliced;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001217 struct v4l2_sdr_format sdr;
Christopher Ferris38062f92014-07-09 15:33:25 -07001218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001219 __u8 raw_data[200];
Ben Cheng655a7c02013-10-16 16:09:24 -07001220 } fmt;
1221};
Ben Cheng655a7c02013-10-16 16:09:24 -07001222struct v4l2_streamparm {
Christopher Ferris38062f92014-07-09 15:33:25 -07001223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001224 __u32 type;
Ben Cheng655a7c02013-10-16 16:09:24 -07001225 union {
1226 struct v4l2_captureparm capture;
Ben Cheng655a7c02013-10-16 16:09:24 -07001227 struct v4l2_outputparm output;
Christopher Ferris38062f92014-07-09 15:33:25 -07001228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001229 __u8 raw_data[200];
Ben Cheng655a7c02013-10-16 16:09:24 -07001230 } parm;
1231};
Ben Cheng655a7c02013-10-16 16:09:24 -07001232#define V4L2_EVENT_ALL 0
Christopher Ferris38062f92014-07-09 15:33:25 -07001233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001234#define V4L2_EVENT_VSYNC 1
Ben Cheng655a7c02013-10-16 16:09:24 -07001235#define V4L2_EVENT_EOS 2
1236#define V4L2_EVENT_CTRL 3
Ben Cheng655a7c02013-10-16 16:09:24 -07001237#define V4L2_EVENT_FRAME_SYNC 4
Christopher Ferris38062f92014-07-09 15:33:25 -07001238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001239#define V4L2_EVENT_SOURCE_CHANGE 5
1240#define V4L2_EVENT_PRIVATE_START 0x08000000
Ben Cheng655a7c02013-10-16 16:09:24 -07001241struct v4l2_event_vsync {
1242 __u8 field;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001244} __attribute__ ((packed));
1245#define V4L2_EVENT_CTRL_CH_VALUE (1 << 0)
1246#define V4L2_EVENT_CTRL_CH_FLAGS (1 << 1)
1247#define V4L2_EVENT_CTRL_CH_RANGE (1 << 2)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001249struct v4l2_event_ctrl {
1250 __u32 changes;
1251 __u32 type;
1252 union {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001254 __s32 value;
1255 __s64 value64;
1256 };
1257 __u32 flags;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001259 __s32 minimum;
1260 __s32 maximum;
1261 __s32 step;
1262 __s32 default_value;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001264};
1265struct v4l2_event_frame_sync {
1266 __u32 frame_sequence;
1267};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1269#define V4L2_EVENT_SRC_CH_RESOLUTION (1 << 0)
1270struct v4l2_event_src_change {
1271 __u32 changes;
1272};
1273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001274struct v4l2_event {
1275 __u32 type;
1276 union {
1277 struct v4l2_event_vsync vsync;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001279 struct v4l2_event_ctrl ctrl;
1280 struct v4l2_event_frame_sync frame_sync;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001281 struct v4l2_event_src_change src_change;
Ben Cheng655a7c02013-10-16 16:09:24 -07001282 __u8 data[64];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001284 } u;
Ben Cheng655a7c02013-10-16 16:09:24 -07001285 __u32 pending;
1286 __u32 sequence;
1287 struct timespec timestamp;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001289 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -07001290 __u32 reserved[8];
1291};
1292#define V4L2_EVENT_SUB_FL_SEND_INITIAL (1 << 0)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001294#define V4L2_EVENT_SUB_FL_ALLOW_FEEDBACK (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -07001295struct v4l2_event_subscription {
1296 __u32 type;
1297 __u32 id;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001299 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -07001300 __u32 reserved[5];
1301};
Christopher Ferris38062f92014-07-09 15:33:25 -07001302#define V4L2_CHIP_MATCH_BRIDGE 0
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -07001304#define V4L2_CHIP_MATCH_SUBDEV 4
1305#define V4L2_CHIP_MATCH_HOST V4L2_CHIP_MATCH_BRIDGE
Ben Cheng655a7c02013-10-16 16:09:24 -07001306#define V4L2_CHIP_MATCH_I2C_DRIVER 1
1307#define V4L2_CHIP_MATCH_I2C_ADDR 2
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001309#define V4L2_CHIP_MATCH_AC97 3
Ben Cheng655a7c02013-10-16 16:09:24 -07001310struct v4l2_dbg_match {
1311 __u32 type;
1312 union {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001314 __u32 addr;
Ben Cheng655a7c02013-10-16 16:09:24 -07001315 char name[32];
1316 };
1317} __attribute__ ((packed));
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001319struct v4l2_dbg_register {
Ben Cheng655a7c02013-10-16 16:09:24 -07001320 struct v4l2_dbg_match match;
1321 __u32 size;
1322 __u64 reg;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001324 __u64 val;
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001325} __attribute__ ((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -07001326#define V4L2_CHIP_FL_READABLE (1 << 0)
Christopher Ferris38062f92014-07-09 15:33:25 -07001327#define V4L2_CHIP_FL_WRITABLE (1 << 1)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001329struct v4l2_dbg_chip_info {
Ben Cheng655a7c02013-10-16 16:09:24 -07001330 struct v4l2_dbg_match match;
1331 char name[32];
Christopher Ferris38062f92014-07-09 15:33:25 -07001332 __u32 flags;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001334 __u32 reserved[32];
Ben Cheng655a7c02013-10-16 16:09:24 -07001335} __attribute__ ((packed));
1336struct v4l2_create_buffers {
Christopher Ferris38062f92014-07-09 15:33:25 -07001337 __u32 index;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001339 __u32 count;
Ben Cheng655a7c02013-10-16 16:09:24 -07001340 __u32 memory;
1341 struct v4l2_format format;
Christopher Ferris38062f92014-07-09 15:33:25 -07001342 __u32 reserved[8];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001344};
Ben Cheng655a7c02013-10-16 16:09:24 -07001345#define VIDIOC_QUERYCAP _IOR('V', 0, struct v4l2_capability)
1346#define VIDIOC_RESERVED _IO('V', 1)
Christopher Ferris38062f92014-07-09 15:33:25 -07001347#define VIDIOC_ENUM_FMT _IOWR('V', 2, struct v4l2_fmtdesc)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001349#define VIDIOC_G_FMT _IOWR('V', 4, struct v4l2_format)
Ben Cheng655a7c02013-10-16 16:09:24 -07001350#define VIDIOC_S_FMT _IOWR('V', 5, struct v4l2_format)
1351#define VIDIOC_REQBUFS _IOWR('V', 8, struct v4l2_requestbuffers)
Christopher Ferris38062f92014-07-09 15:33:25 -07001352#define VIDIOC_QUERYBUF _IOWR('V', 9, struct v4l2_buffer)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001354#define VIDIOC_G_FBUF _IOR('V', 10, struct v4l2_framebuffer)
Ben Cheng655a7c02013-10-16 16:09:24 -07001355#define VIDIOC_S_FBUF _IOW('V', 11, struct v4l2_framebuffer)
1356#define VIDIOC_OVERLAY _IOW('V', 14, int)
Christopher Ferris38062f92014-07-09 15:33:25 -07001357#define VIDIOC_QBUF _IOWR('V', 15, struct v4l2_buffer)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001359#define VIDIOC_EXPBUF _IOWR('V', 16, struct v4l2_exportbuffer)
Ben Cheng655a7c02013-10-16 16:09:24 -07001360#define VIDIOC_DQBUF _IOWR('V', 17, struct v4l2_buffer)
1361#define VIDIOC_STREAMON _IOW('V', 18, int)
Christopher Ferris38062f92014-07-09 15:33:25 -07001362#define VIDIOC_STREAMOFF _IOW('V', 19, int)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001364#define VIDIOC_G_PARM _IOWR('V', 21, struct v4l2_streamparm)
Ben Cheng655a7c02013-10-16 16:09:24 -07001365#define VIDIOC_S_PARM _IOWR('V', 22, struct v4l2_streamparm)
1366#define VIDIOC_G_STD _IOR('V', 23, v4l2_std_id)
Christopher Ferris38062f92014-07-09 15:33:25 -07001367#define VIDIOC_S_STD _IOW('V', 24, v4l2_std_id)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001369#define VIDIOC_ENUMSTD _IOWR('V', 25, struct v4l2_standard)
Ben Cheng655a7c02013-10-16 16:09:24 -07001370#define VIDIOC_ENUMINPUT _IOWR('V', 26, struct v4l2_input)
1371#define VIDIOC_G_CTRL _IOWR('V', 27, struct v4l2_control)
Christopher Ferris38062f92014-07-09 15:33:25 -07001372#define VIDIOC_S_CTRL _IOWR('V', 28, struct v4l2_control)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001374#define VIDIOC_G_TUNER _IOWR('V', 29, struct v4l2_tuner)
Ben Cheng655a7c02013-10-16 16:09:24 -07001375#define VIDIOC_S_TUNER _IOW('V', 30, struct v4l2_tuner)
1376#define VIDIOC_G_AUDIO _IOR('V', 33, struct v4l2_audio)
Christopher Ferris38062f92014-07-09 15:33:25 -07001377#define VIDIOC_S_AUDIO _IOW('V', 34, struct v4l2_audio)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001379#define VIDIOC_QUERYCTRL _IOWR('V', 36, struct v4l2_queryctrl)
Ben Cheng655a7c02013-10-16 16:09:24 -07001380#define VIDIOC_QUERYMENU _IOWR('V', 37, struct v4l2_querymenu)
1381#define VIDIOC_G_INPUT _IOR('V', 38, int)
Christopher Ferris38062f92014-07-09 15:33:25 -07001382#define VIDIOC_S_INPUT _IOWR('V', 39, int)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1384#define VIDIOC_G_EDID _IOWR('V', 40, struct v4l2_edid)
1385#define VIDIOC_S_EDID _IOWR('V', 41, struct v4l2_edid)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001386#define VIDIOC_G_OUTPUT _IOR('V', 46, int)
Ben Cheng655a7c02013-10-16 16:09:24 -07001387#define VIDIOC_S_OUTPUT _IOWR('V', 47, int)
Ben Cheng655a7c02013-10-16 16:09:24 -07001388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001389#define VIDIOC_ENUMOUTPUT _IOWR('V', 48, struct v4l2_output)
Christopher Ferris38062f92014-07-09 15:33:25 -07001390#define VIDIOC_G_AUDOUT _IOR('V', 49, struct v4l2_audioout)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001391#define VIDIOC_S_AUDOUT _IOW('V', 50, struct v4l2_audioout)
Ben Cheng655a7c02013-10-16 16:09:24 -07001392#define VIDIOC_G_MODULATOR _IOWR('V', 54, struct v4l2_modulator)
Ben Cheng655a7c02013-10-16 16:09:24 -07001393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001394#define VIDIOC_S_MODULATOR _IOW('V', 55, struct v4l2_modulator)
Christopher Ferris38062f92014-07-09 15:33:25 -07001395#define VIDIOC_G_FREQUENCY _IOWR('V', 56, struct v4l2_frequency)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001396#define VIDIOC_S_FREQUENCY _IOW('V', 57, struct v4l2_frequency)
Ben Cheng655a7c02013-10-16 16:09:24 -07001397#define VIDIOC_CROPCAP _IOWR('V', 58, struct v4l2_cropcap)
Ben Cheng655a7c02013-10-16 16:09:24 -07001398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001399#define VIDIOC_G_CROP _IOWR('V', 59, struct v4l2_crop)
Christopher Ferris38062f92014-07-09 15:33:25 -07001400#define VIDIOC_S_CROP _IOW('V', 60, struct v4l2_crop)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001401#define VIDIOC_G_JPEGCOMP _IOR('V', 61, struct v4l2_jpegcompression)
Ben Cheng655a7c02013-10-16 16:09:24 -07001402#define VIDIOC_S_JPEGCOMP _IOW('V', 62, struct v4l2_jpegcompression)
Ben Cheng655a7c02013-10-16 16:09:24 -07001403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001404#define VIDIOC_QUERYSTD _IOR('V', 63, v4l2_std_id)
Christopher Ferris38062f92014-07-09 15:33:25 -07001405#define VIDIOC_TRY_FMT _IOWR('V', 64, struct v4l2_format)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001406#define VIDIOC_ENUMAUDIO _IOWR('V', 65, struct v4l2_audio)
Ben Cheng655a7c02013-10-16 16:09:24 -07001407#define VIDIOC_ENUMAUDOUT _IOWR('V', 66, struct v4l2_audioout)
Ben Cheng655a7c02013-10-16 16:09:24 -07001408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001409#define VIDIOC_G_PRIORITY _IOR('V', 67, __u32)
Christopher Ferris38062f92014-07-09 15:33:25 -07001410#define VIDIOC_S_PRIORITY _IOW('V', 68, __u32)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001411#define VIDIOC_G_SLICED_VBI_CAP _IOWR('V', 69, struct v4l2_sliced_vbi_cap)
Ben Cheng655a7c02013-10-16 16:09:24 -07001412#define VIDIOC_LOG_STATUS _IO('V', 70)
Ben Cheng655a7c02013-10-16 16:09:24 -07001413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001414#define VIDIOC_G_EXT_CTRLS _IOWR('V', 71, struct v4l2_ext_controls)
Christopher Ferris38062f92014-07-09 15:33:25 -07001415#define VIDIOC_S_EXT_CTRLS _IOWR('V', 72, struct v4l2_ext_controls)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001416#define VIDIOC_TRY_EXT_CTRLS _IOWR('V', 73, struct v4l2_ext_controls)
Ben Cheng655a7c02013-10-16 16:09:24 -07001417#define VIDIOC_ENUM_FRAMESIZES _IOWR('V', 74, struct v4l2_frmsizeenum)
Ben Cheng655a7c02013-10-16 16:09:24 -07001418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001419#define VIDIOC_ENUM_FRAMEINTERVALS _IOWR('V', 75, struct v4l2_frmivalenum)
Christopher Ferris38062f92014-07-09 15:33:25 -07001420#define VIDIOC_G_ENC_INDEX _IOR('V', 76, struct v4l2_enc_idx)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001421#define VIDIOC_ENCODER_CMD _IOWR('V', 77, struct v4l2_encoder_cmd)
Ben Cheng655a7c02013-10-16 16:09:24 -07001422#define VIDIOC_TRY_ENCODER_CMD _IOWR('V', 78, struct v4l2_encoder_cmd)
Ben Cheng655a7c02013-10-16 16:09:24 -07001423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001424#define VIDIOC_DBG_S_REGISTER _IOW('V', 79, struct v4l2_dbg_register)
Christopher Ferris38062f92014-07-09 15:33:25 -07001425#define VIDIOC_DBG_G_REGISTER _IOWR('V', 80, struct v4l2_dbg_register)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001426#define VIDIOC_S_HW_FREQ_SEEK _IOW('V', 82, struct v4l2_hw_freq_seek)
Ben Cheng655a7c02013-10-16 16:09:24 -07001427#define VIDIOC_S_DV_TIMINGS _IOWR('V', 87, struct v4l2_dv_timings)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001429#define VIDIOC_G_DV_TIMINGS _IOWR('V', 88, struct v4l2_dv_timings)
Ben Cheng655a7c02013-10-16 16:09:24 -07001430#define VIDIOC_DQEVENT _IOR('V', 89, struct v4l2_event)
1431#define VIDIOC_SUBSCRIBE_EVENT _IOW('V', 90, struct v4l2_event_subscription)
Ben Cheng655a7c02013-10-16 16:09:24 -07001432#define VIDIOC_UNSUBSCRIBE_EVENT _IOW('V', 91, struct v4l2_event_subscription)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001434#define VIDIOC_CREATE_BUFS _IOWR('V', 92, struct v4l2_create_buffers)
Ben Cheng655a7c02013-10-16 16:09:24 -07001435#define VIDIOC_PREPARE_BUF _IOWR('V', 93, struct v4l2_buffer)
1436#define VIDIOC_G_SELECTION _IOWR('V', 94, struct v4l2_selection)
Ben Cheng655a7c02013-10-16 16:09:24 -07001437#define VIDIOC_S_SELECTION _IOWR('V', 95, struct v4l2_selection)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001439#define VIDIOC_DECODER_CMD _IOWR('V', 96, struct v4l2_decoder_cmd)
Ben Cheng655a7c02013-10-16 16:09:24 -07001440#define VIDIOC_TRY_DECODER_CMD _IOWR('V', 97, struct v4l2_decoder_cmd)
1441#define VIDIOC_ENUM_DV_TIMINGS _IOWR('V', 98, struct v4l2_enum_dv_timings)
Ben Cheng655a7c02013-10-16 16:09:24 -07001442#define VIDIOC_QUERY_DV_TIMINGS _IOR('V', 99, struct v4l2_dv_timings)
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001444#define VIDIOC_DV_TIMINGS_CAP _IOWR('V', 100, struct v4l2_dv_timings_cap)
Ben Cheng655a7c02013-10-16 16:09:24 -07001445#define VIDIOC_ENUM_FREQ_BANDS _IOWR('V', 101, struct v4l2_frequency_band)
1446#define VIDIOC_DBG_G_CHIP_INFO _IOWR('V', 102, struct v4l2_dbg_chip_info)
Ben Cheng655a7c02013-10-16 16:09:24 -07001447#define BASE_VIDIOC_PRIVATE 192
Elliott Hughes8cb52b02013-11-21 13:43:23 -08001448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07001449#endif