blob: 18cf5b972f05f7eb68908a24ca2b5a262e8eff87 [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 __LINUX_MEDIA_H
20#define __LINUX_MEDIA_H
Christopher Ferris106b3a82016-08-24 12:15:38 -070021#include <stdint.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070022#include <linux/ioctl.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070024#include <linux/types.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070025#include <linux/version.h>
26#define MEDIA_API_VERSION KERNEL_VERSION(0, 1, 0)
27struct media_device_info {
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070029 char driver[16];
Tao Baod7db5942015-01-28 10:07:51 -080030 char model[32];
31 char serial[40];
32 char bus_info[32];
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070034 __u32 media_version;
Tao Baod7db5942015-01-28 10:07:51 -080035 __u32 hw_revision;
36 __u32 driver_version;
37 __u32 reserved[31];
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070039};
Ben Cheng655a7c02013-10-16 16:09:24 -070040#define MEDIA_ENT_ID_FLAG_NEXT (1 << 31)
Christopher Ferris106b3a82016-08-24 12:15:38 -070041#define MEDIA_ENT_F_UNKNOWN 0x00000000
42#define MEDIA_ENT_F_BASE 0x00000000
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define MEDIA_ENT_F_OLD_BASE 0x00010000
45#define MEDIA_ENT_F_OLD_SUBDEV_BASE 0x00020000
46#define MEDIA_ENT_F_DTV_DEMOD (MEDIA_ENT_F_BASE + 0x00001)
47#define MEDIA_ENT_F_TS_DEMUX (MEDIA_ENT_F_BASE + 0x00002)
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define MEDIA_ENT_F_DTV_CA (MEDIA_ENT_F_BASE + 0x00003)
50#define MEDIA_ENT_F_DTV_NET_DECAP (MEDIA_ENT_F_BASE + 0x00004)
51#define MEDIA_ENT_F_IO_DTV (MEDIA_ENT_F_BASE + 0x01001)
52#define MEDIA_ENT_F_IO_VBI (MEDIA_ENT_F_BASE + 0x01002)
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define MEDIA_ENT_F_IO_SWRADIO (MEDIA_ENT_F_BASE + 0x01003)
55#define MEDIA_ENT_F_IF_VID_DECODER (MEDIA_ENT_F_BASE + 0x02001)
56#define MEDIA_ENT_F_IF_AUD_DECODER (MEDIA_ENT_F_BASE + 0x02002)
57#define MEDIA_ENT_F_AUDIO_CAPTURE (MEDIA_ENT_F_BASE + 0x03001)
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define MEDIA_ENT_F_AUDIO_PLAYBACK (MEDIA_ENT_F_BASE + 0x03002)
60#define MEDIA_ENT_F_AUDIO_MIXER (MEDIA_ENT_F_BASE + 0x03003)
Christopher Ferris49f525c2016-12-12 14:55:36 -080061#define MEDIA_ENT_F_PROC_VIDEO_COMPOSER (MEDIA_ENT_F_BASE + 0x4001)
62#define MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER (MEDIA_ENT_F_BASE + 0x4002)
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define MEDIA_ENT_F_PROC_VIDEO_PIXEL_ENC_CONV (MEDIA_ENT_F_BASE + 0x4003)
65#define MEDIA_ENT_F_PROC_VIDEO_LUT (MEDIA_ENT_F_BASE + 0x4004)
66#define MEDIA_ENT_F_PROC_VIDEO_SCALER (MEDIA_ENT_F_BASE + 0x4005)
67#define MEDIA_ENT_F_PROC_VIDEO_STATISTICS (MEDIA_ENT_F_BASE + 0x4006)
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070069#define MEDIA_ENT_F_IO_V4L (MEDIA_ENT_F_OLD_BASE + 1)
70#define MEDIA_ENT_F_CAM_SENSOR (MEDIA_ENT_F_OLD_SUBDEV_BASE + 1)
Christopher Ferris106b3a82016-08-24 12:15:38 -070071#define MEDIA_ENT_F_FLASH (MEDIA_ENT_F_OLD_SUBDEV_BASE + 2)
72#define MEDIA_ENT_F_LENS (MEDIA_ENT_F_OLD_SUBDEV_BASE + 3)
Christopher Ferris49f525c2016-12-12 14:55:36 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070074#define MEDIA_ENT_F_ATV_DECODER (MEDIA_ENT_F_OLD_SUBDEV_BASE + 4)
75#define MEDIA_ENT_F_TUNER (MEDIA_ENT_F_OLD_SUBDEV_BASE + 5)
Christopher Ferris106b3a82016-08-24 12:15:38 -070076#define MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN MEDIA_ENT_F_OLD_SUBDEV_BASE
Ben Cheng655a7c02013-10-16 16:09:24 -070077#define MEDIA_ENT_TYPE_SHIFT 16
Christopher Ferris49f525c2016-12-12 14:55:36 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070079#define MEDIA_ENT_TYPE_MASK 0x00ff0000
80#define MEDIA_ENT_SUBTYPE_MASK 0x0000ffff
Christopher Ferris106b3a82016-08-24 12:15:38 -070081#define MEDIA_ENT_T_DEVNODE_UNKNOWN (MEDIA_ENT_T_DEVNODE | MEDIA_ENT_SUBTYPE_MASK)
82#define MEDIA_ENT_T_DEVNODE MEDIA_ENT_F_OLD_BASE
Christopher Ferris49f525c2016-12-12 14:55:36 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070084#define MEDIA_ENT_T_DEVNODE_V4L MEDIA_ENT_F_IO_V4L
Ben Cheng655a7c02013-10-16 16:09:24 -070085#define MEDIA_ENT_T_DEVNODE_FB (MEDIA_ENT_T_DEVNODE + 2)
86#define MEDIA_ENT_T_DEVNODE_ALSA (MEDIA_ENT_T_DEVNODE + 3)
Christopher Ferris106b3a82016-08-24 12:15:38 -070087#define MEDIA_ENT_T_DEVNODE_DVB (MEDIA_ENT_T_DEVNODE + 4)
Christopher Ferris49f525c2016-12-12 14:55:36 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070089#define MEDIA_ENT_T_UNKNOWN MEDIA_ENT_F_UNKNOWN
90#define MEDIA_ENT_T_V4L2_VIDEO MEDIA_ENT_F_IO_V4L
Christopher Ferris106b3a82016-08-24 12:15:38 -070091#define MEDIA_ENT_T_V4L2_SUBDEV MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN
92#define MEDIA_ENT_T_V4L2_SUBDEV_SENSOR MEDIA_ENT_F_CAM_SENSOR
Christopher Ferris49f525c2016-12-12 14:55:36 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070094#define MEDIA_ENT_T_V4L2_SUBDEV_FLASH MEDIA_ENT_F_FLASH
95#define MEDIA_ENT_T_V4L2_SUBDEV_LENS MEDIA_ENT_F_LENS
Christopher Ferris106b3a82016-08-24 12:15:38 -070096#define MEDIA_ENT_T_V4L2_SUBDEV_DECODER MEDIA_ENT_F_ATV_DECODER
97#define MEDIA_ENT_T_V4L2_SUBDEV_TUNER MEDIA_ENT_F_TUNER
Christopher Ferris49f525c2016-12-12 14:55:36 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099#define MEDIA_ENT_FL_DEFAULT (1 << 0)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700100#define MEDIA_ENT_FL_CONNECTOR (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700101struct media_entity_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800102 __u32 id;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 char name[32];
105 __u32 type;
106 __u32 revision;
Tao Baod7db5942015-01-28 10:07:51 -0800107 __u32 flags;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 __u32 group_id;
110 __u16 pads;
111 __u16 links;
Tao Baod7db5942015-01-28 10:07:51 -0800112 __u32 reserved[4];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 union {
115 struct {
116 __u32 major;
Tao Baod7db5942015-01-28 10:07:51 -0800117 __u32 minor;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800119 } dev;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800120 struct {
121 __u32 card;
122 __u32 device;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800124 __u32 subdevice;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800125 } alsa;
126 struct {
127 __u32 major;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800129 __u32 minor;
Tao Baod7db5942015-01-28 10:07:51 -0800130 } v4l;
131 struct {
132 __u32 major;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u32 minor;
135 } fb;
Tao Baod7db5942015-01-28 10:07:51 -0800136 int dvb;
Tao Baod7db5942015-01-28 10:07:51 -0800137 __u8 raw[184];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 };
Ben Cheng655a7c02013-10-16 16:09:24 -0700140};
141#define MEDIA_PAD_FL_SINK (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700142#define MEDIA_PAD_FL_SOURCE (1 << 1)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700144#define MEDIA_PAD_FL_MUST_CONNECT (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700145struct media_pad_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800146 __u32 entity;
Tao Baod7db5942015-01-28 10:07:51 -0800147 __u16 index;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 __u32 flags;
150 __u32 reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700151};
Christopher Ferris38062f92014-07-09 15:33:25 -0700152#define MEDIA_LNK_FL_ENABLED (1 << 0)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700154#define MEDIA_LNK_FL_IMMUTABLE (1 << 1)
155#define MEDIA_LNK_FL_DYNAMIC (1 << 2)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700156#define MEDIA_LNK_FL_LINK_TYPE (0xf << 28)
157#define MEDIA_LNK_FL_DATA_LINK (0 << 28)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700159#define MEDIA_LNK_FL_INTERFACE_LINK (1 << 28)
Ben Cheng655a7c02013-10-16 16:09:24 -0700160struct media_link_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800161 struct media_pad_desc source;
162 struct media_pad_desc sink;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 __u32 flags;
165 __u32 reserved[2];
Christopher Ferris38062f92014-07-09 15:33:25 -0700166};
Ben Cheng655a7c02013-10-16 16:09:24 -0700167struct media_links_enum {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 __u32 entity;
170 struct media_pad_desc __user * pads;
Tao Baod7db5942015-01-28 10:07:51 -0800171 struct media_link_desc __user * links;
172 __u32 reserved[4];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700174};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700175#define MEDIA_INTF_T_DVB_BASE 0x00000100
Christopher Ferris106b3a82016-08-24 12:15:38 -0700176#define MEDIA_INTF_T_V4L_BASE 0x00000200
177#define MEDIA_INTF_T_ALSA_BASE 0x00000300
Christopher Ferris49f525c2016-12-12 14:55:36 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700179#define MEDIA_INTF_T_DVB_FE (MEDIA_INTF_T_DVB_BASE)
180#define MEDIA_INTF_T_DVB_DEMUX (MEDIA_INTF_T_DVB_BASE + 1)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700181#define MEDIA_INTF_T_DVB_DVR (MEDIA_INTF_T_DVB_BASE + 2)
182#define MEDIA_INTF_T_DVB_CA (MEDIA_INTF_T_DVB_BASE + 3)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700184#define MEDIA_INTF_T_DVB_NET (MEDIA_INTF_T_DVB_BASE + 4)
185#define MEDIA_INTF_T_V4L_VIDEO (MEDIA_INTF_T_V4L_BASE)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700186#define MEDIA_INTF_T_V4L_VBI (MEDIA_INTF_T_V4L_BASE + 1)
187#define MEDIA_INTF_T_V4L_RADIO (MEDIA_INTF_T_V4L_BASE + 2)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700189#define MEDIA_INTF_T_V4L_SUBDEV (MEDIA_INTF_T_V4L_BASE + 3)
190#define MEDIA_INTF_T_V4L_SWRADIO (MEDIA_INTF_T_V4L_BASE + 4)
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800191#define MEDIA_INTF_T_V4L_TOUCH (MEDIA_INTF_T_V4L_BASE + 5)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700192#define MEDIA_INTF_T_ALSA_PCM_CAPTURE (MEDIA_INTF_T_ALSA_BASE)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800194#define MEDIA_INTF_T_ALSA_PCM_PLAYBACK (MEDIA_INTF_T_ALSA_BASE + 1)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700195#define MEDIA_INTF_T_ALSA_CONTROL (MEDIA_INTF_T_ALSA_BASE + 2)
196#define MEDIA_INTF_T_ALSA_COMPRESS (MEDIA_INTF_T_ALSA_BASE + 3)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700197#define MEDIA_INTF_T_ALSA_RAWMIDI (MEDIA_INTF_T_ALSA_BASE + 4)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800199#define MEDIA_INTF_T_ALSA_HWDEP (MEDIA_INTF_T_ALSA_BASE + 5)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700200#define MEDIA_INTF_T_ALSA_SEQUENCER (MEDIA_INTF_T_ALSA_BASE + 6)
201#define MEDIA_INTF_T_ALSA_TIMER (MEDIA_INTF_T_ALSA_BASE + 7)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700202struct media_v2_entity {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800204 __u32 id;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700205 char name[64];
206 __u32 function;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700207 __u32 reserved[6];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800209} __attribute__((packed));
Christopher Ferris106b3a82016-08-24 12:15:38 -0700210struct media_v2_intf_devnode {
211 __u32 major;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700212 __u32 minor;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800214} __attribute__((packed));
Christopher Ferris106b3a82016-08-24 12:15:38 -0700215struct media_v2_interface {
216 __u32 id;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700217 __u32 intf_type;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800219 __u32 flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700220 __u32 reserved[9];
221 union {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700222 struct media_v2_intf_devnode devnode;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800224 __u32 raw[16];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700225 };
226} __attribute__((packed));
Christopher Ferris106b3a82016-08-24 12:15:38 -0700227struct media_v2_pad {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800229 __u32 id;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700230 __u32 entity_id;
231 __u32 flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700232 __u32 reserved[5];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800234} __attribute__((packed));
Christopher Ferris106b3a82016-08-24 12:15:38 -0700235struct media_v2_link {
236 __u32 id;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700237 __u32 source_id;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800239 __u32 sink_id;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700240 __u32 flags;
241 __u32 reserved[6];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700242} __attribute__((packed));
Christopher Ferris49f525c2016-12-12 14:55:36 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800244struct media_v2_topology {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700245 __u64 topology_version;
246 __u32 num_entities;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700247 __u32 reserved1;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800249 __u64 ptr_entities;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700250 __u32 num_interfaces;
251 __u32 reserved2;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700252 __u64 ptr_interfaces;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800254 __u32 num_pads;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700255 __u32 reserved3;
256 __u64 ptr_pads;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700257 __u32 num_links;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800259 __u32 reserved4;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700260 __u64 ptr_links;
261} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700262#define MEDIA_IOC_DEVICE_INFO _IOWR('|', 0x00, struct media_device_info)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800264#define MEDIA_IOC_ENUM_ENTITIES _IOWR('|', 0x01, struct media_entity_desc)
Ben Cheng655a7c02013-10-16 16:09:24 -0700265#define MEDIA_IOC_ENUM_LINKS _IOWR('|', 0x02, struct media_links_enum)
266#define MEDIA_IOC_SETUP_LINK _IOWR('|', 0x03, struct media_link_desc)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700267#define MEDIA_IOC_G_TOPOLOGY _IOWR('|', 0x04, struct media_v2_topology)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800269#endif