Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cpia2_v4l.c File Reference
#include <linux/module.h>
#include <linux/time.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/videodev2.h>
#include <linux/stringify.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-event.h>
#include "cpia2.h"

Go to the source code of this file.

Data Structures

struct  framerate_info
 

Macros

#define CPIA_VERSION   "3.0.1"
 
#define ABOUT   "V4L-Driver for Vision CPiA2 based cameras"
 
#define CPIA2_CID_USB_ALT   (V4L2_CID_USER_BASE | 0xf000)
 

Functions

 module_param (video_nr, int, 0)
 
 MODULE_PARM_DESC (video_nr,"video device to register (0=/dev/video0, etc)")
 
 module_param (buffer_size, int, 0)
 
 MODULE_PARM_DESC (buffer_size,"Size for each frame buffer in bytes (default 68k)")
 
 module_param (num_buffers, int, 0)
 
 MODULE_PARM_DESC (num_buffers,"Number of frame buffers (1-"__stringify(VIDEO_MAX_FRAME)", default 3)")
 
 module_param (alternate, int, 0)
 
 MODULE_PARM_DESC (alternate,"USB Alternate ("__stringify(USBIF_ISO_1)"-"__stringify(USBIF_ISO_6)", default "__stringify(DEFAULT_ALT)")")
 
 module_param (flicker_mode, int, 0)
 
 MODULE_PARM_DESC (flicker_mode,"Flicker frequency (0 (disabled), "__stringify(50)" or "__stringify(60)", default 0)")
 
 MODULE_AUTHOR ("Steve Miller (STMicroelectronics) <[email protected]>")
 
 MODULE_DESCRIPTION ("V4L-driver for STMicroelectronics CPiA2 based cameras")
 
 MODULE_SUPPORTED_DEVICE ("video")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (CPIA_VERSION)
 
void cpia2_camera_release (struct v4l2_device *v4l2_dev)
 
int cpia2_register_camera (struct camera_data *cam)
 
void cpia2_unregister_camera (struct camera_data *cam)
 
 module_init (cpia2_init)
 
 module_exit (cpia2_exit)
 

Macro Definition Documentation

#define ABOUT   "V4L-Driver for Vision CPiA2 based cameras"

Definition at line 76 of file cpia2_v4l.c.

#define CPIA2_CID_USB_ALT   (V4L2_CID_USER_BASE | 0xf000)

Definition at line 77 of file cpia2_v4l.c.

#define CPIA_VERSION   "3.0.1"

Definition at line 32 of file cpia2_v4l.c.

Function Documentation

void cpia2_camera_release ( struct v4l2_device v4l2_dev)

Definition at line 1087 of file cpia2_v4l.c.

int cpia2_register_camera ( struct camera_data cam)

Definition at line 1106 of file cpia2_v4l.c.

void cpia2_unregister_camera ( struct camera_data cam)

Definition at line 1187 of file cpia2_v4l.c.

MODULE_AUTHOR ( "Steve Miller (STMicroelectronics) <[email protected]>"  )
MODULE_DESCRIPTION ( "V4L-driver for STMicroelectronics CPiA2 based cameras"  )
module_exit ( cpia2_exit  )
module_init ( cpia2_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( video_nr  ,
int  ,
 
)
module_param ( buffer_size  ,
int  ,
 
)
module_param ( num_buffers  ,
int  ,
 
)
module_param ( alternate  ,
int  ,
 
)
module_param ( flicker_mode  ,
int  ,
 
)
MODULE_PARM_DESC ( video_nr  ,
"video device to register (0=/dev/video0, etc)"   
)
MODULE_PARM_DESC ( buffer_size  ,
"Size for each frame buffer in bytes (default 68k)"   
)
MODULE_PARM_DESC ( num_buffers  ,
"Number of frame buffers (1-"__stringify(VIDEO_MAX_FRAME)", default 3)"   
)
MODULE_PARM_DESC ( alternate  ,
"USB Alternate ("__stringify(USBIF_ISO_1)"-"__stringify(USBIF_ISO_6)", default "__stringify(DEFAULT_ALT)")"   
)
MODULE_PARM_DESC ( flicker_mode  ,
"Flicker frequency (0 (disabled), "__stringify(50)" or "__stringify(60)", default 0)"   
)
MODULE_SUPPORTED_DEVICE ( "video"  )
MODULE_VERSION ( CPIA_VERSION  )

Variable Documentation

u32 height

Definition at line 574 of file cpia2_v4l.c.

u32 width

Definition at line 573 of file cpia2_v4l.c.