1a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich/****************************************************************************
2a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ****************************************************************************
3a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***
4a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   This header was automatically generated from a Linux kernel header
5a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   of the same name, to make information necessary for userspace to
6a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   call into the kernel available to libc.  It contains only constants,
7a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   structures, and macros generated from the original header, and thus,
8a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   contains no copyrightable information.
9a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***
10a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   To edit the content of this header, modify the corresponding
11a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   source file (e.g. under external/kernel-headers/original/) then
12a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   run bionic/libc/kernel/tools/update_all.py
13a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***
14a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   Any manual change here will be lost the next time this script will
15a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   be run. You've been warned!
16a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***
17a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ****************************************************************************
18a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ****************************************************************************/
19655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#ifndef __V4L2_COMMON__
20655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define __V4L2_COMMON__
21ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#include <linux/types.h>
22655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define V4L2_SEL_TGT_CROP 0x0000
23ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define V4L2_SEL_TGT_CROP_DEFAULT 0x0001
24655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define V4L2_SEL_TGT_CROP_BOUNDS 0x0002
2505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define V4L2_SEL_TGT_NATIVE_SIZE 0x0003
26655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define V4L2_SEL_TGT_COMPOSE 0x0100
2705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define V4L2_SEL_TGT_COMPOSE_DEFAULT 0x0101
28ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define V4L2_SEL_TGT_COMPOSE_BOUNDS 0x0102
29655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define V4L2_SEL_TGT_COMPOSE_PADDED 0x0103
30655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define V4L2_SEL_TGT_CROP_ACTIVE V4L2_SEL_TGT_CROP
3105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define V4L2_SEL_TGT_COMPOSE_ACTIVE V4L2_SEL_TGT_COMPOSE
32ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL V4L2_SEL_TGT_CROP
33655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL V4L2_SEL_TGT_COMPOSE
34655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS V4L2_SEL_TGT_CROP_BOUNDS
3505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS V4L2_SEL_TGT_COMPOSE_BOUNDS
36ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define V4L2_SEL_FLAG_GE (1 << 0)
37655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define V4L2_SEL_FLAG_LE (1 << 1)
38655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define V4L2_SEL_FLAG_KEEP_CONFIG (1 << 2)
3905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define V4L2_SUBDEV_SEL_FLAG_SIZE_GE V4L2_SEL_FLAG_GE
40ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris#define V4L2_SUBDEV_SEL_FLAG_SIZE_LE V4L2_SEL_FLAG_LE
41655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define V4L2_SUBDEV_SEL_FLAG_KEEP_CONFIG V4L2_SEL_FLAG_KEEP_CONFIG
42ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferrisstruct v4l2_edid {
4305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  __u32 pad;
44d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 start_block;
45d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 blocks;
46d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 reserved[5];
4705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  __u8 * edid;
48ba8d4f460b51161eb82cf1006cb34a3cc1389f47Christopher Ferris};
49a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich#endif
50