Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
media.h File Reference
#include <linux/ioctl.h>
#include <linux/types.h>
#include <linux/version.h>

Go to the source code of this file.

Data Structures

struct  media_device_info
 
struct  media_entity_desc
 
struct  media_pad_desc
 
struct  media_link_desc
 
struct  media_links_enum
 

Macros

#define MEDIA_API_VERSION   KERNEL_VERSION(0, 1, 0)
 
#define MEDIA_ENT_ID_FLAG_NEXT   (1 << 31)
 
#define MEDIA_ENT_TYPE_SHIFT   16
 
#define MEDIA_ENT_TYPE_MASK   0x00ff0000
 
#define MEDIA_ENT_SUBTYPE_MASK   0x0000ffff
 
#define MEDIA_ENT_T_DEVNODE   (1 << MEDIA_ENT_TYPE_SHIFT)
 
#define MEDIA_ENT_T_DEVNODE_V4L   (MEDIA_ENT_T_DEVNODE + 1)
 
#define MEDIA_ENT_T_DEVNODE_FB   (MEDIA_ENT_T_DEVNODE + 2)
 
#define MEDIA_ENT_T_DEVNODE_ALSA   (MEDIA_ENT_T_DEVNODE + 3)
 
#define MEDIA_ENT_T_DEVNODE_DVB   (MEDIA_ENT_T_DEVNODE + 4)
 
#define MEDIA_ENT_T_V4L2_SUBDEV   (2 << MEDIA_ENT_TYPE_SHIFT)
 
#define MEDIA_ENT_T_V4L2_SUBDEV_SENSOR   (MEDIA_ENT_T_V4L2_SUBDEV + 1)
 
#define MEDIA_ENT_T_V4L2_SUBDEV_FLASH   (MEDIA_ENT_T_V4L2_SUBDEV + 2)
 
#define MEDIA_ENT_T_V4L2_SUBDEV_LENS   (MEDIA_ENT_T_V4L2_SUBDEV + 3)
 
#define MEDIA_ENT_FL_DEFAULT   (1 << 0)
 
#define MEDIA_PAD_FL_SINK   (1 << 0)
 
#define MEDIA_PAD_FL_SOURCE   (1 << 1)
 
#define MEDIA_LNK_FL_ENABLED   (1 << 0)
 
#define MEDIA_LNK_FL_IMMUTABLE   (1 << 1)
 
#define MEDIA_LNK_FL_DYNAMIC   (1 << 2)
 
#define MEDIA_IOC_DEVICE_INFO   _IOWR('|', 0x00, struct media_device_info)
 
#define MEDIA_IOC_ENUM_ENTITIES   _IOWR('|', 0x01, struct media_entity_desc)
 
#define MEDIA_IOC_ENUM_LINKS   _IOWR('|', 0x02, struct media_links_enum)
 
#define MEDIA_IOC_SETUP_LINK   _IOWR('|', 0x03, struct media_link_desc)
 

Macro Definition Documentation

#define MEDIA_API_VERSION   KERNEL_VERSION(0, 1, 0)

Definition at line 30 of file media.h.

#define MEDIA_ENT_FL_DEFAULT   (1 << 0)

Definition at line 60 of file media.h.

#define MEDIA_ENT_ID_FLAG_NEXT   (1 << 31)

Definition at line 43 of file media.h.

#define MEDIA_ENT_SUBTYPE_MASK   0x0000ffff

Definition at line 47 of file media.h.

#define MEDIA_ENT_T_DEVNODE   (1 << MEDIA_ENT_TYPE_SHIFT)

Definition at line 49 of file media.h.

#define MEDIA_ENT_T_DEVNODE_ALSA   (MEDIA_ENT_T_DEVNODE + 3)

Definition at line 52 of file media.h.

#define MEDIA_ENT_T_DEVNODE_DVB   (MEDIA_ENT_T_DEVNODE + 4)

Definition at line 53 of file media.h.

#define MEDIA_ENT_T_DEVNODE_FB   (MEDIA_ENT_T_DEVNODE + 2)

Definition at line 51 of file media.h.

#define MEDIA_ENT_T_DEVNODE_V4L   (MEDIA_ENT_T_DEVNODE + 1)

Definition at line 50 of file media.h.

#define MEDIA_ENT_T_V4L2_SUBDEV   (2 << MEDIA_ENT_TYPE_SHIFT)

Definition at line 55 of file media.h.

#define MEDIA_ENT_T_V4L2_SUBDEV_FLASH   (MEDIA_ENT_T_V4L2_SUBDEV + 2)

Definition at line 57 of file media.h.

#define MEDIA_ENT_T_V4L2_SUBDEV_LENS   (MEDIA_ENT_T_V4L2_SUBDEV + 3)

Definition at line 58 of file media.h.

#define MEDIA_ENT_T_V4L2_SUBDEV_SENSOR   (MEDIA_ENT_T_V4L2_SUBDEV + 1)

Definition at line 56 of file media.h.

#define MEDIA_ENT_TYPE_MASK   0x00ff0000

Definition at line 46 of file media.h.

#define MEDIA_ENT_TYPE_SHIFT   16

Definition at line 45 of file media.h.

#define MEDIA_IOC_DEVICE_INFO   _IOWR('|', 0x00, struct media_device_info)

Definition at line 127 of file media.h.

#define MEDIA_IOC_ENUM_ENTITIES   _IOWR('|', 0x01, struct media_entity_desc)

Definition at line 128 of file media.h.

#define MEDIA_IOC_ENUM_LINKS   _IOWR('|', 0x02, struct media_links_enum)

Definition at line 129 of file media.h.

#define MEDIA_IOC_SETUP_LINK   _IOWR('|', 0x03, struct media_link_desc)

Definition at line 130 of file media.h.

#define MEDIA_LNK_FL_DYNAMIC   (1 << 2)

Definition at line 109 of file media.h.

#define MEDIA_LNK_FL_ENABLED   (1 << 0)

Definition at line 107 of file media.h.

#define MEDIA_LNK_FL_IMMUTABLE   (1 << 1)

Definition at line 108 of file media.h.

#define MEDIA_PAD_FL_SINK   (1 << 0)

Definition at line 97 of file media.h.

#define MEDIA_PAD_FL_SOURCE   (1 << 1)

Definition at line 98 of file media.h.