Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mt9v011.c File Reference
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/videodev2.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <asm/div64.h>
#include <media/v4l2-device.h>
#include <media/v4l2-chip-ident.h>
#include <media/mt9v011.h>

Go to the source code of this file.

Data Structures

struct  mt9v011
 
struct  i2c_reg_value
 

Macros

#define R00_MT9V011_CHIP_VERSION   0x00
 
#define R01_MT9V011_ROWSTART   0x01
 
#define R02_MT9V011_COLSTART   0x02
 
#define R03_MT9V011_HEIGHT   0x03
 
#define R04_MT9V011_WIDTH   0x04
 
#define R05_MT9V011_HBLANK   0x05
 
#define R06_MT9V011_VBLANK   0x06
 
#define R07_MT9V011_OUT_CTRL   0x07
 
#define R09_MT9V011_SHUTTER_WIDTH   0x09
 
#define R0A_MT9V011_CLK_SPEED   0x0a
 
#define R0B_MT9V011_RESTART   0x0b
 
#define R0C_MT9V011_SHUTTER_DELAY   0x0c
 
#define R0D_MT9V011_RESET   0x0d
 
#define R1E_MT9V011_DIGITAL_ZOOM   0x1e
 
#define R20_MT9V011_READ_MODE   0x20
 
#define R2B_MT9V011_GREEN_1_GAIN   0x2b
 
#define R2C_MT9V011_BLUE_GAIN   0x2c
 
#define R2D_MT9V011_RED_GAIN   0x2d
 
#define R2E_MT9V011_GREEN_2_GAIN   0x2e
 
#define R35_MT9V011_GLOBAL_GAIN   0x35
 
#define RF1_MT9V011_CHIP_ENABLE   0xf1
 
#define MT9V011_VERSION   0x8232
 
#define MT9V011_REV_B_VERSION   0x8243
 

Functions

 MODULE_DESCRIPTION ("Micron mt9v011 sensor driver")
 
 MODULE_AUTHOR ("Mauro Carvalho Chehab <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 module_param (debug, int, 0)
 
 MODULE_PARM_DESC (debug,"Debug level (0-2)")
 
 MODULE_DEVICE_TABLE (i2c, mt9v011_id)
 
 module_i2c_driver (mt9v011_driver)
 

Macro Definition Documentation

#define MT9V011_REV_B_VERSION   0x8243

Definition at line 49 of file mt9v011.c.

#define MT9V011_VERSION   0x8232

Definition at line 48 of file mt9v011.c.

#define R00_MT9V011_CHIP_VERSION   0x00

Definition at line 26 of file mt9v011.c.

#define R01_MT9V011_ROWSTART   0x01

Definition at line 27 of file mt9v011.c.

#define R02_MT9V011_COLSTART   0x02

Definition at line 28 of file mt9v011.c.

#define R03_MT9V011_HEIGHT   0x03

Definition at line 29 of file mt9v011.c.

#define R04_MT9V011_WIDTH   0x04

Definition at line 30 of file mt9v011.c.

#define R05_MT9V011_HBLANK   0x05

Definition at line 31 of file mt9v011.c.

#define R06_MT9V011_VBLANK   0x06

Definition at line 32 of file mt9v011.c.

#define R07_MT9V011_OUT_CTRL   0x07

Definition at line 33 of file mt9v011.c.

#define R09_MT9V011_SHUTTER_WIDTH   0x09

Definition at line 34 of file mt9v011.c.

#define R0A_MT9V011_CLK_SPEED   0x0a

Definition at line 35 of file mt9v011.c.

#define R0B_MT9V011_RESTART   0x0b

Definition at line 36 of file mt9v011.c.

#define R0C_MT9V011_SHUTTER_DELAY   0x0c

Definition at line 37 of file mt9v011.c.

#define R0D_MT9V011_RESET   0x0d

Definition at line 38 of file mt9v011.c.

#define R1E_MT9V011_DIGITAL_ZOOM   0x1e

Definition at line 39 of file mt9v011.c.

#define R20_MT9V011_READ_MODE   0x20

Definition at line 40 of file mt9v011.c.

#define R2B_MT9V011_GREEN_1_GAIN   0x2b

Definition at line 41 of file mt9v011.c.

#define R2C_MT9V011_BLUE_GAIN   0x2c

Definition at line 42 of file mt9v011.c.

#define R2D_MT9V011_RED_GAIN   0x2d

Definition at line 43 of file mt9v011.c.

#define R2E_MT9V011_GREEN_2_GAIN   0x2e

Definition at line 44 of file mt9v011.c.

#define R35_MT9V011_GLOBAL_GAIN   0x35

Definition at line 45 of file mt9v011.c.

#define RF1_MT9V011_CHIP_ENABLE   0xf1

Definition at line 46 of file mt9v011.c.

Function Documentation

MODULE_AUTHOR ( "Mauro Carvalho Chehab <[email protected]>"  )
MODULE_DESCRIPTION ( "Micron mt9v011 sensor driver )
MODULE_DEVICE_TABLE ( i2c  ,
mt9v011_id   
)
module_i2c_driver ( mt9v011_driver  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
 
)
MODULE_PARM_DESC ( debug  ,
"Debug level (0-2)"   
)