Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
v4l2-subdev.h File Reference
#include <linux/types.h>
#include <linux/v4l2-subdev.h>
#include <media/media-entity.h>
#include <media/v4l2-common.h>
#include <media/v4l2-dev.h>
#include <media/v4l2-fh.h>
#include <media/v4l2-mediabus.h>

Go to the source code of this file.

Data Structures

struct  v4l2_decode_vbi_line
 
struct  v4l2_subdev_io_pin_config
 
struct  v4l2_subdev_core_ops
 
struct  v4l2_subdev_tuner_ops
 
struct  v4l2_subdev_audio_ops
 
struct  v4l2_mbus_frame_desc_entry
 
struct  v4l2_mbus_frame_desc
 
struct  v4l2_subdev_video_ops
 
struct  v4l2_subdev_vbi_ops
 
struct  v4l2_subdev_sensor_ops
 
struct  v4l2_subdev_ir_parameters
 
struct  v4l2_subdev_ir_ops
 
struct  v4l2_subdev_pad_ops
 
struct  v4l2_subdev_ops
 
struct  v4l2_subdev_internal_ops
 
struct  v4l2_subdev
 
struct  v4l2_subdev_fh
 

Macros

#define V4L2_SUBDEV_IR_RX_NOTIFY   _IOW('v', 0, u32)
 
#define V4L2_SUBDEV_IR_RX_FIFO_SERVICE_REQ   0x00000001
 
#define V4L2_SUBDEV_IR_RX_END_OF_RX_DETECTED   0x00000002
 
#define V4L2_SUBDEV_IR_RX_HW_FIFO_OVERRUN   0x00000004
 
#define V4L2_SUBDEV_IR_RX_SW_FIFO_OVERRUN   0x00000008
 
#define V4L2_SUBDEV_IR_TX_NOTIFY   _IOW('v', 1, u32)
 
#define V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ   0x00000001
 
#define V4L2_SUBDEV_IO_PIN_DISABLE   (1 << 0) /* ENABLE assumed */
 
#define V4L2_SUBDEV_IO_PIN_OUTPUT   (1 << 1)
 
#define V4L2_SUBDEV_IO_PIN_INPUT   (1 << 2)
 
#define V4L2_SUBDEV_IO_PIN_SET_VALUE   (1 << 3) /* Set output value */
 
#define V4L2_SUBDEV_IO_PIN_ACTIVE_LOW   (1 << 4) /* ACTIVE HIGH assumed */
 
#define V4L2_MBUS_FRAME_DESC_FL_LEN_MAX   (1U << 0)
 
#define V4L2_MBUS_FRAME_DESC_FL_BLOB   (1U << 1)
 
#define V4L2_FRAME_DESC_ENTRY_MAX   4
 
#define V4L2_SUBDEV_NAME_SIZE   32
 
#define V4L2_SUBDEV_FL_IS_I2C   (1U << 0)
 
#define V4L2_SUBDEV_FL_IS_SPI   (1U << 1)
 
#define V4L2_SUBDEV_FL_HAS_DEVNODE   (1U << 2)
 
#define V4L2_SUBDEV_FL_HAS_EVENTS   (1U << 3)
 
#define media_entity_to_v4l2_subdev(ent)   container_of(ent, struct v4l2_subdev, entity)
 
#define vdev_to_v4l2_subdev(vdev)   ((struct v4l2_subdev *)video_get_drvdata(vdev))
 
#define to_v4l2_subdev_fh(fh)   container_of(fh, struct v4l2_subdev_fh, vfh)
 
#define v4l2_subdev_call(sd, o, f, args...)
 
#define v4l2_subdev_notify(sd, notification, arg)
 

Enumerations

enum  v4l2_subdev_ir_mode { V4L2_SUBDEV_IR_MODE_PULSE_WIDTH }
 

Functions

void v4l2_subdev_init (struct v4l2_subdev *sd, const struct v4l2_subdev_ops *ops)
 

Variables

struct v4l2_file_operations v4l2_subdev_fops
 

Macro Definition Documentation

#define media_entity_to_v4l2_subdev (   ent)    container_of(ent, struct v4l2_subdev, entity)

Definition at line 606 of file v4l2-subdev.h.

#define to_v4l2_subdev_fh (   fh)    container_of(fh, struct v4l2_subdev_fh, vfh)

Definition at line 625 of file v4l2-subdev.h.

#define V4L2_FRAME_DESC_ENTRY_MAX   4

Definition at line 249 of file v4l2-subdev.h.

#define V4L2_MBUS_FRAME_DESC_FL_BLOB   (1U << 1)

Definition at line 234 of file v4l2-subdev.h.

#define V4L2_MBUS_FRAME_DESC_FL_LEN_MAX   (1U << 0)

Definition at line 232 of file v4l2-subdev.h.

#define v4l2_subdev_call (   sd,
  o,
  f,
  args... 
)
Value:
(!(sd) ? -ENODEV : (((sd)->ops->o && (sd)->ops->o->f) ? \
(sd)->ops->o->f((sd) , ##args) : -ENOIOCTLCMD))

Definition at line 681 of file v4l2-subdev.h.

#define V4L2_SUBDEV_FL_HAS_DEVNODE   (1U << 2)

Definition at line 575 of file v4l2-subdev.h.

#define V4L2_SUBDEV_FL_HAS_EVENTS   (1U << 3)

Definition at line 577 of file v4l2-subdev.h.

#define V4L2_SUBDEV_FL_IS_I2C   (1U << 0)

Definition at line 571 of file v4l2-subdev.h.

#define V4L2_SUBDEV_FL_IS_SPI   (1U << 1)

Definition at line 573 of file v4l2-subdev.h.

#define V4L2_SUBDEV_IO_PIN_ACTIVE_LOW   (1 << 4) /* ACTIVE HIGH assumed */

Definition at line 108 of file v4l2-subdev.h.

#define V4L2_SUBDEV_IO_PIN_DISABLE   (1 << 0) /* ENABLE assumed */

Definition at line 104 of file v4l2-subdev.h.

#define V4L2_SUBDEV_IO_PIN_INPUT   (1 << 2)

Definition at line 106 of file v4l2-subdev.h.

#define V4L2_SUBDEV_IO_PIN_OUTPUT   (1 << 1)

Definition at line 105 of file v4l2-subdev.h.

#define V4L2_SUBDEV_IO_PIN_SET_VALUE   (1 << 3) /* Set output value */

Definition at line 107 of file v4l2-subdev.h.

#define V4L2_SUBDEV_IR_RX_END_OF_RX_DETECTED   0x00000002

Definition at line 35 of file v4l2-subdev.h.

#define V4L2_SUBDEV_IR_RX_FIFO_SERVICE_REQ   0x00000001

Definition at line 34 of file v4l2-subdev.h.

#define V4L2_SUBDEV_IR_RX_HW_FIFO_OVERRUN   0x00000004

Definition at line 36 of file v4l2-subdev.h.

#define V4L2_SUBDEV_IR_RX_NOTIFY   _IOW('v', 0, u32)

Definition at line 33 of file v4l2-subdev.h.

#define V4L2_SUBDEV_IR_RX_SW_FIFO_OVERRUN   0x00000008

Definition at line 37 of file v4l2-subdev.h.

#define V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ   0x00000001

Definition at line 40 of file v4l2-subdev.h.

#define V4L2_SUBDEV_IR_TX_NOTIFY   _IOW('v', 1, u32)

Definition at line 39 of file v4l2-subdev.h.

#define V4L2_SUBDEV_NAME_SIZE   32

Definition at line 568 of file v4l2-subdev.h.

#define v4l2_subdev_notify (   sd,
  notification,
  arg 
)
Value:
((!(sd) || !(sd)->v4l2_dev || !(sd)->v4l2_dev->notify) ? -ENODEV : \
(sd)->v4l2_dev->notify((sd), (notification), (arg)))

Definition at line 686 of file v4l2-subdev.h.

#define vdev_to_v4l2_subdev (   vdev)    ((struct v4l2_subdev *)video_get_drvdata(vdev))

Definition at line 608 of file v4l2-subdev.h.

Enumeration Type Documentation

Enumerator:
V4L2_SUBDEV_IR_MODE_PULSE_WIDTH 

Definition at line 447 of file v4l2-subdev.h.

Function Documentation

void v4l2_subdev_init ( struct v4l2_subdev sd,
const struct v4l2_subdev_ops ops 
)

Definition at line 460 of file v4l2-subdev.c.

Variable Documentation

struct v4l2_file_operations v4l2_subdev_fops

Definition at line 388 of file v4l2-subdev.c.