Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pac207.c File Reference
#include <linux/input.h>
#include "gspca.h"
#include "pac_common.h"

Go to the source code of this file.

Data Structures

struct  sd
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MODULE_NAME   "pac207"
 
#define PAC207_CTRL_TIMEOUT   100 /* ms */
 
#define PAC207_BRIGHTNESS_MIN   0
 
#define PAC207_BRIGHTNESS_MAX   255
 
#define PAC207_BRIGHTNESS_DEFAULT   46
 
#define PAC207_BRIGHTNESS_REG   0x08
 
#define PAC207_EXPOSURE_MIN   3
 
#define PAC207_EXPOSURE_MAX   90 /* 1 sec expo time / 1 fps */
 
#define PAC207_EXPOSURE_DEFAULT   5 /* power on default: 3 */
 
#define PAC207_EXPOSURE_REG   0x02
 
#define PAC207_GAIN_MIN   0
 
#define PAC207_GAIN_MAX   31
 
#define PAC207_GAIN_DEFAULT   7 /* power on default: 9 */
 
#define PAC207_GAIN_REG   0x0e
 
#define PAC207_AUTOGAIN_DEADZONE   30
 

Functions

 MODULE_AUTHOR ("Hans de Goede <[email protected]>")
 
 MODULE_DESCRIPTION ("Pixart PAC207")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (usb, device_table)
 
 module_usb_driver (sd_driver)
 

Macro Definition Documentation

#define MODULE_NAME   "pac207"

Definition at line 28 of file pac207.c.

#define PAC207_AUTOGAIN_DEADZONE   30

Definition at line 56 of file pac207.c.

#define PAC207_BRIGHTNESS_DEFAULT   46

Definition at line 43 of file pac207.c.

#define PAC207_BRIGHTNESS_MAX   255

Definition at line 42 of file pac207.c.

#define PAC207_BRIGHTNESS_MIN   0

Definition at line 41 of file pac207.c.

#define PAC207_BRIGHTNESS_REG   0x08

Definition at line 44 of file pac207.c.

#define PAC207_CTRL_TIMEOUT   100 /* ms */

Definition at line 39 of file pac207.c.

#define PAC207_EXPOSURE_DEFAULT   5 /* power on default: 3 */

Definition at line 48 of file pac207.c.

#define PAC207_EXPOSURE_MAX   90 /* 1 sec expo time / 1 fps */

Definition at line 47 of file pac207.c.

#define PAC207_EXPOSURE_MIN   3

Definition at line 46 of file pac207.c.

#define PAC207_EXPOSURE_REG   0x02

Definition at line 49 of file pac207.c.

#define PAC207_GAIN_DEFAULT   7 /* power on default: 9 */

Definition at line 53 of file pac207.c.

#define PAC207_GAIN_MAX   31

Definition at line 52 of file pac207.c.

#define PAC207_GAIN_MIN   0

Definition at line 51 of file pac207.c.

#define PAC207_GAIN_REG   0x0e

Definition at line 54 of file pac207.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 26 of file pac207.c.

Function Documentation

MODULE_AUTHOR ( "Hans de Goede <[email protected]>"  )
MODULE_DESCRIPTION ( "Pixart PAC207"  )
MODULE_DEVICE_TABLE ( usb  ,
device_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( sd_driver  )