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

Go to the source code of this file.

Data Structures

struct  sd
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MODULE_NAME   "etoms"
 
#define SENSOR_PAS106   0
 
#define SENSOR_TAS5130CXX   1
 
#define AG_CNT_START   13
 
#define ETOMS_ALT_SIZE_1000   12
 
#define ET_GPIO_DIR_CTRL   0x04 /* Control IO bit[0..5] (0 in 1 out) */
 
#define ET_GPIO_OUT   0x05 /* Only IO data */
 
#define ET_GPIO_IN   0x06 /* Read Only IO data */
 
#define ET_RESET_ALL   0x03
 
#define ET_ClCK   0x01
 
#define ET_CTRL   0x02 /* enable i2c OutClck Powerdown mode */
 
#define ET_COMP   0x12 /* Compression register */
 
#define ET_MAXQt   0x13
 
#define ET_MINQt   0x14
 
#define ET_COMP_VAL0   0x02
 
#define ET_COMP_VAL1   0x03
 
#define ET_REG1d   0x1d
 
#define ET_REG1e   0x1e
 
#define ET_REG1f   0x1f
 
#define ET_REG20   0x20
 
#define ET_REG21   0x21
 
#define ET_REG22   0x22
 
#define ET_REG23   0x23
 
#define ET_REG24   0x24
 
#define ET_REG25   0x25
 
#define ET_LUMA_CENTER   0x39
 
#define ET_G_RED   0x4d
 
#define ET_G_GREEN1   0x4e
 
#define ET_G_BLUE   0x4f
 
#define ET_G_GREEN2   0x50
 
#define ET_G_GR_H   0x51
 
#define ET_G_GB_H   0x52
 
#define ET_O_RED   0x34
 
#define ET_O_GREEN1   0x35
 
#define ET_O_BLUE   0x36
 
#define ET_O_GREEN2   0x37
 
#define ET_SYNCHRO   0x68
 
#define ET_STARTX   0x69
 
#define ET_STARTY   0x6a
 
#define ET_WIDTH_LOW   0x6b
 
#define ET_HEIGTH_LOW   0x6c
 
#define ET_W_H_HEIGTH   0x6d
 
#define ET_REG6e   0x6e /* OBW */
 
#define ET_REG6f   0x6f /* OBW */
 
#define ET_REG70   0x70 /* OBW_AWB */
 
#define ET_REG71   0x71 /* OBW_AWB */
 
#define ET_REG72   0x72 /* OBW_AWB */
 
#define ET_REG73   0x73 /* Clkdelay ns */
 
#define ET_REG74   0x74 /* test pattern */
 
#define ET_REG75   0x75 /* test pattern */
 
#define ET_I2C_CLK   0x8c
 
#define ET_PXL_CLK   0x60
 
#define ET_I2C_BASE   0x89
 
#define ET_I2C_COUNT   0x8a
 
#define ET_I2C_PREFETCH   0x8b
 
#define ET_I2C_REG   0x88
 
#define ET_I2C_DATA7   0x87
 
#define ET_I2C_DATA6   0x86
 
#define ET_I2C_DATA5   0x85
 
#define ET_I2C_DATA4   0x84
 
#define ET_I2C_DATA3   0x83
 
#define ET_I2C_DATA2   0x82
 
#define ET_I2C_DATA1   0x81
 
#define ET_I2C_DATA0   0x80
 
#define PAS106_REG2   0x02 /* pxlClk = systemClk/(reg2) */
 
#define PAS106_REG3   0x03 /* line/frame H [11..4] */
 
#define PAS106_REG4   0x04 /* line/frame L [3..0] */
 
#define PAS106_REG5   0x05 /* exposure time line offset(default 5) */
 
#define PAS106_REG6   0x06 /* exposure time pixel offset(default 6) */
 
#define PAS106_REG7   0x07 /* signbit Dac (default 0) */
 
#define PAS106_REG9   0x09
 
#define PAS106_REG0e   0x0e /* global gain [4..0](default 0x0e) */
 
#define PAS106_REG13   0x13 /* end i2c write */
 
#define BLIMIT(bright)   (u8)((bright > 0x1f) ? 0x1f : ((bright < 4) ? 3 : bright))
 
#define LIMIT(color)   (u8)((color > 0xff) ? 0xff : ((color < 0) ? 0 : color))
 

Functions

 MODULE_AUTHOR ("Michel Xhaard <[email protected]>")
 
 MODULE_DESCRIPTION ("Etoms USB Camera Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (usb, device_table)
 
 module_usb_driver (sd_driver)
 

Macro Definition Documentation

#define AG_CNT_START   13

Definition at line 41 of file etoms.c.

#define BLIMIT (   bright)    (u8)((bright > 0x1f) ? 0x1f : ((bright < 4) ? 3 : bright))

Definition at line 631 of file etoms.c.

#define ET_ClCK   0x01

Definition at line 76 of file etoms.c.

#define ET_COMP   0x12 /* Compression register */

Definition at line 79 of file etoms.c.

#define ET_COMP_VAL0   0x02

Definition at line 82 of file etoms.c.

#define ET_COMP_VAL1   0x03

Definition at line 83 of file etoms.c.

#define ET_CTRL   0x02 /* enable i2c OutClck Powerdown mode */

Definition at line 77 of file etoms.c.

#define ET_G_BLUE   0x4f

Definition at line 99 of file etoms.c.

#define ET_G_GB_H   0x52

Definition at line 102 of file etoms.c.

#define ET_G_GR_H   0x51

Definition at line 101 of file etoms.c.

#define ET_G_GREEN1   0x4e

Definition at line 98 of file etoms.c.

#define ET_G_GREEN2   0x50

Definition at line 100 of file etoms.c.

#define ET_G_RED   0x4d

Definition at line 97 of file etoms.c.

#define ET_GPIO_DIR_CTRL   0x04 /* Control IO bit[0..5] (0 in 1 out) */

Definition at line 72 of file etoms.c.

#define ET_GPIO_IN   0x06 /* Read Only IO data */

Definition at line 74 of file etoms.c.

#define ET_GPIO_OUT   0x05 /* Only IO data */

Definition at line 73 of file etoms.c.

#define ET_HEIGTH_LOW   0x6c

Definition at line 113 of file etoms.c.

#define ET_I2C_BASE   0x89

Definition at line 128 of file etoms.c.

#define ET_I2C_CLK   0x8c

Definition at line 125 of file etoms.c.

#define ET_I2C_COUNT   0x8a

Definition at line 129 of file etoms.c.

#define ET_I2C_DATA0   0x80

Definition at line 139 of file etoms.c.

#define ET_I2C_DATA1   0x81

Definition at line 138 of file etoms.c.

#define ET_I2C_DATA2   0x82

Definition at line 137 of file etoms.c.

#define ET_I2C_DATA3   0x83

Definition at line 136 of file etoms.c.

#define ET_I2C_DATA4   0x84

Definition at line 135 of file etoms.c.

#define ET_I2C_DATA5   0x85

Definition at line 134 of file etoms.c.

#define ET_I2C_DATA6   0x86

Definition at line 133 of file etoms.c.

#define ET_I2C_DATA7   0x87

Definition at line 132 of file etoms.c.

#define ET_I2C_PREFETCH   0x8b

Definition at line 130 of file etoms.c.

#define ET_I2C_REG   0x88

Definition at line 131 of file etoms.c.

#define ET_LUMA_CENTER   0x39

Definition at line 95 of file etoms.c.

#define ET_MAXQt   0x13

Definition at line 80 of file etoms.c.

#define ET_MINQt   0x14

Definition at line 81 of file etoms.c.

#define ET_O_BLUE   0x36

Definition at line 106 of file etoms.c.

#define ET_O_GREEN1   0x35

Definition at line 105 of file etoms.c.

#define ET_O_GREEN2   0x37

Definition at line 107 of file etoms.c.

#define ET_O_RED   0x34

Definition at line 104 of file etoms.c.

#define ET_PXL_CLK   0x60

Definition at line 126 of file etoms.c.

#define ET_REG1d   0x1d

Definition at line 85 of file etoms.c.

#define ET_REG1e   0x1e

Definition at line 86 of file etoms.c.

#define ET_REG1f   0x1f

Definition at line 87 of file etoms.c.

#define ET_REG20   0x20

Definition at line 88 of file etoms.c.

#define ET_REG21   0x21

Definition at line 89 of file etoms.c.

#define ET_REG22   0x22

Definition at line 90 of file etoms.c.

#define ET_REG23   0x23

Definition at line 91 of file etoms.c.

#define ET_REG24   0x24

Definition at line 92 of file etoms.c.

#define ET_REG25   0x25

Definition at line 93 of file etoms.c.

#define ET_REG6e   0x6e /* OBW */

Definition at line 116 of file etoms.c.

#define ET_REG6f   0x6f /* OBW */

Definition at line 117 of file etoms.c.

#define ET_REG70   0x70 /* OBW_AWB */

Definition at line 118 of file etoms.c.

#define ET_REG71   0x71 /* OBW_AWB */

Definition at line 119 of file etoms.c.

#define ET_REG72   0x72 /* OBW_AWB */

Definition at line 120 of file etoms.c.

#define ET_REG73   0x73 /* Clkdelay ns */

Definition at line 121 of file etoms.c.

#define ET_REG74   0x74 /* test pattern */

Definition at line 122 of file etoms.c.

#define ET_REG75   0x75 /* test pattern */

Definition at line 123 of file etoms.c.

#define ET_RESET_ALL   0x03

Definition at line 75 of file etoms.c.

#define ET_STARTX   0x69

Definition at line 110 of file etoms.c.

#define ET_STARTY   0x6a

Definition at line 111 of file etoms.c.

#define ET_SYNCHRO   0x68

Definition at line 109 of file etoms.c.

#define ET_W_H_HEIGTH   0x6d

Definition at line 114 of file etoms.c.

#define ET_WIDTH_LOW   0x6b

Definition at line 112 of file etoms.c.

#define ETOMS_ALT_SIZE_1000   12

Definition at line 70 of file etoms.c.

#define LIMIT (   color)    (u8)((color > 0xff) ? 0xff : ((color < 0) ? 0 : color))

Definition at line 633 of file etoms.c.

#define MODULE_NAME   "etoms"

Definition at line 23 of file etoms.c.

#define PAS106_REG0e   0x0e /* global gain [4..0](default 0x0e) */

Definition at line 148 of file etoms.c.

#define PAS106_REG13   0x13 /* end i2c write */

Definition at line 149 of file etoms.c.

#define PAS106_REG2   0x02 /* pxlClk = systemClk/(reg2) */

Definition at line 141 of file etoms.c.

#define PAS106_REG3   0x03 /* line/frame H [11..4] */

Definition at line 142 of file etoms.c.

#define PAS106_REG4   0x04 /* line/frame L [3..0] */

Definition at line 143 of file etoms.c.

#define PAS106_REG5   0x05 /* exposure time line offset(default 5) */

Definition at line 144 of file etoms.c.

#define PAS106_REG6   0x06 /* exposure time pixel offset(default 6) */

Definition at line 145 of file etoms.c.

#define PAS106_REG7   0x07 /* signbit Dac (default 0) */

Definition at line 146 of file etoms.c.

#define PAS106_REG9   0x09

Definition at line 147 of file etoms.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 21 of file etoms.c.

#define SENSOR_PAS106   0

Definition at line 38 of file etoms.c.

#define SENSOR_TAS5130CXX   1

Definition at line 39 of file etoms.c.

Function Documentation

MODULE_AUTHOR ( "Michel Xhaard <[email protected]>"  )
MODULE_DESCRIPTION ( "Etoms USB Camera Driver"  )
MODULE_DEVICE_TABLE ( usb  ,
device_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( sd_driver  )