Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
w9966.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/videodev2.h>
#include <linux/slab.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-device.h>
#include <media/v4l2-fh.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-event.h>
#include <linux/parport.h>

Go to the source code of this file.

Data Structures

struct  w9966
 

Macros

#define DPRINTF(x...)
 
#define W9966_DRIVERNAME   "W9966CF Webcam"
 
#define W9966_MAXCAMS   4 /* Maximum number of cameras */
 
#define W9966_RBUFFER   2048 /* Read buffer (must be an even number) */
 
#define W9966_SRAMSIZE   131072 /* 128kb */
 
#define W9966_SRAMID   0x02 /* check w9966cf.pdf */
 
#define W9966_WND_MIN_X   16
 
#define W9966_WND_MIN_Y   14
 
#define W9966_WND_MAX_X   705
 
#define W9966_WND_MAX_Y   253
 
#define W9966_WND_MAX_W   (W9966_WND_MAX_X - W9966_WND_MIN_X)
 
#define W9966_WND_MAX_H   (W9966_WND_MAX_Y - W9966_WND_MIN_Y)
 
#define W9966_STATE_PDEV   0x01
 
#define W9966_STATE_CLAIMED   0x02
 
#define W9966_STATE_VDEV   0x04
 
#define W9966_I2C_W_ID   0x48
 
#define W9966_I2C_R_ID   0x49
 
#define W9966_I2C_R_DATA   0x08
 
#define W9966_I2C_R_CLOCK   0x04
 
#define W9966_I2C_W_DATA   0x02
 
#define W9966_I2C_W_CLOCK   0x01
 

Functions

 MODULE_AUTHOR ("Jakob Kemi <[email protected]>")
 
 MODULE_DESCRIPTION ("Winbond w9966cf WebCam driver (0.32)")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION ("0.33.1")
 
 module_param_array (pardev, charp, NULL, 0)
 
 MODULE_PARM_DESC (pardev,"pardev: where to search for\n""\teach camera. 'aggressive' means brute-force search.\n""\tEg: >pardev=parport3,aggressive,parport2,parport1< would assign\n""\tcam 1 to parport3 and search every parport for cam 2 etc...")
 
 module_param (parmode, int, 0)
 
 MODULE_PARM_DESC (parmode,"parmode: transfer mode (0=auto, 1=ecp, 2=epp")
 
 module_param (video_nr, int, 0)
 
 module_init (w9966_mod_init)
 
 module_exit (w9966_mod_term)
 

Macro Definition Documentation

#define DPRINTF (   x...)

Definition at line 75 of file w9966.c.

#define W9966_DRIVERNAME   "W9966CF Webcam"

Definition at line 82 of file w9966.c.

#define W9966_I2C_R_CLOCK   0x04

Definition at line 104 of file w9966.c.

#define W9966_I2C_R_DATA   0x08

Definition at line 103 of file w9966.c.

#define W9966_I2C_R_ID   0x49

Definition at line 102 of file w9966.c.

#define W9966_I2C_W_CLOCK   0x01

Definition at line 106 of file w9966.c.

#define W9966_I2C_W_DATA   0x02

Definition at line 105 of file w9966.c.

#define W9966_I2C_W_ID   0x48

Definition at line 101 of file w9966.c.

#define W9966_MAXCAMS   4 /* Maximum number of cameras */

Definition at line 83 of file w9966.c.

#define W9966_RBUFFER   2048 /* Read buffer (must be an even number) */

Definition at line 84 of file w9966.c.

#define W9966_SRAMID   0x02 /* check w9966cf.pdf */

Definition at line 86 of file w9966.c.

#define W9966_SRAMSIZE   131072 /* 128kb */

Definition at line 85 of file w9966.c.

#define W9966_STATE_CLAIMED   0x02

Definition at line 98 of file w9966.c.

#define W9966_STATE_PDEV   0x01

Definition at line 97 of file w9966.c.

#define W9966_STATE_VDEV   0x04

Definition at line 99 of file w9966.c.

#define W9966_WND_MAX_H   (W9966_WND_MAX_Y - W9966_WND_MIN_Y)

Definition at line 94 of file w9966.c.

#define W9966_WND_MAX_W   (W9966_WND_MAX_X - W9966_WND_MIN_X)

Definition at line 93 of file w9966.c.

#define W9966_WND_MAX_X   705

Definition at line 91 of file w9966.c.

#define W9966_WND_MAX_Y   253

Definition at line 92 of file w9966.c.

#define W9966_WND_MIN_X   16

Definition at line 89 of file w9966.c.

#define W9966_WND_MIN_Y   14

Definition at line 90 of file w9966.c.

Function Documentation

MODULE_AUTHOR ( "Jakob Kemi <[email protected]>"  )
MODULE_DESCRIPTION ( "Winbond w9966cf WebCam driver (0.32)"  )
module_exit ( w9966_mod_term  )
module_init ( w9966_mod_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( parmode  ,
int  ,
 
)
module_param ( video_nr  ,
int  ,
 
)
module_param_array ( pardev  ,
charp  ,
NULL  ,
 
)
MODULE_PARM_DESC ( pardev  ,
"pardev: where to search for\n""\teach camera. 'aggressive' means brute-force search.\n""\tEg:   ,
pardev  = parport3,
aggressive  ,
parport2   
)
MODULE_PARM_DESC ( parmode  )
MODULE_VERSION ( "0.33.1"  )