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