Go to the documentation of this file.
23 #ifndef __LINUX_MEDIA_H
24 #define __LINUX_MEDIA_H
27 #include <linux/types.h>
28 #include <linux/version.h>
30 #define MEDIA_API_VERSION KERNEL_VERSION(0, 1, 0)
43 #define MEDIA_ENT_ID_FLAG_NEXT (1 << 31)
45 #define MEDIA_ENT_TYPE_SHIFT 16
46 #define MEDIA_ENT_TYPE_MASK 0x00ff0000
47 #define MEDIA_ENT_SUBTYPE_MASK 0x0000ffff
49 #define MEDIA_ENT_T_DEVNODE (1 << MEDIA_ENT_TYPE_SHIFT)
50 #define MEDIA_ENT_T_DEVNODE_V4L (MEDIA_ENT_T_DEVNODE + 1)
51 #define MEDIA_ENT_T_DEVNODE_FB (MEDIA_ENT_T_DEVNODE + 2)
52 #define MEDIA_ENT_T_DEVNODE_ALSA (MEDIA_ENT_T_DEVNODE + 3)
53 #define MEDIA_ENT_T_DEVNODE_DVB (MEDIA_ENT_T_DEVNODE + 4)
55 #define MEDIA_ENT_T_V4L2_SUBDEV (2 << MEDIA_ENT_TYPE_SHIFT)
56 #define MEDIA_ENT_T_V4L2_SUBDEV_SENSOR (MEDIA_ENT_T_V4L2_SUBDEV + 1)
57 #define MEDIA_ENT_T_V4L2_SUBDEV_FLASH (MEDIA_ENT_T_V4L2_SUBDEV + 2)
58 #define MEDIA_ENT_T_V4L2_SUBDEV_LENS (MEDIA_ENT_T_V4L2_SUBDEV + 3)
60 #define MEDIA_ENT_FL_DEFAULT (1 << 0)
97 #define MEDIA_PAD_FL_SINK (1 << 0)
98 #define MEDIA_PAD_FL_SOURCE (1 << 1)
107 #define MEDIA_LNK_FL_ENABLED (1 << 0)
108 #define MEDIA_LNK_FL_IMMUTABLE (1 << 1)
109 #define MEDIA_LNK_FL_DYNAMIC (1 << 2)
127 #define MEDIA_IOC_DEVICE_INFO _IOWR('|', 0x00, struct media_device_info)
128 #define MEDIA_IOC_ENUM_ENTITIES _IOWR('|', 0x01, struct media_entity_desc)
129 #define MEDIA_IOC_ENUM_LINKS _IOWR('|', 0x02, struct media_links_enum)
130 #define MEDIA_IOC_SETUP_LINK _IOWR('|', 0x03, struct media_link_desc)