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_MEDIA_H |
20 | #define __LINUX_MEDIA_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 <linux/version.h> |
db7d80d7 | 25 | #define MEDIA_API_VERSION KERNEL_VERSION(0, 1, 0) |
20c51683 | 26 | struct media_device_info { |
db7d80d7 GH |
27 | char driver[16]; |
28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
29 | char model[32]; | |
30 | char serial[40]; | |
31 | char bus_info[32]; | |
32 | __u32 media_version; | |
33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
34 | __u32 hw_revision; | |
35 | __u32 driver_version; | |
36 | __u32 reserved[31]; | |
20c51683 | 37 | }; |
db7d80d7 GH |
38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
39 | #define MEDIA_ENT_ID_FLAG_NEXT (1 << 31) | |
40 | #define MEDIA_ENT_TYPE_SHIFT 16 | |
41 | #define MEDIA_ENT_TYPE_MASK 0x00ff0000 | |
42 | #define MEDIA_ENT_SUBTYPE_MASK 0x0000ffff | |
43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
44 | #define MEDIA_ENT_T_DEVNODE (1 << MEDIA_ENT_TYPE_SHIFT) | |
45 | #define MEDIA_ENT_T_DEVNODE_V4L (MEDIA_ENT_T_DEVNODE + 1) | |
46 | #define MEDIA_ENT_T_DEVNODE_FB (MEDIA_ENT_T_DEVNODE + 2) | |
47 | #define MEDIA_ENT_T_DEVNODE_ALSA (MEDIA_ENT_T_DEVNODE + 3) | |
48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
49 | #define MEDIA_ENT_T_DEVNODE_DVB (MEDIA_ENT_T_DEVNODE + 4) | |
50 | #define MEDIA_ENT_T_V4L2_SUBDEV (2 << MEDIA_ENT_TYPE_SHIFT) | |
51 | #define MEDIA_ENT_T_V4L2_SUBDEV_SENSOR (MEDIA_ENT_T_V4L2_SUBDEV + 1) | |
52 | #define MEDIA_ENT_T_V4L2_SUBDEV_FLASH (MEDIA_ENT_T_V4L2_SUBDEV + 2) | |
53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
54 | #define MEDIA_ENT_T_V4L2_SUBDEV_LENS (MEDIA_ENT_T_V4L2_SUBDEV + 3) | |
55 | #define MEDIA_ENT_FL_DEFAULT (1 << 0) | |
20c51683 | 56 | struct media_entity_desc { |
db7d80d7 GH |
57 | __u32 id; |
58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
59 | char name[32]; | |
60 | __u32 type; | |
61 | __u32 revision; | |
62 | __u32 flags; | |
63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
64 | __u32 group_id; | |
65 | __u16 pads; | |
66 | __u16 links; | |
67 | __u32 reserved[4]; | |
68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
69 | union { | |
70 | struct { | |
71 | __u32 major; | |
72 | __u32 minor; | |
73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
74 | } v4l; | |
75 | struct { | |
76 | __u32 major; | |
77 | __u32 minor; | |
78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
79 | } fb; | |
80 | struct { | |
81 | __u32 card; | |
82 | __u32 device; | |
83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
84 | __u32 subdevice; | |
85 | } alsa; | |
86 | int dvb; | |
87 | __u8 raw[184]; | |
88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
89 | }; | |
20c51683 | 90 | }; |
db7d80d7 GH |
91 | #define MEDIA_PAD_FL_SINK (1 << 0) |
92 | #define MEDIA_PAD_FL_SOURCE (1 << 1) | |
93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
20c51683 | 94 | struct media_pad_desc { |
db7d80d7 GH |
95 | __u32 entity; |
96 | __u16 index; | |
97 | __u32 flags; | |
98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
99 | __u32 reserved[2]; | |
20c51683 | 100 | }; |
db7d80d7 GH |
101 | #define MEDIA_LNK_FL_ENABLED (1 << 0) |
102 | #define MEDIA_LNK_FL_IMMUTABLE (1 << 1) | |
103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
104 | #define MEDIA_LNK_FL_DYNAMIC (1 << 2) | |
20c51683 | 105 | struct media_link_desc { |
db7d80d7 GH |
106 | struct media_pad_desc source; |
107 | struct media_pad_desc sink; | |
108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
109 | __u32 flags; | |
110 | __u32 reserved[2]; | |
20c51683 | 111 | }; |
20c51683 | 112 | struct media_links_enum { |
db7d80d7 GH |
113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
114 | __u32 entity; | |
115 | struct media_pad_desc __user *pads; | |
116 | struct media_link_desc __user *links; | |
117 | __u32 reserved[4]; | |
118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
20c51683 | 119 | }; |
db7d80d7 GH |
120 | #define MEDIA_IOC_DEVICE_INFO _IOWR('|', 0x00, struct media_device_info) |
121 | #define MEDIA_IOC_ENUM_ENTITIES _IOWR('|', 0x01, struct media_entity_desc) | |
122 | #define MEDIA_IOC_ENUM_LINKS _IOWR('|', 0x02, struct media_links_enum) | |
123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | |
124 | #define MEDIA_IOC_SETUP_LINK _IOWR('|', 0x03, struct media_link_desc) | |
125 | #endif |