Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tvp7002.c File Reference
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/videodev2.h>
#include <linux/module.h>
#include <linux/v4l2-dv-timings.h>
#include <media/tvp7002.h>
#include <media/v4l2-device.h>
#include <media/v4l2-chip-ident.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ctrls.h>
#include "tvp7002_reg.h"

Go to the source code of this file.

Data Structures

struct  i2c_reg_value
 
struct  tvp7002_preset_definition
 
struct  tvp7002
 

Macros

#define TVP7002_MODULE_NAME   "tvp7002"
 
#define I2C_RETRY_COUNT   (5)
 
#define TVP7002_EOR   0x5c
 
#define TVP7002_READ   0
 
#define TVP7002_WRITE   1
 
#define TVP7002_RESERVED   2
 
#define TVP7002_IP_SHIFT   5
 
#define TVP7002_INPR_MASK   (0x01 << TVP7002_IP_SHIFT)
 
#define TVP7002_CL_SHIFT   8
 
#define TVP7002_CL_MASK   0x0f
 
#define NUM_PRESETS   ARRAY_SIZE(tvp7002_presets)
 

Functions

 MODULE_DESCRIPTION ("TI TVP7002 Video and Graphics Digitizer driver")
 
 MODULE_AUTHOR ("Santiago Nunez-Corrales <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 module_param (debug, bool, 0644)
 
 MODULE_PARM_DESC (debug,"Debug level (0-2)")
 
 MODULE_DEVICE_TABLE (i2c, tvp7002_id)
 
 module_i2c_driver (tvp7002_driver)
 

Macro Definition Documentation

#define I2C_RETRY_COUNT   (5)

Definition at line 48 of file tvp7002.c.

#define NUM_PRESETS   ARRAY_SIZE(tvp7002_presets)

Definition at line 423 of file tvp7002.c.

#define TVP7002_CL_MASK   0x0f

Definition at line 64 of file tvp7002.c.

#define TVP7002_CL_SHIFT   8

Definition at line 63 of file tvp7002.c.

#define TVP7002_EOR   0x5c

Definition at line 51 of file tvp7002.c.

#define TVP7002_INPR_MASK   (0x01 << TVP7002_IP_SHIFT)

Definition at line 60 of file tvp7002.c.

#define TVP7002_IP_SHIFT   5

Definition at line 59 of file tvp7002.c.

#define TVP7002_MODULE_NAME   "tvp7002"

Definition at line 45 of file tvp7002.c.

#define TVP7002_READ   0

Definition at line 54 of file tvp7002.c.

#define TVP7002_RESERVED   2

Definition at line 56 of file tvp7002.c.

#define TVP7002_WRITE   1

Definition at line 55 of file tvp7002.c.

Function Documentation

MODULE_AUTHOR ( "Santiago Nunez-Corrales <[email protected]>"  )
MODULE_DESCRIPTION ( "TI TVP7002 Video and Graphics Digitizer driver )
MODULE_DEVICE_TABLE ( i2c  ,
tvp7002_id   
)
module_i2c_driver ( tvp7002_driver  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
bool  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Debug level (0-2)"   
)