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

Go to the source code of this file.

Data Structures

struct  sd
 
struct  ctrl_valid
 
struct  ov_regvals
 
struct  ov_i2c_regvals
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MODULE_NAME   "ov519"
 
#define CONEX_CAM
 
#define BRIDGE_OV511   0
 
#define BRIDGE_OV511PLUS   1
 
#define BRIDGE_OV518   2
 
#define BRIDGE_OV518PLUS   3
 
#define BRIDGE_OV519   4 /* = ov530 */
 
#define BRIDGE_OVFX2   5
 
#define BRIDGE_W9968CF   6
 
#define BRIDGE_MASK   7
 
#define BRIDGE_INVERT_LED   8
 
#define QUALITY_MIN   50
 
#define QUALITY_MAX   70
 
#define QUALITY_DEF   50
 
#define R51x_FIFO_PSIZE   0x30 /* 2 bytes wide w/ OV518(+) */
 
#define R51x_SYS_RESET   0x50
 
#define OV511_RESET_OMNICE   0x08
 
#define R51x_SYS_INIT   0x53
 
#define R51x_SYS_SNAP   0x52
 
#define R51x_SYS_CUST_ID   0x5f
 
#define R51x_COMP_LUT_BEGIN   0x80
 
#define R511_CAM_DELAY   0x10
 
#define R511_CAM_EDGE   0x11
 
#define R511_CAM_PXCNT   0x12
 
#define R511_CAM_LNCNT   0x13
 
#define R511_CAM_PXDIV   0x14
 
#define R511_CAM_LNDIV   0x15
 
#define R511_CAM_UV_EN   0x16
 
#define R511_CAM_LINE_MODE   0x17
 
#define R511_CAM_OPTS   0x18
 
#define R511_SNAP_FRAME   0x19
 
#define R511_SNAP_PXCNT   0x1a
 
#define R511_SNAP_LNCNT   0x1b
 
#define R511_SNAP_PXDIV   0x1c
 
#define R511_SNAP_LNDIV   0x1d
 
#define R511_SNAP_UV_EN   0x1e
 
#define R511_SNAP_OPTS   0x1f
 
#define R511_DRAM_FLOW_CTL   0x20
 
#define R511_FIFO_OPTS   0x31
 
#define R511_I2C_CTL   0x40
 
#define R511_SYS_LED_CTL   0x55 /* OV511+ only */
 
#define R511_COMP_EN   0x78
 
#define R511_COMP_LUT_EN   0x79
 
#define R518_GPIO_OUT   0x56 /* OV518(+) only */
 
#define R518_GPIO_CTL   0x57 /* OV518(+) only */
 
#define OV519_R10_H_SIZE   0x10
 
#define OV519_R11_V_SIZE   0x11
 
#define OV519_R12_X_OFFSETL   0x12
 
#define OV519_R13_X_OFFSETH   0x13
 
#define OV519_R14_Y_OFFSETL   0x14
 
#define OV519_R15_Y_OFFSETH   0x15
 
#define OV519_R16_DIVIDER   0x16
 
#define OV519_R20_DFR   0x20
 
#define OV519_R25_FORMAT   0x25
 
#define OV519_R51_RESET1   0x51
 
#define OV519_R54_EN_CLK1   0x54
 
#define OV519_R57_SNAPSHOT   0x57
 
#define OV519_GPIO_DATA_OUT0   0x71
 
#define OV519_GPIO_IO_CTRL0   0x72
 
#define OVFX2_BULK_SIZE   (13 * 4096)
 
#define R51x_I2C_W_SID   0x41
 
#define R51x_I2C_SADDR_3   0x42
 
#define R51x_I2C_SADDR_2   0x43
 
#define R51x_I2C_R_SID   0x44
 
#define R51x_I2C_DATA   0x45
 
#define R518_I2C_CTL   0x47 /* OV518(+) only */
 
#define OVFX2_I2C_ADDR   0x00
 
#define OV7xx0_SID   0x42
 
#define OV_HIRES_SID   0x60 /* OV9xxx / OV2xxx / OV3xxx */
 
#define OV8xx0_SID   0xa0
 
#define OV6xx0_SID   0xc0
 
#define OV7610_REG_GAIN   0x00 /* gain setting (5:0) */
 
#define OV7610_REG_BLUE   0x01 /* blue channel balance */
 
#define OV7610_REG_RED   0x02 /* red channel balance */
 
#define OV7610_REG_SAT   0x03 /* saturation */
 
#define OV8610_REG_HUE   0x04 /* 04 reserved */
 
#define OV7610_REG_CNT   0x05 /* Y contrast */
 
#define OV7610_REG_BRT   0x06 /* Y brightness */
 
#define OV7610_REG_COM_C   0x14 /* misc common regs */
 
#define OV7610_REG_ID_HIGH   0x1c /* manufacturer ID MSB */
 
#define OV7610_REG_ID_LOW   0x1d /* manufacturer ID LSB */
 
#define OV7610_REG_COM_I   0x29 /* misc settings */
 
#define OV7670_R00_GAIN   0x00 /* Gain lower 8 bits (rest in vref) */
 
#define OV7670_R01_BLUE   0x01 /* blue gain */
 
#define OV7670_R02_RED   0x02 /* red gain */
 
#define OV7670_R03_VREF   0x03 /* Pieces of GAIN, VSTART, VSTOP */
 
#define OV7670_R04_COM1   0x04 /* Control 1 */
 
#define OV7670_R0C_COM3   0x0c /* Control 3 */
 
#define OV7670_R0D_COM4   0x0d /* Control 4 */
 
#define OV7670_R0E_COM5   0x0e /* All "reserved" */
 
#define OV7670_R0F_COM6   0x0f /* Control 6 */
 
#define OV7670_R10_AECH   0x10 /* More bits of AEC value */
 
#define OV7670_R11_CLKRC   0x11 /* Clock control */
 
#define OV7670_R12_COM7   0x12 /* Control 7 */
 
#define OV7670_COM7_FMT_VGA   0x00
 
#define OV7670_COM7_FMT_QVGA   0x10 /* QVGA format */
 
#define OV7670_COM7_FMT_MASK   0x38
 
#define OV7670_COM7_RESET   0x80 /* Register reset */
 
#define OV7670_R13_COM8   0x13 /* Control 8 */
 
#define OV7670_COM8_AEC   0x01 /* Auto exposure enable */
 
#define OV7670_COM8_AWB   0x02 /* White balance enable */
 
#define OV7670_COM8_AGC   0x04 /* Auto gain enable */
 
#define OV7670_COM8_BFILT   0x20 /* Band filter enable */
 
#define OV7670_COM8_AECSTEP   0x40 /* Unlimited AEC step size */
 
#define OV7670_COM8_FASTAEC   0x80 /* Enable fast AGC/AEC */
 
#define OV7670_R14_COM9   0x14 /* Control 9 - gain ceiling */
 
#define OV7670_R15_COM10   0x15 /* Control 10 */
 
#define OV7670_R17_HSTART   0x17 /* Horiz start high bits */
 
#define OV7670_R18_HSTOP   0x18 /* Horiz stop high bits */
 
#define OV7670_R19_VSTART   0x19 /* Vert start high bits */
 
#define OV7670_R1A_VSTOP   0x1a /* Vert stop high bits */
 
#define OV7670_R1E_MVFP   0x1e /* Mirror / vflip */
 
#define OV7670_MVFP_VFLIP   0x10 /* vertical flip */
 
#define OV7670_MVFP_MIRROR   0x20 /* Mirror image */
 
#define OV7670_R24_AEW   0x24 /* AGC upper limit */
 
#define OV7670_R25_AEB   0x25 /* AGC lower limit */
 
#define OV7670_R26_VPT   0x26 /* AGC/AEC fast mode op region */
 
#define OV7670_R32_HREF   0x32 /* HREF pieces */
 
#define OV7670_R3A_TSLB   0x3a /* lots of stuff */
 
#define OV7670_R3B_COM11   0x3b /* Control 11 */
 
#define OV7670_COM11_EXP   0x02
 
#define OV7670_COM11_HZAUTO   0x10 /* Auto detect 50/60 Hz */
 
#define OV7670_R3C_COM12   0x3c /* Control 12 */
 
#define OV7670_R3D_COM13   0x3d /* Control 13 */
 
#define OV7670_COM13_GAMMA   0x80 /* Gamma enable */
 
#define OV7670_COM13_UVSAT   0x40 /* UV saturation auto adjustment */
 
#define OV7670_R3E_COM14   0x3e /* Control 14 */
 
#define OV7670_R3F_EDGE   0x3f /* Edge enhancement factor */
 
#define OV7670_R40_COM15   0x40 /* Control 15 */
 
#define OV7670_R41_COM16   0x41 /* Control 16 */
 
#define OV7670_COM16_AWBGAIN   0x08 /* AWB gain enable */
 
#define OV7670_R55_BRIGHT   0x55 /* Brightness */
 
#define OV7670_R56_CONTRAS   0x56 /* Contrast control */
 
#define OV7670_R69_GFIX   0x69 /* Fix gain control */
 
#define OV7670_R9F_HAECC1   0x9f /* Hist AEC/AGC control 1 */
 
#define OV7670_RA0_HAECC2   0xa0 /* Hist AEC/AGC control 2 */
 
#define OV7670_RA5_BD50MAX   0xa5 /* 50hz banding step limit */
 
#define OV7670_RA6_HAECC3   0xa6 /* Hist AEC/AGC control 3 */
 
#define OV7670_RA7_HAECC4   0xa7 /* Hist AEC/AGC control 4 */
 
#define OV7670_RA8_HAECC5   0xa8 /* Hist AEC/AGC control 5 */
 
#define OV7670_RA9_HAECC6   0xa9 /* Hist AEC/AGC control 6 */
 
#define OV7670_RAA_HAECC7   0xaa /* Hist AEC/AGC control 7 */
 
#define OV7670_RAB_BD60MAX   0xab /* 60hz banding step limit */
 
#define HDRSZ   16
 

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>")
 
 MODULE_DESCRIPTION ("OV519 USB Camera Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (usb, device_table)
 
 module_usb_driver (sd_driver)
 
 module_param (frame_rate, int, 0644)
 
 MODULE_PARM_DESC (frame_rate,"Frame rate (5, 10, 15, 20 or 30 fps)")
 

Macro Definition Documentation

#define BRIDGE_INVERT_LED   8

Definition at line 91 of file ov519.c.

#define BRIDGE_MASK   7

Definition at line 88 of file ov519.c.

#define BRIDGE_OV511   0

Definition at line 81 of file ov519.c.

#define BRIDGE_OV511PLUS   1

Definition at line 82 of file ov519.c.

#define BRIDGE_OV518   2

Definition at line 83 of file ov519.c.

#define BRIDGE_OV518PLUS   3

Definition at line 84 of file ov519.c.

#define BRIDGE_OV519   4 /* = ov530 */

Definition at line 85 of file ov519.c.

#define BRIDGE_OVFX2   5

Definition at line 86 of file ov519.c.

#define BRIDGE_W9968CF   6

Definition at line 87 of file ov519.c.

#define CONEX_CAM

Definition at line 49 of file ov519.c.

#define HDRSZ   16
#define MODULE_NAME   "ov519"

Definition at line 42 of file ov519.c.

#define OV511_RESET_OMNICE   0x08

Definition at line 449 of file ov519.c.

#define OV519_GPIO_DATA_OUT0   0x71

Definition at line 501 of file ov519.c.

#define OV519_GPIO_IO_CTRL0   0x72

Definition at line 502 of file ov519.c.

#define OV519_R10_H_SIZE   0x10

Definition at line 486 of file ov519.c.

#define OV519_R11_V_SIZE   0x11

Definition at line 487 of file ov519.c.

#define OV519_R12_X_OFFSETL   0x12

Definition at line 488 of file ov519.c.

#define OV519_R13_X_OFFSETH   0x13

Definition at line 489 of file ov519.c.

#define OV519_R14_Y_OFFSETL   0x14

Definition at line 490 of file ov519.c.

#define OV519_R15_Y_OFFSETH   0x15

Definition at line 491 of file ov519.c.

#define OV519_R16_DIVIDER   0x16

Definition at line 492 of file ov519.c.

#define OV519_R20_DFR   0x20

Definition at line 493 of file ov519.c.

#define OV519_R25_FORMAT   0x25

Definition at line 494 of file ov519.c.

#define OV519_R51_RESET1   0x51

Definition at line 497 of file ov519.c.

#define OV519_R54_EN_CLK1   0x54

Definition at line 498 of file ov519.c.

#define OV519_R57_SNAPSHOT   0x57

Definition at line 499 of file ov519.c.

#define OV6xx0_SID   0xc0

Definition at line 544 of file ov519.c.

#define OV7610_REG_BLUE   0x01 /* blue channel balance */

Definition at line 548 of file ov519.c.

#define OV7610_REG_BRT   0x06 /* Y brightness */

Definition at line 553 of file ov519.c.

#define OV7610_REG_CNT   0x05 /* Y contrast */

Definition at line 552 of file ov519.c.

#define OV7610_REG_COM_C   0x14 /* misc common regs */

Definition at line 554 of file ov519.c.

#define OV7610_REG_COM_I   0x29 /* misc settings */

Definition at line 557 of file ov519.c.

#define OV7610_REG_GAIN   0x00 /* gain setting (5:0) */

Definition at line 547 of file ov519.c.

#define OV7610_REG_ID_HIGH   0x1c /* manufacturer ID MSB */

Definition at line 555 of file ov519.c.

#define OV7610_REG_ID_LOW   0x1d /* manufacturer ID LSB */

Definition at line 556 of file ov519.c.

#define OV7610_REG_RED   0x02 /* red channel balance */

Definition at line 549 of file ov519.c.

#define OV7610_REG_SAT   0x03 /* saturation */

Definition at line 550 of file ov519.c.

#define OV7670_COM11_EXP   0x02

Definition at line 600 of file ov519.c.

#define OV7670_COM11_HZAUTO   0x10 /* Auto detect 50/60 Hz */

Definition at line 601 of file ov519.c.

#define OV7670_COM13_GAMMA   0x80 /* Gamma enable */

Definition at line 604 of file ov519.c.

#define OV7670_COM13_UVSAT   0x40 /* UV saturation auto adjustment */

Definition at line 605 of file ov519.c.

#define OV7670_COM16_AWBGAIN   0x08 /* AWB gain enable */

Definition at line 611 of file ov519.c.

#define OV7670_COM7_FMT_MASK   0x38

Definition at line 576 of file ov519.c.

#define OV7670_COM7_FMT_QVGA   0x10 /* QVGA format */

Definition at line 575 of file ov519.c.

#define OV7670_COM7_FMT_VGA   0x00

Definition at line 573 of file ov519.c.

#define OV7670_COM7_RESET   0x80 /* Register reset */

Definition at line 577 of file ov519.c.

#define OV7670_COM8_AEC   0x01 /* Auto exposure enable */

Definition at line 579 of file ov519.c.

#define OV7670_COM8_AECSTEP   0x40 /* Unlimited AEC step size */

Definition at line 583 of file ov519.c.

#define OV7670_COM8_AGC   0x04 /* Auto gain enable */

Definition at line 581 of file ov519.c.

#define OV7670_COM8_AWB   0x02 /* White balance enable */

Definition at line 580 of file ov519.c.

#define OV7670_COM8_BFILT   0x20 /* Band filter enable */

Definition at line 582 of file ov519.c.

#define OV7670_COM8_FASTAEC   0x80 /* Enable fast AGC/AEC */

Definition at line 584 of file ov519.c.

#define OV7670_MVFP_MIRROR   0x20 /* Mirror image */

Definition at line 593 of file ov519.c.

#define OV7670_MVFP_VFLIP   0x10 /* vertical flip */

Definition at line 592 of file ov519.c.

#define OV7670_R00_GAIN   0x00 /* Gain lower 8 bits (rest in vref) */

Definition at line 560 of file ov519.c.

#define OV7670_R01_BLUE   0x01 /* blue gain */

Definition at line 561 of file ov519.c.

#define OV7670_R02_RED   0x02 /* red gain */

Definition at line 562 of file ov519.c.

#define OV7670_R03_VREF   0x03 /* Pieces of GAIN, VSTART, VSTOP */

Definition at line 563 of file ov519.c.

#define OV7670_R04_COM1   0x04 /* Control 1 */

Definition at line 564 of file ov519.c.

#define OV7670_R0C_COM3   0x0c /* Control 3 */

Definition at line 566 of file ov519.c.

#define OV7670_R0D_COM4   0x0d /* Control 4 */

Definition at line 567 of file ov519.c.

#define OV7670_R0E_COM5   0x0e /* All "reserved" */

Definition at line 568 of file ov519.c.

#define OV7670_R0F_COM6   0x0f /* Control 6 */

Definition at line 569 of file ov519.c.

#define OV7670_R10_AECH   0x10 /* More bits of AEC value */

Definition at line 570 of file ov519.c.

#define OV7670_R11_CLKRC   0x11 /* Clock control */

Definition at line 571 of file ov519.c.

#define OV7670_R12_COM7   0x12 /* Control 7 */

Definition at line 572 of file ov519.c.

#define OV7670_R13_COM8   0x13 /* Control 8 */

Definition at line 578 of file ov519.c.

#define OV7670_R14_COM9   0x14 /* Control 9 - gain ceiling */

Definition at line 585 of file ov519.c.

#define OV7670_R15_COM10   0x15 /* Control 10 */

Definition at line 586 of file ov519.c.

#define OV7670_R17_HSTART   0x17 /* Horiz start high bits */

Definition at line 587 of file ov519.c.

#define OV7670_R18_HSTOP   0x18 /* Horiz stop high bits */

Definition at line 588 of file ov519.c.

#define OV7670_R19_VSTART   0x19 /* Vert start high bits */

Definition at line 589 of file ov519.c.

#define OV7670_R1A_VSTOP   0x1a /* Vert stop high bits */

Definition at line 590 of file ov519.c.

#define OV7670_R1E_MVFP   0x1e /* Mirror / vflip */

Definition at line 591 of file ov519.c.

#define OV7670_R24_AEW   0x24 /* AGC upper limit */

Definition at line 594 of file ov519.c.

#define OV7670_R25_AEB   0x25 /* AGC lower limit */

Definition at line 595 of file ov519.c.

#define OV7670_R26_VPT   0x26 /* AGC/AEC fast mode op region */

Definition at line 596 of file ov519.c.

#define OV7670_R32_HREF   0x32 /* HREF pieces */

Definition at line 597 of file ov519.c.

#define OV7670_R3A_TSLB   0x3a /* lots of stuff */

Definition at line 598 of file ov519.c.

#define OV7670_R3B_COM11   0x3b /* Control 11 */

Definition at line 599 of file ov519.c.

#define OV7670_R3C_COM12   0x3c /* Control 12 */

Definition at line 602 of file ov519.c.

#define OV7670_R3D_COM13   0x3d /* Control 13 */

Definition at line 603 of file ov519.c.

#define OV7670_R3E_COM14   0x3e /* Control 14 */

Definition at line 606 of file ov519.c.

#define OV7670_R3F_EDGE   0x3f /* Edge enhancement factor */

Definition at line 607 of file ov519.c.

#define OV7670_R40_COM15   0x40 /* Control 15 */

Definition at line 608 of file ov519.c.

#define OV7670_R41_COM16   0x41 /* Control 16 */

Definition at line 610 of file ov519.c.

#define OV7670_R55_BRIGHT   0x55 /* Brightness */

Definition at line 613 of file ov519.c.

#define OV7670_R56_CONTRAS   0x56 /* Contrast control */

Definition at line 614 of file ov519.c.

#define OV7670_R69_GFIX   0x69 /* Fix gain control */

Definition at line 615 of file ov519.c.

#define OV7670_R9F_HAECC1   0x9f /* Hist AEC/AGC control 1 */

Definition at line 617 of file ov519.c.

#define OV7670_RA0_HAECC2   0xa0 /* Hist AEC/AGC control 2 */

Definition at line 618 of file ov519.c.

#define OV7670_RA5_BD50MAX   0xa5 /* 50hz banding step limit */

Definition at line 619 of file ov519.c.

#define OV7670_RA6_HAECC3   0xa6 /* Hist AEC/AGC control 3 */

Definition at line 620 of file ov519.c.

#define OV7670_RA7_HAECC4   0xa7 /* Hist AEC/AGC control 4 */

Definition at line 621 of file ov519.c.

#define OV7670_RA8_HAECC5   0xa8 /* Hist AEC/AGC control 5 */

Definition at line 622 of file ov519.c.

#define OV7670_RA9_HAECC6   0xa9 /* Hist AEC/AGC control 6 */

Definition at line 623 of file ov519.c.

#define OV7670_RAA_HAECC7   0xaa /* Hist AEC/AGC control 7 */

Definition at line 624 of file ov519.c.

#define OV7670_RAB_BD60MAX   0xab /* 60hz banding step limit */

Definition at line 625 of file ov519.c.

#define OV7xx0_SID   0x42

Definition at line 541 of file ov519.c.

#define OV8610_REG_HUE   0x04 /* 04 reserved */

Definition at line 551 of file ov519.c.

#define OV8xx0_SID   0xa0

Definition at line 543 of file ov519.c.

#define OV_HIRES_SID   0x60 /* OV9xxx / OV2xxx / OV3xxx */

Definition at line 542 of file ov519.c.

#define OVFX2_BULK_SIZE   (13 * 4096)

Definition at line 529 of file ov519.c.

#define OVFX2_I2C_ADDR   0x00

Definition at line 538 of file ov519.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

OV519 driver

Copyright (C) 2008-2011 Jean-François Moine moine.nosp@m.jf@f.nosp@m.ree.f.nosp@m.r Copyright (C) 2009 Hans de Goede hdego.nosp@m.ede@.nosp@m.redha.nosp@m.t.co.nosp@m.m

This module is adapted from the ov51x-jpeg package, which itself was adapted from the ov511 driver.

Original copyright for the ov511 driver is:

Copyright (c) 1999-2006 Mark W. McClelland Support for OV519, OV8610 Copyright (c) 2003 Joerg Heckenbach Many improvements by Bret Wallach bwall.nosp@m.ac1@.nosp@m.san.r.nosp@m.r.co.nosp@m.m Color fixes by by Orion Sky Lawlor olawl.nosp@m.or@a.nosp@m.cm.or.nosp@m.g (2/26/2000) OV7620 fixes by Charl P. Botha cpbot.nosp@m.ha@i.nosp@m.eee.o.nosp@m.rg Changes by Claudio Matsuoka claud.nosp@m.io@c.nosp@m.onect.nosp@m.iva..nosp@m.com

ov51x-jpeg original copyright is:

Copyright (c) 2004-2007 Romain Beauxis toots.nosp@m.@ras.nosp@m.tagee.nosp@m.ks.o.nosp@m.rg Support for OV7670 sensors was contributed by Sam Skipsey aoanl.nosp@m.a@ya.nosp@m.hoo.c.nosp@m.om

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition at line 40 of file ov519.c.

#define QUALITY_DEF   50

Definition at line 101 of file ov519.c.

#define QUALITY_MAX   70

Definition at line 100 of file ov519.c.

#define QUALITY_MIN   50

Definition at line 99 of file ov519.c.

#define R511_CAM_DELAY   0x10

Definition at line 456 of file ov519.c.

#define R511_CAM_EDGE   0x11

Definition at line 457 of file ov519.c.

#define R511_CAM_LINE_MODE   0x17

Definition at line 463 of file ov519.c.

#define R511_CAM_LNCNT   0x13

Definition at line 459 of file ov519.c.

#define R511_CAM_LNDIV   0x15

Definition at line 461 of file ov519.c.

#define R511_CAM_OPTS   0x18

Definition at line 464 of file ov519.c.

#define R511_CAM_PXCNT   0x12

Definition at line 458 of file ov519.c.

#define R511_CAM_PXDIV   0x14

Definition at line 460 of file ov519.c.

#define R511_CAM_UV_EN   0x16

Definition at line 462 of file ov519.c.

#define R511_COMP_EN   0x78

Definition at line 478 of file ov519.c.

#define R511_COMP_LUT_EN   0x79

Definition at line 479 of file ov519.c.

#define R511_DRAM_FLOW_CTL   0x20

Definition at line 474 of file ov519.c.

#define R511_FIFO_OPTS   0x31

Definition at line 475 of file ov519.c.

#define R511_I2C_CTL   0x40

Definition at line 476 of file ov519.c.

#define R511_SNAP_FRAME   0x19

Definition at line 466 of file ov519.c.

#define R511_SNAP_LNCNT   0x1b

Definition at line 468 of file ov519.c.

#define R511_SNAP_LNDIV   0x1d

Definition at line 470 of file ov519.c.

#define R511_SNAP_OPTS   0x1f

Definition at line 472 of file ov519.c.

#define R511_SNAP_PXCNT   0x1a

Definition at line 467 of file ov519.c.

#define R511_SNAP_PXDIV   0x1c

Definition at line 469 of file ov519.c.

#define R511_SNAP_UV_EN   0x1e

Definition at line 471 of file ov519.c.

#define R511_SYS_LED_CTL   0x55 /* OV511+ only */

Definition at line 477 of file ov519.c.

#define R518_GPIO_CTL   0x57 /* OV518(+) only */

Definition at line 483 of file ov519.c.

#define R518_GPIO_OUT   0x56 /* OV518(+) only */

Definition at line 482 of file ov519.c.

#define R518_I2C_CTL   0x47 /* OV518(+) only */

Definition at line 537 of file ov519.c.

#define R51x_COMP_LUT_BEGIN   0x80

Definition at line 453 of file ov519.c.

#define R51x_FIFO_PSIZE   0x30 /* 2 bytes wide w/ OV518(+) */

Definition at line 446 of file ov519.c.

#define R51x_I2C_DATA   0x45

Definition at line 536 of file ov519.c.

#define R51x_I2C_R_SID   0x44

Definition at line 535 of file ov519.c.

#define R51x_I2C_SADDR_2   0x43

Definition at line 534 of file ov519.c.

#define R51x_I2C_SADDR_3   0x42

Definition at line 533 of file ov519.c.

#define R51x_I2C_W_SID   0x41

Definition at line 532 of file ov519.c.

#define R51x_SYS_CUST_ID   0x5f

Definition at line 452 of file ov519.c.

#define R51x_SYS_INIT   0x53

Definition at line 450 of file ov519.c.

#define R51x_SYS_RESET   0x50

Definition at line 447 of file ov519.c.

#define R51x_SYS_SNAP   0x52

Definition at line 451 of file ov519.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 118 of file ov519.c.

Function Documentation

MODULE_AUTHOR ( "Jean-Francois Moine <http://moinejf.free.fr>"  )
MODULE_DESCRIPTION ( "OV519 USB Camera Driver"  )
MODULE_DEVICE_TABLE ( usb  ,
device_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( frame_rate  ,
int  ,
0644   
)
MODULE_PARM_DESC ( frame_rate  ,
"Frame rate (5, 10, 15, 20 or 30 fps)"   
)
module_usb_driver ( sd_driver  )