Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
v4l2-int-device.h File Reference
#include <media/v4l2-common.h>

Go to the source code of this file.

Data Structures

struct  v4l2_int_master
 
struct  v4l2_int_ioctl_desc
 
struct  v4l2_int_slave
 
struct  v4l2_int_device
 
struct  v4l2_if_type_bt656
 
struct  v4l2_ifparm
 

Macros

#define V4L2NAMESIZE   32
 
#define V4L2_INT_WRAPPER_0(name)
 
#define V4L2_INT_WRAPPER_1(name, arg_type, asterisk)
 

Typedefs

typedef intv4l2_int_ioctl_func )(struct v4l2_int_device *)
 
typedef intv4l2_int_ioctl_func_0 )(struct v4l2_int_device *)
 
typedef intv4l2_int_ioctl_func_1 )(struct v4l2_int_device *, void *)
 

Enumerations

enum  v4l2_int_type { v4l2_int_type_master = 1, v4l2_int_type_slave }
 
enum  v4l2_power { V4L2_POWER_OFF = 0, V4L2_POWER_ON, V4L2_POWER_STANDBY }
 
enum  v4l2_if_type { V4L2_IF_TYPE_BT656 }
 
enum  v4l2_if_type_bt656_mode {
  V4L2_IF_TYPE_BT656_MODE_NOBT_8BIT, V4L2_IF_TYPE_BT656_MODE_NOBT_10BIT, V4L2_IF_TYPE_BT656_MODE_NOBT_12BIT, V4L2_IF_TYPE_BT656_MODE_BT_8BIT,
  V4L2_IF_TYPE_BT656_MODE_BT_10BIT
}
 
enum  v4l2_int_ioctl_num {
  vidioc_int_enum_fmt_cap_num = 1, vidioc_int_g_fmt_cap_num, vidioc_int_s_fmt_cap_num, vidioc_int_try_fmt_cap_num,
  vidioc_int_queryctrl_num, vidioc_int_g_ctrl_num, vidioc_int_s_ctrl_num, vidioc_int_cropcap_num,
  vidioc_int_g_crop_num, vidioc_int_s_crop_num, vidioc_int_g_parm_num, vidioc_int_s_parm_num,
  vidioc_int_querystd_num, vidioc_int_s_std_num, vidioc_int_s_video_routing_num, vidioc_int_dev_init_num = 1000,
  vidioc_int_dev_exit_num, vidioc_int_s_power_num, vidioc_int_g_priv_num, vidioc_int_g_ifparm_num,
  vidioc_int_g_needs_reset_num, vidioc_int_enum_framesizes_num, vidioc_int_enum_frameintervals_num, vidioc_int_reset_num,
  vidioc_int_init_num, vidioc_int_g_chip_ident_num, vidioc_int_priv_start_num = 2000
}
 

Functions

void v4l2_int_device_try_attach_all (void)
 
int v4l2_int_device_register (struct v4l2_int_device *d)
 
void v4l2_int_device_unregister (struct v4l2_int_device *d)
 
int v4l2_int_ioctl_0 (struct v4l2_int_device *d, int cmd)
 
int v4l2_int_ioctl_1 (struct v4l2_int_device *d, int cmd, void *arg)
 
 V4L2_INT_WRAPPER_1 (enum_fmt_cap, struct v4l2_fmtdesc,*)
 
 V4L2_INT_WRAPPER_1 (g_fmt_cap, struct v4l2_format,*)
 
 V4L2_INT_WRAPPER_1 (s_fmt_cap, struct v4l2_format,*)
 
 V4L2_INT_WRAPPER_1 (try_fmt_cap, struct v4l2_format,*)
 
 V4L2_INT_WRAPPER_1 (queryctrl, struct v4l2_queryctrl,*)
 
 V4L2_INT_WRAPPER_1 (g_ctrl, struct v4l2_control,*)
 
 V4L2_INT_WRAPPER_1 (s_ctrl, struct v4l2_control,*)
 
 V4L2_INT_WRAPPER_1 (cropcap, struct v4l2_cropcap,*)
 
 V4L2_INT_WRAPPER_1 (g_crop, struct v4l2_crop,*)
 
 V4L2_INT_WRAPPER_1 (s_crop, struct v4l2_crop,*)
 
 V4L2_INT_WRAPPER_1 (g_parm, struct v4l2_streamparm,*)
 
 V4L2_INT_WRAPPER_1 (s_parm, struct v4l2_streamparm,*)
 
 V4L2_INT_WRAPPER_1 (querystd, v4l2_std_id,*)
 
 V4L2_INT_WRAPPER_1 (s_std, v4l2_std_id,*)
 
 V4L2_INT_WRAPPER_1 (s_video_routing, struct v4l2_routing,*)
 
 V4L2_INT_WRAPPER_0 (dev_init)
 
 V4L2_INT_WRAPPER_0 (dev_exit)
 
 V4L2_INT_WRAPPER_1 (s_power, enum v4l2_power,)
 
 V4L2_INT_WRAPPER_1 (g_priv, void,*)
 
 V4L2_INT_WRAPPER_1 (g_ifparm, struct v4l2_ifparm,*)
 
 V4L2_INT_WRAPPER_1 (g_needs_reset, void,*)
 
 V4L2_INT_WRAPPER_1 (enum_framesizes, struct v4l2_frmsizeenum,*)
 
 V4L2_INT_WRAPPER_1 (enum_frameintervals, struct v4l2_frmivalenum,*)
 
 V4L2_INT_WRAPPER_0 (reset)
 
 V4L2_INT_WRAPPER_0 (init)
 
 V4L2_INT_WRAPPER_1 (g_chip_ident, int,*)
 

Macro Definition Documentation

#define V4L2_INT_WRAPPER_0 (   name)
Value:
static inline int vidioc_int_##name(struct v4l2_int_device *d) \
{ \
return v4l2_int_ioctl_0(d, vidioc_int_##name##_num); \
} \
\
static inline struct v4l2_int_ioctl_desc \
vidioc_int_##name##_cb(int (*func) \
(struct v4l2_int_device *)) \
{ \
\
desc.num = vidioc_int_##name##_num; \
\
return desc; \
}

Definition at line 240 of file v4l2-int-device.h.

#define V4L2_INT_WRAPPER_1 (   name,
  arg_type,
  asterisk 
)
Value:
static inline int vidioc_int_##name(struct v4l2_int_device *d, \
arg_type asterisk arg) \
{ \
return v4l2_int_ioctl_1(d, vidioc_int_##name##_num, \
(void *)(unsigned long)arg); \
} \
\
static inline struct v4l2_int_ioctl_desc \
vidioc_int_##name##_cb(int (*func) \
(struct v4l2_int_device *, \
arg_type asterisk)) \
{ \
\
desc.num = vidioc_int_##name##_num; \
\
return desc; \
}

Definition at line 258 of file v4l2-int-device.h.

#define V4L2NAMESIZE   32

Definition at line 30 of file v4l2-int-device.h.

Typedef Documentation

typedef int( v4l2_int_ioctl_func)(struct v4l2_int_device *)

Definition at line 52 of file v4l2-int-device.h.

typedef int( v4l2_int_ioctl_func_0)(struct v4l2_int_device *)

Definition at line 53 of file v4l2-int-device.h.

typedef int( v4l2_int_ioctl_func_1)(struct v4l2_int_device *, void *)

Definition at line 54 of file v4l2-int-device.h.

Enumeration Type Documentation

Enumerator:
V4L2_IF_TYPE_BT656 

Definition at line 109 of file v4l2-int-device.h.

Enumerator:
V4L2_IF_TYPE_BT656_MODE_NOBT_8BIT 
V4L2_IF_TYPE_BT656_MODE_NOBT_10BIT 
V4L2_IF_TYPE_BT656_MODE_NOBT_12BIT 
V4L2_IF_TYPE_BT656_MODE_BT_8BIT 
V4L2_IF_TYPE_BT656_MODE_BT_10BIT 

Definition at line 117 of file v4l2-int-device.h.

Enumerator:
vidioc_int_enum_fmt_cap_num 
vidioc_int_g_fmt_cap_num 
vidioc_int_s_fmt_cap_num 
vidioc_int_try_fmt_cap_num 
vidioc_int_queryctrl_num 
vidioc_int_g_ctrl_num 
vidioc_int_s_ctrl_num 
vidioc_int_cropcap_num 
vidioc_int_g_crop_num 
vidioc_int_s_crop_num 
vidioc_int_g_parm_num 
vidioc_int_s_parm_num 
vidioc_int_querystd_num 
vidioc_int_s_std_num 
vidioc_int_s_video_routing_num 
vidioc_int_dev_init_num 
vidioc_int_dev_exit_num 
vidioc_int_s_power_num 
vidioc_int_g_priv_num 
vidioc_int_g_ifparm_num 
vidioc_int_g_needs_reset_num 
vidioc_int_enum_framesizes_num 
vidioc_int_enum_frameintervals_num 
vidioc_int_reset_num 
vidioc_int_init_num 
vidioc_int_g_chip_ident_num 
vidioc_int_priv_start_num 

Definition at line 169 of file v4l2-int-device.h.

Enumerator:
v4l2_int_type_master 
v4l2_int_type_slave 

Definition at line 38 of file v4l2-int-device.h.

enum v4l2_power
Enumerator:
V4L2_POWER_OFF 
V4L2_POWER_ON 
V4L2_POWER_STANDBY 

Definition at line 102 of file v4l2-int-device.h.

Function Documentation

int v4l2_int_device_register ( struct v4l2_int_device d)

Definition at line 85 of file v4l2-int-device.c.

void v4l2_int_device_try_attach_all ( void  )

Definition at line 36 of file v4l2-int-device.c.

void v4l2_int_device_unregister ( struct v4l2_int_device d)

Definition at line 100 of file v4l2-int-device.c.

int v4l2_int_ioctl_0 ( struct v4l2_int_device d,
int  cmd 
)

Definition at line 143 of file v4l2-int-device.c.

int v4l2_int_ioctl_1 ( struct v4l2_int_device d,
int  cmd,
void arg 
)

Definition at line 156 of file v4l2-int-device.c.

V4L2_INT_WRAPPER_0 ( dev_init  )
V4L2_INT_WRAPPER_0 ( dev_exit  )
V4L2_INT_WRAPPER_0 ( reset  )
V4L2_INT_WRAPPER_0 ( init  )
V4L2_INT_WRAPPER_1 ( enum_fmt_cap  ,
struct v4l2_fmtdesc  ,
 
)
V4L2_INT_WRAPPER_1 ( g_fmt_cap  ,
struct v4l2_format  ,
 
)
V4L2_INT_WRAPPER_1 ( s_fmt_cap  ,
struct v4l2_format  ,
 
)
V4L2_INT_WRAPPER_1 ( try_fmt_cap  ,
struct v4l2_format  ,
 
)
V4L2_INT_WRAPPER_1 ( queryctrl  ,
struct v4l2_queryctrl  ,
 
)
V4L2_INT_WRAPPER_1 ( g_ctrl  ,
struct v4l2_control  ,
 
)
V4L2_INT_WRAPPER_1 ( s_ctrl  ,
struct v4l2_control  ,
 
)
V4L2_INT_WRAPPER_1 ( cropcap  ,
struct v4l2_cropcap  ,
 
)
V4L2_INT_WRAPPER_1 ( g_crop  ,
struct v4l2_crop  ,
 
)
V4L2_INT_WRAPPER_1 ( s_crop  ,
struct v4l2_crop  ,
 
)
V4L2_INT_WRAPPER_1 ( g_parm  ,
struct v4l2_streamparm  ,
 
)
V4L2_INT_WRAPPER_1 ( s_parm  ,
struct v4l2_streamparm  ,
 
)
V4L2_INT_WRAPPER_1 ( querystd  ,
v4l2_std_id  ,
 
)
V4L2_INT_WRAPPER_1 ( s_std  ,
v4l2_std_id  ,
 
)
V4L2_INT_WRAPPER_1 ( s_video_routing  ,
struct v4l2_routing  ,
 
)
V4L2_INT_WRAPPER_1 ( s_power  ,
enum  v4l2_power 
)
V4L2_INT_WRAPPER_1 ( g_priv  ,
void  ,
 
)
V4L2_INT_WRAPPER_1 ( g_ifparm  ,
struct v4l2_ifparm  ,
 
)
V4L2_INT_WRAPPER_1 ( g_needs_reset  ,
void  ,
 
)
V4L2_INT_WRAPPER_1 ( enum_framesizes  ,
struct v4l2_frmsizeenum  ,
 
)
V4L2_INT_WRAPPER_1 ( enum_frameintervals  ,
struct v4l2_frmivalenum  ,
 
)
V4L2_INT_WRAPPER_1 ( g_chip_ident  ,
int  ,
 
)