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

Go to the source code of this file.

Data Structures

struct  sd
 
struct  cmd
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define JPEG_QT0_OFFSET   7
 
#define JPEG_QT1_OFFSET   72
 
#define JPEG_HEIGHT_OFFSET   493
 
#define JPEG_HDR_SZ   521
 
#define AG_CNT_START   13 /* check gain every N frames */
 
#define BULK_OUT_SIZE   0x20
 
#define TP6800_R10_SIF_TYPE   0x10
 
#define TP6800_R11_SIF_CONTROL   0x11
 
#define TP6800_R12_SIF_ADDR_S   0x12
 
#define TP6800_R13_SIF_TX_DATA   0x13
 
#define TP6800_R14_SIF_RX_DATA   0x14
 
#define TP6800_R15_GPIO_PU   0x15
 
#define TP6800_R16_GPIO_PD   0x16
 
#define TP6800_R17_GPIO_IO   0x17
 
#define TP6800_R18_GPIO_DATA   0x18
 
#define TP6800_R19_SIF_ADDR_S2   0x19
 
#define TP6800_R1A_SIF_TX_DATA2   0x1a
 
#define TP6800_R1B_SIF_RX_DATA2   0x1b
 
#define TP6800_R21_ENDP_1_CTL   0x21
 
#define TP6800_R2F_TIMING_CFG   0x2f
 
#define TP6800_R30_SENSOR_CFG   0x30
 
#define TP6800_R31_PIXEL_START   0x31
 
#define TP6800_R32_PIXEL_END_L   0x32
 
#define TP6800_R33_PIXEL_END_H   0x33
 
#define TP6800_R34_LINE_START   0x34
 
#define TP6800_R35_LINE_END_L   0x35
 
#define TP6800_R36_LINE_END_H   0x36
 
#define TP6800_R37_FRONT_DARK_ST   0x37
 
#define TP6800_R38_FRONT_DARK_END   0x38
 
#define TP6800_R39_REAR_DARK_ST_L   0x39
 
#define TP6800_R3A_REAR_DARK_ST_H   0x3a
 
#define TP6800_R3B_REAR_DARK_END_L   0x3b
 
#define TP6800_R3C_REAR_DARK_END_H   0x3c
 
#define TP6800_R3D_HORIZ_DARK_LINE_L   0x3d
 
#define TP6800_R3E_HORIZ_DARK_LINE_H   0x3e
 
#define TP6800_R3F_FRAME_RATE   0x3f
 
#define TP6800_R50   0x50
 
#define TP6800_R51   0x51
 
#define TP6800_R52   0x52
 
#define TP6800_R53   0x53
 
#define TP6800_R54_DARK_CFG   0x54
 
#define TP6800_R55_GAMMA_R   0x55
 
#define TP6800_R56_GAMMA_G   0x56
 
#define TP6800_R57_GAMMA_B   0x57
 
#define TP6800_R5C_EDGE_THRLD   0x5c
 
#define TP6800_R5D_DEMOSAIC_CFG   0x5d
 
#define TP6800_R78_FORMAT   0x78
 
#define TP6800_R79_QUALITY   0x79
 
#define TP6800_R7A_BLK_THRLD   0x7a
 
#define CX0342_SENSOR_ID   0x00
 
#define CX0342_VERSION_NO   0x01
 
#define CX0342_ORG_X_L   0x02
 
#define CX0342_ORG_X_H   0x03
 
#define CX0342_ORG_Y_L   0x04
 
#define CX0342_ORG_Y_H   0x05
 
#define CX0342_STOP_X_L   0x06
 
#define CX0342_STOP_X_H   0x07
 
#define CX0342_STOP_Y_L   0x08
 
#define CX0342_STOP_Y_H   0x09
 
#define CX0342_FRAME_WIDTH_L   0x0a
 
#define CX0342_FRAME_WIDTH_H   0x0b
 
#define CX0342_FRAME_HEIGH_L   0x0c
 
#define CX0342_FRAME_HEIGH_H   0x0d
 
#define CX0342_EXPO_LINE_L   0x10
 
#define CX0342_EXPO_LINE_H   0x11
 
#define CX0342_EXPO_CLK_L   0x12
 
#define CX0342_EXPO_CLK_H   0x13
 
#define CX0342_RAW_GRGAIN_L   0x14
 
#define CX0342_RAW_GRGAIN_H   0x15
 
#define CX0342_RAW_GBGAIN_L   0x16
 
#define CX0342_RAW_GBGAIN_H   0x17
 
#define CX0342_RAW_RGAIN_L   0x18
 
#define CX0342_RAW_RGAIN_H   0x19
 
#define CX0342_RAW_BGAIN_L   0x1a
 
#define CX0342_RAW_BGAIN_H   0x1b
 
#define CX0342_GLOBAL_GAIN   0x1c
 
#define CX0342_SYS_CTRL_0   0x20
 
#define CX0342_SYS_CTRL_1   0x21
 
#define CX0342_SYS_CTRL_2   0x22
 
#define CX0342_BYPASS_MODE   0x23
 
#define CX0342_SYS_CTRL_3   0x24
 
#define CX0342_TIMING_EN   0x25
 
#define CX0342_OUTPUT_CTRL   0x26
 
#define CX0342_AUTO_ADC_CALIB   0x27
 
#define CX0342_SYS_CTRL_4   0x28
 
#define CX0342_ADCGN   0x30
 
#define CX0342_SLPCR   0x31
 
#define CX0342_SLPFN_LO   0x32
 
#define CX0342_ADC_CTL   0x33
 
#define CX0342_LVRST_BLBIAS   0x34
 
#define CX0342_VTHSEL   0x35
 
#define CX0342_RAMP_RIV   0x36
 
#define CX0342_LDOSEL   0x37
 
#define CX0342_CLOCK_GEN   0x40
 
#define CX0342_SOFT_RESET   0x41
 
#define CX0342_PLL   0x42
 
#define CX0342_DR_ENH_PULSE_OFFSET_L   0x43
 
#define CX0342_DR_ENH_PULSE_OFFSET_H   0x44
 
#define CX0342_DR_ENH_PULSE_POS_L   0x45
 
#define CX0342_DR_ENH_PULSE_POS_H   0x46
 
#define CX0342_DR_ENH_PULSE_WIDTH   0x47
 
#define CX0342_AS_CURRENT_CNT_L   0x48
 
#define CX0342_AS_CURRENT_CNT_H   0x49
 
#define CX0342_AS_PREVIOUS_CNT_L   0x4a
 
#define CX0342_AS_PREVIOUS_CNT_H   0x4b
 
#define CX0342_SPV_VALUE_L   0x4c
 
#define CX0342_SPV_VALUE_H   0x4d
 
#define CX0342_GPXLTHD_L   0x50
 
#define CX0342_GPXLTHD_H   0x51
 
#define CX0342_RBPXLTHD_L   0x52
 
#define CX0342_RBPXLTHD_H   0x53
 
#define CX0342_PLANETHD_L   0x54
 
#define CX0342_PLANETHD_H   0x55
 
#define CX0342_ROWDARK_TH   0x56
 
#define CX0342_ROWDARK_TOL   0x57
 
#define CX0342_RB_GAP_L   0x58
 
#define CX0342_RB_GAP_H   0x59
 
#define CX0342_G_GAP_L   0x5a
 
#define CX0342_G_GAP_H   0x5b
 
#define CX0342_AUTO_ROW_DARK   0x60
 
#define CX0342_MANUAL_DARK_VALUE   0x61
 
#define CX0342_GB_DARK_OFFSET   0x62
 
#define CX0342_GR_DARK_OFFSET   0x63
 
#define CX0342_RED_DARK_OFFSET   0x64
 
#define CX0342_BLUE_DARK_OFFSET   0x65
 
#define CX0342_DATA_SCALING_MULTI   0x66
 
#define CX0342_AUTOD_Q_FRAME   0x67
 
#define CX0342_AUTOD_ALLOW_VARI   0x68
 
#define CX0342_AUTO_DARK_VALUE_L   0x69
 
#define CX0342_AUTO_DARK_VALUE_H   0x6a
 
#define CX0342_IO_CTRL_0   0x70
 
#define CX0342_IO_CTRL_1   0x71
 
#define CX0342_IO_CTRL_2   0x72
 
#define CX0342_IDLE_CTRL   0x73
 
#define CX0342_TEST_MODE   0x74
 
#define CX0342_FRAME_FIX_DATA_TEST   0x75
 
#define CX0342_FRAME_CNT_TEST   0x76
 
#define CX0342_RST_OVERFLOW_L   0x80
 
#define CX0342_RST_OVERFLOW_H   0x81
 
#define CX0342_RST_UNDERFLOW_L   0x82
 
#define CX0342_RST_UNDERFLOW_H   0x83
 
#define CX0342_DATA_OVERFLOW_L   0x84
 
#define CX0342_DATA_OVERFLOW_H   0x85
 
#define CX0342_DATA_UNDERFLOW_L   0x86
 
#define CX0342_DATA_UNDERFLOW_H   0x87
 
#define CX0342_CHANNEL_0_0_L_irst   0x90
 
#define CX0342_CHANNEL_0_0_H_irst   0x91
 
#define CX0342_CHANNEL_0_1_L_irst   0x92
 
#define CX0342_CHANNEL_0_1_H_irst   0x93
 
#define CX0342_CHANNEL_0_2_L_irst   0x94
 
#define CX0342_CHANNEL_0_2_H_irst   0x95
 
#define CX0342_CHANNEL_0_3_L_irst   0x96
 
#define CX0342_CHANNEL_0_3_H_irst   0x97
 
#define CX0342_CHANNEL_0_4_L_irst   0x98
 
#define CX0342_CHANNEL_0_4_H_irst   0x99
 
#define CX0342_CHANNEL_0_5_L_irst   0x9a
 
#define CX0342_CHANNEL_0_5_H_irst   0x9b
 
#define CX0342_CHANNEL_0_6_L_irst   0x9c
 
#define CX0342_CHANNEL_0_6_H_irst   0x9d
 
#define CX0342_CHANNEL_0_7_L_irst   0x9e
 
#define CX0342_CHANNEL_0_7_H_irst   0x9f
 
#define CX0342_CHANNEL_1_0_L_itx   0xa0
 
#define CX0342_CHANNEL_1_0_H_itx   0xa1
 
#define CX0342_CHANNEL_1_1_L_itx   0xa2
 
#define CX0342_CHANNEL_1_1_H_itx   0xa3
 
#define CX0342_CHANNEL_1_2_L_itx   0xa4
 
#define CX0342_CHANNEL_1_2_H_itx   0xa5
 
#define CX0342_CHANNEL_1_3_L_itx   0xa6
 
#define CX0342_CHANNEL_1_3_H_itx   0xa7
 
#define CX0342_CHANNEL_1_4_L_itx   0xa8
 
#define CX0342_CHANNEL_1_4_H_itx   0xa9
 
#define CX0342_CHANNEL_1_5_L_itx   0xaa
 
#define CX0342_CHANNEL_1_5_H_itx   0xab
 
#define CX0342_CHANNEL_1_6_L_itx   0xac
 
#define CX0342_CHANNEL_1_6_H_itx   0xad
 
#define CX0342_CHANNEL_1_7_L_itx   0xae
 
#define CX0342_CHANNEL_1_7_H_itx   0xaf
 
#define CX0342_CHANNEL_2_0_L_iwl   0xb0
 
#define CX0342_CHANNEL_2_0_H_iwl   0xb1
 
#define CX0342_CHANNEL_2_1_L_iwl   0xb2
 
#define CX0342_CHANNEL_2_1_H_iwl   0xb3
 
#define CX0342_CHANNEL_2_2_L_iwl   0xb4
 
#define CX0342_CHANNEL_2_2_H_iwl   0xb5
 
#define CX0342_CHANNEL_2_3_L_iwl   0xb6
 
#define CX0342_CHANNEL_2_3_H_iwl   0xb7
 
#define CX0342_CHANNEL_2_4_L_iwl   0xb8
 
#define CX0342_CHANNEL_2_4_H_iwl   0xb9
 
#define CX0342_CHANNEL_2_5_L_iwl   0xba
 
#define CX0342_CHANNEL_2_5_H_iwl   0xbb
 
#define CX0342_CHANNEL_2_6_L_iwl   0xbc
 
#define CX0342_CHANNEL_2_6_H_iwl   0xbd
 
#define CX0342_CHANNEL_2_7_L_iwl   0xbe
 
#define CX0342_CHANNEL_2_7_H_iwl   0xbf
 
#define CX0342_CHANNEL_3_0_L_ensp   0xc0
 
#define CX0342_CHANNEL_3_0_H_ensp   0xc1
 
#define CX0342_CHANNEL_3_1_L_ensp   0xc2
 
#define CX0342_CHANNEL_3_1_H_ensp   0xc3
 
#define CX0342_CHANNEL_3_2_L_ensp   0xc4
 
#define CX0342_CHANNEL_3_2_H_ensp   0xc5
 
#define CX0342_CHANNEL_3_3_L_ensp   0xc6
 
#define CX0342_CHANNEL_3_3_H_ensp   0xc7
 
#define CX0342_CHANNEL_3_4_L_ensp   0xc8
 
#define CX0342_CHANNEL_3_4_H_ensp   0xc9
 
#define CX0342_CHANNEL_3_5_L_ensp   0xca
 
#define CX0342_CHANNEL_3_5_H_ensp   0xcb
 
#define CX0342_CHANNEL_3_6_L_ensp   0xcc
 
#define CX0342_CHANNEL_3_6_H_ensp   0xcd
 
#define CX0342_CHANNEL_3_7_L_ensp   0xce
 
#define CX0342_CHANNEL_3_7_H_ensp   0xcf
 
#define CX0342_CHANNEL_4_0_L_sela   0xd0
 
#define CX0342_CHANNEL_4_0_H_sela   0xd1
 
#define CX0342_CHANNEL_4_1_L_sela   0xd2
 
#define CX0342_CHANNEL_4_1_H_sela   0xd3
 
#define CX0342_CHANNEL_5_0_L_intla   0xe0
 
#define CX0342_CHANNEL_5_0_H_intla   0xe1
 
#define CX0342_CHANNEL_5_1_L_intla   0xe2
 
#define CX0342_CHANNEL_5_1_H_intla   0xe3
 
#define CX0342_CHANNEL_5_2_L_intla   0xe4
 
#define CX0342_CHANNEL_5_2_H_intla   0xe5
 
#define CX0342_CHANNEL_5_3_L_intla   0xe6
 
#define CX0342_CHANNEL_5_3_H_intla   0xe7
 
#define CX0342_CHANNEL_6_0_L_xa_sel_pos   0xf0
 
#define CX0342_CHANNEL_6_0_H_xa_sel_pos   0xf1
 
#define CX0342_CHANNEL_7_1_L_cds_pos   0xf2
 
#define CX0342_CHANNEL_7_1_H_cds_pos   0xf3
 
#define CX0342_SENSOR_HEIGHT_L   0xfb
 
#define CX0342_SENSOR_HEIGHT_H   0xfc
 
#define CX0342_SENSOR_WIDTH_L   0xfd
 
#define CX0342_SENSOR_WIDTH_H   0xfe
 
#define CX0342_VSYNC_HSYNC_READ   0xff
 
#define NGAMMA   6
 

Enumerations

enum  bridges {
  BRIDGE_NW800, BRIDGE_NW801, BRIDGE_NW802, BRIDGE_TP6800,
  BRIDGE_TP6810, BRIDGE_VC0321, BRIDGE_VC0323, BRIDGE_ZC301,
  BRIDGE_ZC303
}
 
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_DESCRIPTION ("Topro TP6800/6810 gspca webcam driver")
 
 MODULE_AUTHOR ("Jean-Francois Moine <http://moinejf.free.fr>, ""Anders Blomdell <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (usb, device_table)
 
 module_usb_driver (sd_driver)
 
 module_param (force_sensor, int, 0644)
 
 MODULE_PARM_DESC (force_sensor,"Force sensor. 0: cx0342, 1: soi763a")
 

Macro Definition Documentation

#define AG_CNT_START   13 /* check gain every N frames */

Definition at line 134 of file topro.c.

#define BULK_OUT_SIZE   0x20

Definition at line 173 of file topro.c.

#define CX0342_ADC_CTL   0x33

Definition at line 292 of file topro.c.

#define CX0342_ADCGN   0x30

Definition at line 289 of file topro.c.

#define CX0342_AS_CURRENT_CNT_H   0x49

Definition at line 306 of file topro.c.

#define CX0342_AS_CURRENT_CNT_L   0x48

Definition at line 305 of file topro.c.

#define CX0342_AS_PREVIOUS_CNT_H   0x4b

Definition at line 308 of file topro.c.

#define CX0342_AS_PREVIOUS_CNT_L   0x4a

Definition at line 307 of file topro.c.

#define CX0342_AUTO_ADC_CALIB   0x27

Definition at line 287 of file topro.c.

#define CX0342_AUTO_DARK_VALUE_H   0x6a

Definition at line 333 of file topro.c.

#define CX0342_AUTO_DARK_VALUE_L   0x69

Definition at line 332 of file topro.c.

#define CX0342_AUTO_ROW_DARK   0x60

Definition at line 323 of file topro.c.

#define CX0342_AUTOD_ALLOW_VARI   0x68

Definition at line 331 of file topro.c.

#define CX0342_AUTOD_Q_FRAME   0x67

Definition at line 330 of file topro.c.

#define CX0342_BLUE_DARK_OFFSET   0x65

Definition at line 328 of file topro.c.

#define CX0342_BYPASS_MODE   0x23

Definition at line 283 of file topro.c.

#define CX0342_CHANNEL_0_0_H_irst   0x91

Definition at line 350 of file topro.c.

#define CX0342_CHANNEL_0_0_L_irst   0x90

Definition at line 349 of file topro.c.

#define CX0342_CHANNEL_0_1_H_irst   0x93

Definition at line 352 of file topro.c.

#define CX0342_CHANNEL_0_1_L_irst   0x92

Definition at line 351 of file topro.c.

#define CX0342_CHANNEL_0_2_H_irst   0x95

Definition at line 354 of file topro.c.

#define CX0342_CHANNEL_0_2_L_irst   0x94

Definition at line 353 of file topro.c.

#define CX0342_CHANNEL_0_3_H_irst   0x97

Definition at line 356 of file topro.c.

#define CX0342_CHANNEL_0_3_L_irst   0x96

Definition at line 355 of file topro.c.

#define CX0342_CHANNEL_0_4_H_irst   0x99

Definition at line 358 of file topro.c.

#define CX0342_CHANNEL_0_4_L_irst   0x98

Definition at line 357 of file topro.c.

#define CX0342_CHANNEL_0_5_H_irst   0x9b

Definition at line 360 of file topro.c.

#define CX0342_CHANNEL_0_5_L_irst   0x9a

Definition at line 359 of file topro.c.

#define CX0342_CHANNEL_0_6_H_irst   0x9d

Definition at line 362 of file topro.c.

#define CX0342_CHANNEL_0_6_L_irst   0x9c

Definition at line 361 of file topro.c.

#define CX0342_CHANNEL_0_7_H_irst   0x9f

Definition at line 364 of file topro.c.

#define CX0342_CHANNEL_0_7_L_irst   0x9e

Definition at line 363 of file topro.c.

#define CX0342_CHANNEL_1_0_H_itx   0xa1

Definition at line 366 of file topro.c.

#define CX0342_CHANNEL_1_0_L_itx   0xa0

Definition at line 365 of file topro.c.

#define CX0342_CHANNEL_1_1_H_itx   0xa3

Definition at line 368 of file topro.c.

#define CX0342_CHANNEL_1_1_L_itx   0xa2

Definition at line 367 of file topro.c.

#define CX0342_CHANNEL_1_2_H_itx   0xa5

Definition at line 370 of file topro.c.

#define CX0342_CHANNEL_1_2_L_itx   0xa4

Definition at line 369 of file topro.c.

#define CX0342_CHANNEL_1_3_H_itx   0xa7

Definition at line 372 of file topro.c.

#define CX0342_CHANNEL_1_3_L_itx   0xa6

Definition at line 371 of file topro.c.

#define CX0342_CHANNEL_1_4_H_itx   0xa9

Definition at line 374 of file topro.c.

#define CX0342_CHANNEL_1_4_L_itx   0xa8

Definition at line 373 of file topro.c.

#define CX0342_CHANNEL_1_5_H_itx   0xab

Definition at line 376 of file topro.c.

#define CX0342_CHANNEL_1_5_L_itx   0xaa

Definition at line 375 of file topro.c.

#define CX0342_CHANNEL_1_6_H_itx   0xad

Definition at line 378 of file topro.c.

#define CX0342_CHANNEL_1_6_L_itx   0xac

Definition at line 377 of file topro.c.

#define CX0342_CHANNEL_1_7_H_itx   0xaf

Definition at line 380 of file topro.c.

#define CX0342_CHANNEL_1_7_L_itx   0xae

Definition at line 379 of file topro.c.

#define CX0342_CHANNEL_2_0_H_iwl   0xb1

Definition at line 382 of file topro.c.

#define CX0342_CHANNEL_2_0_L_iwl   0xb0

Definition at line 381 of file topro.c.

#define CX0342_CHANNEL_2_1_H_iwl   0xb3

Definition at line 384 of file topro.c.

#define CX0342_CHANNEL_2_1_L_iwl   0xb2

Definition at line 383 of file topro.c.

#define CX0342_CHANNEL_2_2_H_iwl   0xb5

Definition at line 386 of file topro.c.

#define CX0342_CHANNEL_2_2_L_iwl   0xb4

Definition at line 385 of file topro.c.

#define CX0342_CHANNEL_2_3_H_iwl   0xb7

Definition at line 388 of file topro.c.

#define CX0342_CHANNEL_2_3_L_iwl   0xb6

Definition at line 387 of file topro.c.

#define CX0342_CHANNEL_2_4_H_iwl   0xb9

Definition at line 390 of file topro.c.

#define CX0342_CHANNEL_2_4_L_iwl   0xb8

Definition at line 389 of file topro.c.

#define CX0342_CHANNEL_2_5_H_iwl   0xbb

Definition at line 392 of file topro.c.

#define CX0342_CHANNEL_2_5_L_iwl   0xba

Definition at line 391 of file topro.c.

#define CX0342_CHANNEL_2_6_H_iwl   0xbd

Definition at line 394 of file topro.c.

#define CX0342_CHANNEL_2_6_L_iwl   0xbc

Definition at line 393 of file topro.c.

#define CX0342_CHANNEL_2_7_H_iwl   0xbf

Definition at line 396 of file topro.c.

#define CX0342_CHANNEL_2_7_L_iwl   0xbe

Definition at line 395 of file topro.c.

#define CX0342_CHANNEL_3_0_H_ensp   0xc1

Definition at line 398 of file topro.c.

#define CX0342_CHANNEL_3_0_L_ensp   0xc0

Definition at line 397 of file topro.c.

#define CX0342_CHANNEL_3_1_H_ensp   0xc3

Definition at line 400 of file topro.c.

#define CX0342_CHANNEL_3_1_L_ensp   0xc2

Definition at line 399 of file topro.c.

#define CX0342_CHANNEL_3_2_H_ensp   0xc5

Definition at line 402 of file topro.c.

#define CX0342_CHANNEL_3_2_L_ensp   0xc4

Definition at line 401 of file topro.c.

#define CX0342_CHANNEL_3_3_H_ensp   0xc7

Definition at line 404 of file topro.c.

#define CX0342_CHANNEL_3_3_L_ensp   0xc6

Definition at line 403 of file topro.c.

#define CX0342_CHANNEL_3_4_H_ensp   0xc9

Definition at line 406 of file topro.c.

#define CX0342_CHANNEL_3_4_L_ensp   0xc8

Definition at line 405 of file topro.c.

#define CX0342_CHANNEL_3_5_H_ensp   0xcb

Definition at line 408 of file topro.c.

#define CX0342_CHANNEL_3_5_L_ensp   0xca

Definition at line 407 of file topro.c.

#define CX0342_CHANNEL_3_6_H_ensp   0xcd

Definition at line 410 of file topro.c.

#define CX0342_CHANNEL_3_6_L_ensp   0xcc

Definition at line 409 of file topro.c.

#define CX0342_CHANNEL_3_7_H_ensp   0xcf

Definition at line 412 of file topro.c.

#define CX0342_CHANNEL_3_7_L_ensp   0xce

Definition at line 411 of file topro.c.

#define CX0342_CHANNEL_4_0_H_sela   0xd1

Definition at line 414 of file topro.c.

#define CX0342_CHANNEL_4_0_L_sela   0xd0

Definition at line 413 of file topro.c.

#define CX0342_CHANNEL_4_1_H_sela   0xd3

Definition at line 416 of file topro.c.

#define CX0342_CHANNEL_4_1_L_sela   0xd2

Definition at line 415 of file topro.c.

#define CX0342_CHANNEL_5_0_H_intla   0xe1

Definition at line 418 of file topro.c.

#define CX0342_CHANNEL_5_0_L_intla   0xe0

Definition at line 417 of file topro.c.

#define CX0342_CHANNEL_5_1_H_intla   0xe3

Definition at line 420 of file topro.c.

#define CX0342_CHANNEL_5_1_L_intla   0xe2

Definition at line 419 of file topro.c.

#define CX0342_CHANNEL_5_2_H_intla   0xe5

Definition at line 422 of file topro.c.

#define CX0342_CHANNEL_5_2_L_intla   0xe4

Definition at line 421 of file topro.c.

#define CX0342_CHANNEL_5_3_H_intla   0xe7

Definition at line 424 of file topro.c.

#define CX0342_CHANNEL_5_3_L_intla   0xe6

Definition at line 423 of file topro.c.

#define CX0342_CHANNEL_6_0_H_xa_sel_pos   0xf1

Definition at line 426 of file topro.c.

#define CX0342_CHANNEL_6_0_L_xa_sel_pos   0xf0

Definition at line 425 of file topro.c.

#define CX0342_CHANNEL_7_1_H_cds_pos   0xf3

Definition at line 428 of file topro.c.

#define CX0342_CHANNEL_7_1_L_cds_pos   0xf2

Definition at line 427 of file topro.c.

#define CX0342_CLOCK_GEN   0x40

Definition at line 297 of file topro.c.

#define CX0342_DATA_OVERFLOW_H   0x85

Definition at line 346 of file topro.c.

#define CX0342_DATA_OVERFLOW_L   0x84

Definition at line 345 of file topro.c.

#define CX0342_DATA_SCALING_MULTI   0x66

Definition at line 329 of file topro.c.

#define CX0342_DATA_UNDERFLOW_H   0x87

Definition at line 348 of file topro.c.

#define CX0342_DATA_UNDERFLOW_L   0x86

Definition at line 347 of file topro.c.

#define CX0342_DR_ENH_PULSE_OFFSET_H   0x44

Definition at line 301 of file topro.c.

#define CX0342_DR_ENH_PULSE_OFFSET_L   0x43

Definition at line 300 of file topro.c.

#define CX0342_DR_ENH_PULSE_POS_H   0x46

Definition at line 303 of file topro.c.

#define CX0342_DR_ENH_PULSE_POS_L   0x45

Definition at line 302 of file topro.c.

#define CX0342_DR_ENH_PULSE_WIDTH   0x47

Definition at line 304 of file topro.c.

#define CX0342_EXPO_CLK_H   0x13

Definition at line 270 of file topro.c.

#define CX0342_EXPO_CLK_L   0x12

Definition at line 269 of file topro.c.

#define CX0342_EXPO_LINE_H   0x11

Definition at line 268 of file topro.c.

#define CX0342_EXPO_LINE_L   0x10

Definition at line 267 of file topro.c.

#define CX0342_FRAME_CNT_TEST   0x76

Definition at line 340 of file topro.c.

#define CX0342_FRAME_FIX_DATA_TEST   0x75

Definition at line 339 of file topro.c.

#define CX0342_FRAME_HEIGH_H   0x0d

Definition at line 266 of file topro.c.

#define CX0342_FRAME_HEIGH_L   0x0c

Definition at line 265 of file topro.c.

#define CX0342_FRAME_WIDTH_H   0x0b

Definition at line 264 of file topro.c.

#define CX0342_FRAME_WIDTH_L   0x0a

Definition at line 263 of file topro.c.

#define CX0342_G_GAP_H   0x5b

Definition at line 322 of file topro.c.

#define CX0342_G_GAP_L   0x5a

Definition at line 321 of file topro.c.

#define CX0342_GB_DARK_OFFSET   0x62

Definition at line 325 of file topro.c.

#define CX0342_GLOBAL_GAIN   0x1c

Definition at line 279 of file topro.c.

#define CX0342_GPXLTHD_H   0x51

Definition at line 312 of file topro.c.

#define CX0342_GPXLTHD_L   0x50

Definition at line 311 of file topro.c.

#define CX0342_GR_DARK_OFFSET   0x63

Definition at line 326 of file topro.c.

#define CX0342_IDLE_CTRL   0x73

Definition at line 337 of file topro.c.

#define CX0342_IO_CTRL_0   0x70

Definition at line 334 of file topro.c.

#define CX0342_IO_CTRL_1   0x71

Definition at line 335 of file topro.c.

#define CX0342_IO_CTRL_2   0x72

Definition at line 336 of file topro.c.

#define CX0342_LDOSEL   0x37

Definition at line 296 of file topro.c.

#define CX0342_LVRST_BLBIAS   0x34

Definition at line 293 of file topro.c.

#define CX0342_MANUAL_DARK_VALUE   0x61

Definition at line 324 of file topro.c.

#define CX0342_ORG_X_H   0x03

Definition at line 256 of file topro.c.

#define CX0342_ORG_X_L   0x02

Definition at line 255 of file topro.c.

#define CX0342_ORG_Y_H   0x05

Definition at line 258 of file topro.c.

#define CX0342_ORG_Y_L   0x04

Definition at line 257 of file topro.c.

#define CX0342_OUTPUT_CTRL   0x26

Definition at line 286 of file topro.c.

#define CX0342_PLANETHD_H   0x55

Definition at line 316 of file topro.c.

#define CX0342_PLANETHD_L   0x54

Definition at line 315 of file topro.c.

#define CX0342_PLL   0x42

Definition at line 299 of file topro.c.

#define CX0342_RAMP_RIV   0x36

Definition at line 295 of file topro.c.

#define CX0342_RAW_BGAIN_H   0x1b

Definition at line 278 of file topro.c.

#define CX0342_RAW_BGAIN_L   0x1a

Definition at line 277 of file topro.c.

#define CX0342_RAW_GBGAIN_H   0x17

Definition at line 274 of file topro.c.

#define CX0342_RAW_GBGAIN_L   0x16

Definition at line 273 of file topro.c.

#define CX0342_RAW_GRGAIN_H   0x15

Definition at line 272 of file topro.c.

#define CX0342_RAW_GRGAIN_L   0x14

Definition at line 271 of file topro.c.

#define CX0342_RAW_RGAIN_H   0x19

Definition at line 276 of file topro.c.

#define CX0342_RAW_RGAIN_L   0x18

Definition at line 275 of file topro.c.

#define CX0342_RB_GAP_H   0x59

Definition at line 320 of file topro.c.

#define CX0342_RB_GAP_L   0x58

Definition at line 319 of file topro.c.

#define CX0342_RBPXLTHD_H   0x53

Definition at line 314 of file topro.c.

#define CX0342_RBPXLTHD_L   0x52

Definition at line 313 of file topro.c.

#define CX0342_RED_DARK_OFFSET   0x64

Definition at line 327 of file topro.c.

#define CX0342_ROWDARK_TH   0x56

Definition at line 317 of file topro.c.

#define CX0342_ROWDARK_TOL   0x57

Definition at line 318 of file topro.c.

#define CX0342_RST_OVERFLOW_H   0x81

Definition at line 342 of file topro.c.

#define CX0342_RST_OVERFLOW_L   0x80

Definition at line 341 of file topro.c.

#define CX0342_RST_UNDERFLOW_H   0x83

Definition at line 344 of file topro.c.

#define CX0342_RST_UNDERFLOW_L   0x82

Definition at line 343 of file topro.c.

#define CX0342_SENSOR_HEIGHT_H   0xfc

Definition at line 430 of file topro.c.

#define CX0342_SENSOR_HEIGHT_L   0xfb

Definition at line 429 of file topro.c.

#define CX0342_SENSOR_ID   0x00

Definition at line 253 of file topro.c.

#define CX0342_SENSOR_WIDTH_H   0xfe

Definition at line 432 of file topro.c.

#define CX0342_SENSOR_WIDTH_L   0xfd

Definition at line 431 of file topro.c.

#define CX0342_SLPCR   0x31

Definition at line 290 of file topro.c.

#define CX0342_SLPFN_LO   0x32

Definition at line 291 of file topro.c.

#define CX0342_SOFT_RESET   0x41

Definition at line 298 of file topro.c.

#define CX0342_SPV_VALUE_H   0x4d

Definition at line 310 of file topro.c.

#define CX0342_SPV_VALUE_L   0x4c

Definition at line 309 of file topro.c.

#define CX0342_STOP_X_H   0x07

Definition at line 260 of file topro.c.

#define CX0342_STOP_X_L   0x06

Definition at line 259 of file topro.c.

#define CX0342_STOP_Y_H   0x09

Definition at line 262 of file topro.c.

#define CX0342_STOP_Y_L   0x08

Definition at line 261 of file topro.c.

#define CX0342_SYS_CTRL_0   0x20

Definition at line 280 of file topro.c.

#define CX0342_SYS_CTRL_1   0x21

Definition at line 281 of file topro.c.

#define CX0342_SYS_CTRL_2   0x22

Definition at line 282 of file topro.c.

#define CX0342_SYS_CTRL_3   0x24

Definition at line 284 of file topro.c.

#define CX0342_SYS_CTRL_4   0x28

Definition at line 288 of file topro.c.

#define CX0342_TEST_MODE   0x74

Definition at line 338 of file topro.c.

#define CX0342_TIMING_EN   0x25

Definition at line 285 of file topro.c.

#define CX0342_VERSION_NO   0x01

Definition at line 254 of file topro.c.

#define CX0342_VSYNC_HSYNC_READ   0xff

Definition at line 433 of file topro.c.

#define CX0342_VTHSEL   0x35

Definition at line 294 of file topro.c.

#define JPEG_HDR_SZ   521
#define JPEG_HEIGHT_OFFSET   493
#define JPEG_QT0_OFFSET   7
#define JPEG_QT1_OFFSET   72
#define NGAMMA   6
#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 22 of file topro.c.

#define TP6800_R10_SIF_TYPE   0x10

Definition at line 207 of file topro.c.

#define TP6800_R11_SIF_CONTROL   0x11

Definition at line 208 of file topro.c.

#define TP6800_R12_SIF_ADDR_S   0x12

Definition at line 209 of file topro.c.

#define TP6800_R13_SIF_TX_DATA   0x13

Definition at line 210 of file topro.c.

#define TP6800_R14_SIF_RX_DATA   0x14

Definition at line 211 of file topro.c.

#define TP6800_R15_GPIO_PU   0x15

Definition at line 212 of file topro.c.

#define TP6800_R16_GPIO_PD   0x16

Definition at line 213 of file topro.c.

#define TP6800_R17_GPIO_IO   0x17

Definition at line 214 of file topro.c.

#define TP6800_R18_GPIO_DATA   0x18

Definition at line 215 of file topro.c.

#define TP6800_R19_SIF_ADDR_S2   0x19

Definition at line 216 of file topro.c.

#define TP6800_R1A_SIF_TX_DATA2   0x1a

Definition at line 217 of file topro.c.

#define TP6800_R1B_SIF_RX_DATA2   0x1b

Definition at line 218 of file topro.c.

#define TP6800_R21_ENDP_1_CTL   0x21

Definition at line 219 of file topro.c.

#define TP6800_R2F_TIMING_CFG   0x2f

Definition at line 220 of file topro.c.

#define TP6800_R30_SENSOR_CFG   0x30

Definition at line 221 of file topro.c.

#define TP6800_R31_PIXEL_START   0x31

Definition at line 222 of file topro.c.

#define TP6800_R32_PIXEL_END_L   0x32

Definition at line 223 of file topro.c.

#define TP6800_R33_PIXEL_END_H   0x33

Definition at line 224 of file topro.c.

#define TP6800_R34_LINE_START   0x34

Definition at line 225 of file topro.c.

#define TP6800_R35_LINE_END_L   0x35

Definition at line 226 of file topro.c.

#define TP6800_R36_LINE_END_H   0x36

Definition at line 227 of file topro.c.

#define TP6800_R37_FRONT_DARK_ST   0x37

Definition at line 228 of file topro.c.

#define TP6800_R38_FRONT_DARK_END   0x38

Definition at line 229 of file topro.c.

#define TP6800_R39_REAR_DARK_ST_L   0x39

Definition at line 230 of file topro.c.

#define TP6800_R3A_REAR_DARK_ST_H   0x3a

Definition at line 231 of file topro.c.

#define TP6800_R3B_REAR_DARK_END_L   0x3b

Definition at line 232 of file topro.c.

#define TP6800_R3C_REAR_DARK_END_H   0x3c

Definition at line 233 of file topro.c.

#define TP6800_R3D_HORIZ_DARK_LINE_L   0x3d

Definition at line 234 of file topro.c.

#define TP6800_R3E_HORIZ_DARK_LINE_H   0x3e

Definition at line 235 of file topro.c.

#define TP6800_R3F_FRAME_RATE   0x3f

Definition at line 236 of file topro.c.

#define TP6800_R50   0x50

Definition at line 237 of file topro.c.

#define TP6800_R51   0x51

Definition at line 238 of file topro.c.

#define TP6800_R52   0x52

Definition at line 239 of file topro.c.

#define TP6800_R53   0x53

Definition at line 240 of file topro.c.

#define TP6800_R54_DARK_CFG   0x54

Definition at line 241 of file topro.c.

#define TP6800_R55_GAMMA_R   0x55

Definition at line 242 of file topro.c.

#define TP6800_R56_GAMMA_G   0x56

Definition at line 243 of file topro.c.

#define TP6800_R57_GAMMA_B   0x57

Definition at line 244 of file topro.c.

#define TP6800_R5C_EDGE_THRLD   0x5c

Definition at line 245 of file topro.c.

#define TP6800_R5D_DEMOSAIC_CFG   0x5d

Definition at line 246 of file topro.c.

#define TP6800_R78_FORMAT   0x78

Definition at line 247 of file topro.c.

#define TP6800_R79_QUALITY   0x79

Definition at line 248 of file topro.c.

#define TP6800_R7A_BLK_THRLD   0x7a

Definition at line 249 of file topro.c.

Enumeration Type Documentation

enum bridges
Enumerator:
BRIDGE_NW800 
BRIDGE_NW801 
BRIDGE_NW802 
BRIDGE_TP6800 
BRIDGE_TP6810 
BRIDGE_VC0321 
BRIDGE_VC0323 
BRIDGE_ZC301 
BRIDGE_ZC303 

Definition at line 142 of file topro.c.

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 147 of file topro.c.

Function Documentation

MODULE_AUTHOR ( "Jean-Francois Moine <http://moinejf.free.fr>  ,
""Anders Blomdell< anders.blomdell @control.lth.se >"   
)
MODULE_DESCRIPTION ( "Topro TP6800/6810 gspca webcam driver )
MODULE_DEVICE_TABLE ( usb  ,
device_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( force_sensor  ,
int  ,
0644   
)
MODULE_PARM_DESC ( force_sensor  ,
"Force sensor. 0:  cx0342,
1:soi763a"   
)
module_usb_driver ( sd_driver  )