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

Go to the source code of this file.

Data Structures

struct  sd
 
struct  ucbus_write_cmd
 
struct  i2c_write_cmd
 
struct  cap_s
 
struct  sensor_s
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MODULE_NAME   "sq930x"
 
#define Generic   0
 
#define Creative_live_motion   1
 
#define SQ930_CTRL_UCBUS_IO   0x0001
 
#define SQ930_CTRL_I2C_IO   0x0002
 
#define SQ930_CTRL_GPIO   0x0005
 
#define SQ930_CTRL_CAP_START   0x0010
 
#define SQ930_CTRL_CAP_STOP   0x0011
 
#define SQ930_CTRL_SET_EXPOSURE   0x001d
 
#define SQ930_CTRL_RESET   0x001e
 
#define SQ930_CTRL_GET_DEV_INFO   0x001f
 
#define SQ930_GPIO_DFL_I2C_SDA   0x0001
 
#define SQ930_GPIO_DFL_I2C_SCL   0x0002
 
#define SQ930_GPIO_RSTBAR   0x0004
 
#define SQ930_GPIO_EXTRA1   0x0040
 
#define SQ930_GPIO_EXTRA2   0x0080
 
#define SQ930_GPIO_POWER   0x0200
 
#define SQ930_GPIO_DFL_LED   0x1000
 
#define ST(sensor, type)
 

Enumerations

enum  sensors {
  CPIA2_SENSOR_410, CPIA2_SENSOR_500, OV9650_SENSOR = 1, S5K83A_SENSOR = 2,
  S5K4AA_SENSOR = 3, MT9M111_SENSOR = 4, PO1030_SENSOR = 5, OV7660_SENSOR = 6,
  SEN_OV2610, SEN_OV2610AE, SEN_OV3610, SEN_OV6620,
  SEN_OV6630, SEN_OV66308AF, SEN_OV7610, SEN_OV7620,
  SEN_OV7620AE, SEN_OV7640, SEN_OV7648, SEN_OV7660,
  SEN_OV7670, SEN_OV76BE, SEN_OV8610, SEN_OV9600,
  SENSOR_OV767x, SENSOR_OV772x, NSENSORS, SENSOR_OV965x,
  SENSOR_OV971x, SENSOR_OV562x, NSENSORS, SENSOR_ADCM1700,
  SENSOR_GC0307, SENSOR_HV7131R, SENSOR_MI0360, SENSOR_MI0360B,
  SENSOR_MO4000, SENSOR_MT9V111, SENSOR_OM6802, SENSOR_OV7630,
  SENSOR_OV7648, SENSOR_OV7660, SENSOR_PO1030, SENSOR_PO2030N,
  SENSOR_SOI768, SENSOR_SP80708, SENSOR_ICX098BQ, SENSOR_LZ24BP,
  SENSOR_MI0360, SENSOR_MT9V111, SENSOR_OV7660, SENSOR_OV9630,
  SENSOR_OM6802, SENSOR_OTHER, SENSOR_TAS5130A, SENSOR_LT168G,
  SENSOR_CX0342, SENSOR_SOI763A, NSENSORS, SENSOR_HV7131R,
  SENSOR_MI0360, SENSOR_MI1310_SOC, SENSOR_MI1320, SENSOR_MI1320_SOC,
  SENSOR_OV7660, SENSOR_OV7670, SENSOR_PO1200, SENSOR_PO3130NC,
  SENSOR_POxxxx, NSENSORS, SENSOR_ADCM2700, SENSOR_CS2102,
  SENSOR_CS2102K, SENSOR_GC0303, SENSOR_GC0305, SENSOR_HDCS2020,
  SENSOR_HV7131B, SENSOR_HV7131R, SENSOR_ICM105A, SENSOR_MC501CB,
  SENSOR_MT9V111_1, SENSOR_MT9V111_3, SENSOR_OV7620, SENSOR_OV7630C,
  SENSOR_PAS106, SENSOR_PAS202B, SENSOR_PB0330, SENSOR_PO2030,
  SENSOR_TAS5130C, SENSOR_MAX
}
 

Functions

 MODULE_AUTHOR ("Jean-Francois Moine <http://moinejf.free.fr>\n""Gerard Klaver <gerard at gkall dot hobby dot nl\n""Sam Revitch <[email protected]>")
 
 MODULE_DESCRIPTION ("GSPCA/SQ930x USB Camera Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (usb, device_table)
 
 module_usb_driver (sd_driver)
 

Macro Definition Documentation

#define Creative_live_motion   1

Definition at line 49 of file sq930x.c.

#define Generic   0

Definition at line 48 of file sq930x.c.

#define MODULE_NAME   "sq930x"

Definition at line 25 of file sq930x.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 23 of file sq930x.c.

#define SQ930_CTRL_CAP_START   0x0010

Definition at line 77 of file sq930x.c.

#define SQ930_CTRL_CAP_STOP   0x0011

Definition at line 78 of file sq930x.c.

#define SQ930_CTRL_GET_DEV_INFO   0x001f

Definition at line 81 of file sq930x.c.

#define SQ930_CTRL_GPIO   0x0005

Definition at line 76 of file sq930x.c.

#define SQ930_CTRL_I2C_IO   0x0002

Definition at line 75 of file sq930x.c.

#define SQ930_CTRL_RESET   0x001e

Definition at line 80 of file sq930x.c.

#define SQ930_CTRL_SET_EXPOSURE   0x001d

Definition at line 79 of file sq930x.c.

#define SQ930_CTRL_UCBUS_IO   0x0001

Definition at line 74 of file sq930x.c.

#define SQ930_GPIO_DFL_I2C_SCL   0x0002

Definition at line 85 of file sq930x.c.

#define SQ930_GPIO_DFL_I2C_SDA   0x0001

Definition at line 84 of file sq930x.c.

#define SQ930_GPIO_DFL_LED   0x1000

Definition at line 91 of file sq930x.c.

#define SQ930_GPIO_EXTRA1   0x0040

Definition at line 87 of file sq930x.c.

#define SQ930_GPIO_EXTRA2   0x0080

Definition at line 88 of file sq930x.c.

#define SQ930_GPIO_POWER   0x0200

Definition at line 90 of file sq930x.c.

#define SQ930_GPIO_RSTBAR   0x0004

Definition at line 86 of file sq930x.c.

#define ST (   sensor,
  type 
)
Value:
.driver_info = (SENSOR_ ## sensor << 8) \
| (type)

Definition at line 1129 of file sq930x.c.

Enumeration Type Documentation

enum sensors
Enumerator:
CPIA2_SENSOR_410 
CPIA2_SENSOR_500 
OV9650_SENSOR 
S5K83A_SENSOR 
S5K4AA_SENSOR 
MT9M111_SENSOR 
PO1030_SENSOR 
OV7660_SENSOR 
SEN_OV2610 
SEN_OV2610AE 
SEN_OV3610 
SEN_OV6620 
SEN_OV6630 
SEN_OV66308AF 
SEN_OV7610 
SEN_OV7620 
SEN_OV7620AE 
SEN_OV7640 
SEN_OV7648 
SEN_OV7660 
SEN_OV7670 
SEN_OV76BE 
SEN_OV8610 
SEN_OV9600 
SENSOR_OV767x 
SENSOR_OV772x 
NSENSORS 
SENSOR_OV965x 
SENSOR_OV971x 
SENSOR_OV562x 
NSENSORS 
SENSOR_ADCM1700 
SENSOR_GC0307 
SENSOR_HV7131R 
SENSOR_MI0360 
SENSOR_MI0360B 
SENSOR_MO4000 
SENSOR_MT9V111 
SENSOR_OM6802 
SENSOR_OV7630 
SENSOR_OV7648 
SENSOR_OV7660 
SENSOR_PO1030 
SENSOR_PO2030N 
SENSOR_SOI768 
SENSOR_SP80708 
SENSOR_ICX098BQ 
SENSOR_LZ24BP 
SENSOR_MI0360 
SENSOR_MT9V111 
SENSOR_OV7660 
SENSOR_OV9630 
SENSOR_OM6802 
SENSOR_OTHER 
SENSOR_TAS5130A 
SENSOR_LT168G 
SENSOR_CX0342 
SENSOR_SOI763A 
NSENSORS 
SENSOR_HV7131R 
SENSOR_MI0360 
SENSOR_MI1310_SOC 
SENSOR_MI1320 
SENSOR_MI1320_SOC 
SENSOR_OV7660 
SENSOR_OV7670 
SENSOR_PO1200 
SENSOR_PO3130NC 
SENSOR_POxxxx 
NSENSORS 
SENSOR_ADCM2700 
SENSOR_CS2102 
SENSOR_CS2102K 
SENSOR_GC0303 
SENSOR_GC0305 
SENSOR_HDCS2020 
SENSOR_HV7131B 
SENSOR_HV7131R 
SENSOR_ICM105A 
SENSOR_MC501CB 
SENSOR_MT9V111_1 
SENSOR_MT9V111_3 
SENSOR_OV7620 
SENSOR_OV7630C 
SENSOR_PAS106 
SENSOR_PAS202B 
SENSOR_PB0330 
SENSOR_PO2030 
SENSOR_TAS5130C 
SENSOR_MAX 

Definition at line 51 of file sq930x.c.

Function Documentation

MODULE_AUTHOR ( )
MODULE_DESCRIPTION ( "GSPCA/SQ930x USB Camera Driver"  )
MODULE_DEVICE_TABLE ( usb  ,
device_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( sd_driver  )