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

Go to the source code of this file.

Data Structures

struct  sd
 
struct  sensor_data
 

Macros

#define MODULE_NAME   "sonixb"
 
#define BRIDGE_101   0
 
#define BRIDGE_102   0 /* We make no difference between 101 and 102 */
 
#define BRIDGE_103   1
 
#define SENSOR_HV7131D   0
 
#define SENSOR_HV7131R   1
 
#define SENSOR_OV6650   2
 
#define SENSOR_OV7630   3
 
#define SENSOR_PAS106   4
 
#define SENSOR_PAS202   5
 
#define SENSOR_TAS5110C   6
 
#define SENSOR_TAS5110D   7
 
#define SENSOR_TAS5130CXX   8
 
#define F_SIF   0x01 /* sif or vga */
 
#define MODE_RAW   0x10 /* raw bayer mode */
 
#define MODE_REDUCED_SIF   0x20 /* vga mode (320x240 / 160x120) on sif cam */
 
#define COMP   0xc7 /* 0x87 //0x07 */
 
#define COMP1   0xc9 /* 0x89 //0x09 */
 
#define MCK_INIT   0x63
 
#define MCK_INIT1   0x20 /*fixme: Bayer - 0x50 for JPEG ??*/
 
#define SYS_CLK   0x04
 
#define SENS(bridge, sensor, _flags, _sensor_addr)
 
#define AUTOGAIN_IGNORE_FRAMES   1
 
#define SB(sensor, bridge)   .driver_info = (SENSOR_ ## sensor << 8) | BRIDGE_ ## bridge
 

Typedefs

typedef const __u8 sensor_init_t [8]
 

Functions

 MODULE_AUTHOR ("Jean-François Moine <http://moinejf.free.fr>")
 
 MODULE_DESCRIPTION ("GSPCA/SN9C102 USB Camera Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (usb, device_table)
 
 module_usb_driver (sd_driver)
 

Macro Definition Documentation

#define AUTOGAIN_IGNORE_FRAMES   1

Definition at line 130 of file sonixb.c.

#define BRIDGE_101   0

Definition at line 76 of file sonixb.c.

#define BRIDGE_102   0 /* We make no difference between 101 and 102 */

Definition at line 77 of file sonixb.c.

#define BRIDGE_103   1

Definition at line 78 of file sonixb.c.

#define COMP   0xc7 /* 0x87 //0x07 */

Definition at line 110 of file sonixb.c.

#define COMP1   0xc9 /* 0x89 //0x09 */

Definition at line 111 of file sonixb.c.

#define F_SIF   0x01 /* sif or vga */

Definition at line 104 of file sonixb.c.

#define MCK_INIT   0x63

Definition at line 113 of file sonixb.c.

#define MCK_INIT1   0x20 /*fixme: Bayer - 0x50 for JPEG ??*/

Definition at line 114 of file sonixb.c.

#define MODE_RAW   0x10 /* raw bayer mode */

Definition at line 107 of file sonixb.c.

#define MODE_REDUCED_SIF   0x20 /* vga mode (320x240 / 160x120) on sif cam */

Definition at line 108 of file sonixb.c.

#define MODULE_NAME   "sonixb"

Definition at line 50 of file sonixb.c.

#define SB (   sensor,
  bridge 
)    .driver_info = (SENSOR_ ## sensor << 8) | BRIDGE_ ## bridge

Definition at line 1436 of file sonixb.c.

#define SENS (   bridge,
  sensor,
  _flags,
  _sensor_addr 
)
Value:
{ \
.bridge_init = bridge, \
.sensor_init = sensor, \
.sensor_init_size = sizeof(sensor), \
.flags = _flags, .sensor_addr = _sensor_addr \
}

Definition at line 118 of file sonixb.c.

#define SENSOR_HV7131D   0

Definition at line 81 of file sonixb.c.

#define SENSOR_HV7131R   1

Definition at line 82 of file sonixb.c.

#define SENSOR_OV6650   2

Definition at line 83 of file sonixb.c.

#define SENSOR_OV7630   3

Definition at line 84 of file sonixb.c.

#define SENSOR_PAS106   4

Definition at line 85 of file sonixb.c.

#define SENSOR_PAS202   5

Definition at line 86 of file sonixb.c.

#define SENSOR_TAS5110C   6

Definition at line 87 of file sonixb.c.

#define SENSOR_TAS5110D   7

Definition at line 88 of file sonixb.c.

#define SENSOR_TAS5130CXX   8

Definition at line 89 of file sonixb.c.

#define SYS_CLK   0x04

Definition at line 116 of file sonixb.c.

Typedef Documentation

typedef const __u8 sensor_init_t[8]

Definition at line 93 of file sonixb.c.

Function Documentation

MODULE_AUTHOR ( "Jean-François Moine <http://moinejf.free.fr>"  )
MODULE_DESCRIPTION ( "GSPCA/SN9C102 USB Camera Driver"  )
MODULE_DEVICE_TABLE ( usb  ,
device_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( sd_driver  )