Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mr97310a.c File Reference
#include "gspca.h"
#include "pac_common.h"

Go to the source code of this file.

Data Structures

struct  sd
 
struct  sensor_w_data
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MODULE_NAME   "mr97310a"
 
#define CAM_TYPE_CIF   0
 
#define CAM_TYPE_VGA   1
 
#define MR97310A_BRIGHTNESS_DEFAULT   0
 
#define MR97310A_EXPOSURE_MIN   0
 
#define MR97310A_EXPOSURE_MAX   4095
 
#define MR97310A_EXPOSURE_DEFAULT   1000
 
#define MR97310A_GAIN_MIN   0
 
#define MR97310A_GAIN_MAX   31
 
#define MR97310A_GAIN_DEFAULT   25
 
#define MR97310A_CONTRAST_MIN   0
 
#define MR97310A_CONTRAST_MAX   31
 
#define MR97310A_CONTRAST_DEFAULT   23
 
#define MR97310A_CS_GAIN_MIN   0
 
#define MR97310A_CS_GAIN_MAX   0x7ff
 
#define MR97310A_CS_GAIN_DEFAULT   0x110
 
#define MR97310A_CID_CLOCKDIV   (V4L2_CTRL_CLASS_USER + 0x1000)
 
#define MR97310A_MIN_CLOCKDIV_MIN   3
 
#define MR97310A_MIN_CLOCKDIV_MAX   8
 
#define MR97310A_MIN_CLOCKDIV_DEFAULT   3
 

Functions

 MODULE_AUTHOR ("Kyle Guinn <[email protected]>,""Theodore Kilgore <[email protected]>")
 
 MODULE_DESCRIPTION ("GSPCA/Mars-Semi MR97310A USB Camera Driver")
 
 MODULE_LICENSE ("GPL")
 
 module_param (force_sensor_type, int, 0644)
 
 MODULE_PARM_DESC (force_sensor_type,"Force sensor type (-1 (auto), 0 or 1)")
 
 MODULE_DEVICE_TABLE (usb, device_table)
 
 module_usb_driver (sd_driver)
 

Macro Definition Documentation

#define CAM_TYPE_CIF   0

Definition at line 49 of file mr97310a.c.

#define CAM_TYPE_VGA   1

Definition at line 50 of file mr97310a.c.

#define MODULE_NAME   "mr97310a"

Definition at line 45 of file mr97310a.c.

#define MR97310A_BRIGHTNESS_DEFAULT   0

Definition at line 52 of file mr97310a.c.

#define MR97310A_CID_CLOCKDIV   (V4L2_CTRL_CLASS_USER + 0x1000)

Definition at line 70 of file mr97310a.c.

#define MR97310A_CONTRAST_DEFAULT   23

Definition at line 64 of file mr97310a.c.

#define MR97310A_CONTRAST_MAX   31

Definition at line 63 of file mr97310a.c.

#define MR97310A_CONTRAST_MIN   0

Definition at line 62 of file mr97310a.c.

#define MR97310A_CS_GAIN_DEFAULT   0x110

Definition at line 68 of file mr97310a.c.

#define MR97310A_CS_GAIN_MAX   0x7ff

Definition at line 67 of file mr97310a.c.

#define MR97310A_CS_GAIN_MIN   0

Definition at line 66 of file mr97310a.c.

#define MR97310A_EXPOSURE_DEFAULT   1000

Definition at line 56 of file mr97310a.c.

#define MR97310A_EXPOSURE_MAX   4095

Definition at line 55 of file mr97310a.c.

#define MR97310A_EXPOSURE_MIN   0

Definition at line 54 of file mr97310a.c.

#define MR97310A_GAIN_DEFAULT   25

Definition at line 60 of file mr97310a.c.

#define MR97310A_GAIN_MAX   31

Definition at line 59 of file mr97310a.c.

#define MR97310A_GAIN_MIN   0

Definition at line 58 of file mr97310a.c.

#define MR97310A_MIN_CLOCKDIV_DEFAULT   3

Definition at line 73 of file mr97310a.c.

#define MR97310A_MIN_CLOCKDIV_MAX   8

Definition at line 72 of file mr97310a.c.

#define MR97310A_MIN_CLOCKDIV_MIN   3

Definition at line 71 of file mr97310a.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 43 of file mr97310a.c.

Function Documentation

MODULE_AUTHOR ( "Kyle Guinn <[email protected] ,
""Theodore Kilgore< kilgota @auburn.edu >"   
)
MODULE_DESCRIPTION ( "GSPCA/Mars-Semi MR97310A USB Camera Driver"  )
MODULE_DEVICE_TABLE ( usb  ,
device_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( force_sensor_type  ,
int  ,
0644   
)
MODULE_PARM_DESC ( force_sensor_type  ,
"Force sensor type (-1 (auto), 0 or 1)"   
)
module_usb_driver ( sd_driver  )