Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
cpia2.h File Reference
#include <linux/videodev2.h>
#include <linux/usb.h>
#include <linux/poll.h>
#include <media/v4l2-common.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include "cpia2_registers.h"

Go to the source code of this file.

Data Structures

struct  cpia2_register
 
struct  cpia2_reg_mask
 
struct  cpia2_command
 
union  cpia2_command::reg_types
 
struct  camera_params
 
struct  cpia2_sbuf
 
struct  framebuf
 
struct  camera_data
 

Macros

#define ALLOW_CORRUPT   0 /* Causes collater to discard checksum */
 
#define XFER_ISOC   0
 
#define XFER_BULK   1
 
#define USBIF_CMDONLY   0
 
#define USBIF_BULK   1
 
#define USBIF_ISO_1   2 /* 128 bytes/ms */
 
#define USBIF_ISO_2   3 /* 384 bytes/ms */
 
#define USBIF_ISO_3   4 /* 640 bytes/ms */
 
#define USBIF_ISO_4   5 /* 768 bytes/ms */
 
#define USBIF_ISO_5   6 /* 896 bytes/ms */
 
#define USBIF_ISO_6   7 /* 1023 bytes/ms */
 
#define NEVER_FLICKER   0
 
#define FLICKER_60   60
 
#define FLICKER_50   50
 
#define DEBUG_NONE   0
 
#define DEBUG_REG   0x00000001
 
#define DEBUG_DUMP_PATCH   0x00000002
 
#define DEBUG_DUMP_REGS   0x00000004
 
#define STV_IMAGE_CIF_ROWS   288
 
#define STV_IMAGE_CIF_COLS   352
 
#define STV_IMAGE_QCIF_ROWS   144
 
#define STV_IMAGE_QCIF_COLS   176
 
#define STV_IMAGE_VGA_ROWS   480
 
#define STV_IMAGE_VGA_COLS   640
 
#define STV_IMAGE_QVGA_ROWS   240
 
#define STV_IMAGE_QVGA_COLS   320
 
#define JPEG_MARKER_COM   (1<<6) /* Comment segment */
 
#define CPIA2_ASIC_672   0x67
 
#define DEVICE_STV_672   0x0001
 
#define DEVICE_STV_676   0x0002
 
#define CAMERAACCESS_TYPE_BLOCK   0x00
 
#define CAMERAACCESS_TYPE_RANDOM   0x04
 
#define CAMERAACCESS_TYPE_MASK   0x08
 
#define CAMERAACCESS_TYPE_REPEAT   0x0C
 
#define TRANSFER_READ   0
 
#define TRANSFER_WRITE   1
 
#define DEFAULT_ALT   USBIF_ISO_6
 
#define DEFAULT_BRIGHTNESS   0x46
 
#define DEFAULT_CONTRAST   0x93
 
#define DEFAULT_SATURATION   0x7f
 
#define HI_POWER_MODE   CPIA2_SYSTEM_CONTROL_HIGH_POWER
 
#define LO_POWER_MODE   CPIA2_SYSTEM_CONTROL_LOW_POWER
 
#define CAMACC_CIF   0x01
 
#define CAMACC_VGA   0x02
 
#define CAMACC_QCIF   0x04
 
#define CAMACC_QVGA   0x08
 
#define NUM_SBUF   2
 
#define ALOG(fmt, args...)   printk(fmt,##args)
 
#define LOG(fmt, args...)   ALOG(KERN_INFO "cpia2: "fmt,##args)
 
#define ERR(fmt, args...)   ALOG(KERN_ERR "cpia2: "fmt,##args)
 
#define DBG(fmn, args...)   do {} while(0)
 
#define KINFO(fmt, args...)   printk(KERN_INFO fmt,##args)
 

Enumerations

enum  {
  VIDEOSIZE_VGA = 0, VIDEOSIZE_CIF, VIDEOSIZE_QVGA, VIDEOSIZE_QCIF,
  VIDEOSIZE_288_216, VIDEOSIZE_256_192, VIDEOSIZE_224_168, VIDEOSIZE_192_144
}
 
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
}
 
enum  frame_status { FRAME_EMPTY, FRAME_READING, FRAME_READY, FRAME_ERROR }
 
enum  { CAMERAACCESS_SYSTEM = 0, CAMERAACCESS_VC, CAMERAACCESS_VP, CAMERAACCESS_IDATA }
 
enum  {
  CPIA2_CMD_NONE = 0, CPIA2_CMD_GET_VERSION, CPIA2_CMD_GET_PNP_ID, CPIA2_CMD_GET_ASIC_TYPE,
  CPIA2_CMD_GET_SENSOR, CPIA2_CMD_GET_VP_DEVICE, CPIA2_CMD_GET_VP_BRIGHTNESS, CPIA2_CMD_SET_VP_BRIGHTNESS,
  CPIA2_CMD_GET_CONTRAST, CPIA2_CMD_SET_CONTRAST, CPIA2_CMD_GET_VP_SATURATION, CPIA2_CMD_SET_VP_SATURATION,
  CPIA2_CMD_GET_VP_GPIO_DIRECTION, CPIA2_CMD_SET_VP_GPIO_DIRECTION, CPIA2_CMD_GET_VP_GPIO_DATA, CPIA2_CMD_SET_VP_GPIO_DATA,
  CPIA2_CMD_GET_VC_MP_GPIO_DIRECTION, CPIA2_CMD_SET_VC_MP_GPIO_DIRECTION, CPIA2_CMD_GET_VC_MP_GPIO_DATA, CPIA2_CMD_SET_VC_MP_GPIO_DATA,
  CPIA2_CMD_ENABLE_PACKET_CTRL, CPIA2_CMD_GET_FLICKER_MODES, CPIA2_CMD_SET_FLICKER_MODES, CPIA2_CMD_RESET_FIFO,
  CPIA2_CMD_SET_HI_POWER, CPIA2_CMD_SET_LOW_POWER, CPIA2_CMD_CLEAR_V2W_ERR, CPIA2_CMD_SET_USER_MODE,
  CPIA2_CMD_GET_USER_MODE, CPIA2_CMD_FRAMERATE_REQ, CPIA2_CMD_SET_COMPRESSION_STATE, CPIA2_CMD_GET_WAKEUP,
  CPIA2_CMD_SET_WAKEUP, CPIA2_CMD_GET_PW_CONTROL, CPIA2_CMD_SET_PW_CONTROL, CPIA2_CMD_GET_SYSTEM_CTRL,
  CPIA2_CMD_SET_SYSTEM_CTRL, CPIA2_CMD_GET_VP_SYSTEM_STATE, CPIA2_CMD_GET_VP_SYSTEM_CTRL, CPIA2_CMD_SET_VP_SYSTEM_CTRL,
  CPIA2_CMD_GET_VP_EXP_MODES, CPIA2_CMD_SET_VP_EXP_MODES, CPIA2_CMD_GET_DEVICE_CONFIG, CPIA2_CMD_SET_DEVICE_CONFIG,
  CPIA2_CMD_SET_SERIAL_ADDR, CPIA2_CMD_SET_SENSOR_CR1, CPIA2_CMD_GET_VC_CONTROL, CPIA2_CMD_SET_VC_CONTROL,
  CPIA2_CMD_SET_TARGET_KB, CPIA2_CMD_SET_DEF_JPEG_OPT, CPIA2_CMD_REHASH_VP4, CPIA2_CMD_GET_USER_EFFECTS,
  CPIA2_CMD_SET_USER_EFFECTS
}
 
enum  user_cmd {
  COMMAND_NONE = 0x00000001, COMMAND_SET_FPS = 0x00000002, COMMAND_SET_COLOR_PARAMS = 0x00000004, COMMAND_GET_COLOR_PARAMS = 0x00000008,
  COMMAND_SET_FORMAT = 0x00000010, COMMAND_SET_FLICKER = 0x00000020
}
 

Functions

int cpia2_register_camera (struct camera_data *cam)
 
void cpia2_unregister_camera (struct camera_data *cam)
 
void cpia2_camera_release (struct v4l2_device *v4l2_dev)
 
int cpia2_reset_camera (struct camera_data *cam)
 
int cpia2_set_low_power (struct camera_data *cam)
 
void cpia2_dbg_dump_registers (struct camera_data *cam)
 
int cpia2_match_video_size (int width, int height)
 
void cpia2_set_camera_state (struct camera_data *cam)
 
void cpia2_save_camera_state (struct camera_data *cam)
 
void cpia2_set_color_params (struct camera_data *cam)
 
void cpia2_set_brightness (struct camera_data *cam, unsigned char value)
 
void cpia2_set_contrast (struct camera_data *cam, unsigned char value)
 
void cpia2_set_saturation (struct camera_data *cam, unsigned char value)
 
int cpia2_set_flicker_mode (struct camera_data *cam, int mode)
 
void cpia2_set_format (struct camera_data *cam)
 
int cpia2_send_command (struct camera_data *cam, struct cpia2_command *cmd)
 
int cpia2_do_command (struct camera_data *cam, unsigned int command, unsigned char direction, unsigned char param)
 
struct camera_datacpia2_init_camera_struct (struct usb_interface *intf)
 
int cpia2_init_camera (struct camera_data *cam)
 
int cpia2_allocate_buffers (struct camera_data *cam)
 
void cpia2_free_buffers (struct camera_data *cam)
 
long cpia2_read (struct camera_data *cam, char __user *buf, unsigned long count, int noblock)
 
unsigned int cpia2_poll (struct camera_data *cam, struct file *filp, poll_table *wait)
 
int cpia2_remap_buffer (struct camera_data *cam, struct vm_area_struct *vma)
 
void cpia2_set_property_flip (struct camera_data *cam, int prop_val)
 
void cpia2_set_property_mirror (struct camera_data *cam, int prop_val)
 
int cpia2_set_gpio (struct camera_data *cam, unsigned char setting)
 
int cpia2_set_fps (struct camera_data *cam, int framerate)
 
int cpia2_usb_init (void)
 
void cpia2_usb_cleanup (void)
 
int cpia2_usb_transfer_cmd (struct camera_data *cam, void *registers, u8 request, u8 start, u8 count, u8 direction)
 
int cpia2_usb_stream_start (struct camera_data *cam, unsigned int alternate)
 
int cpia2_usb_stream_stop (struct camera_data *cam)
 
int cpia2_usb_stream_pause (struct camera_data *cam)
 
int cpia2_usb_stream_resume (struct camera_data *cam)
 
int cpia2_usb_change_streaming_alternate (struct camera_data *cam, unsigned int alt)
 

Macro Definition Documentation

#define ALLOW_CORRUPT   0 /* Causes collater to discard checksum */

Definition at line 51 of file cpia2.h.

#define ALOG (   fmt,
  args... 
)    printk(fmt,##args)

Definition at line 479 of file cpia2.h.

#define CAMACC_CIF   0x01

Definition at line 228 of file cpia2.h.

#define CAMACC_QCIF   0x04

Definition at line 230 of file cpia2.h.

#define CAMACC_QVGA   0x08

Definition at line 231 of file cpia2.h.

#define CAMACC_VGA   0x02

Definition at line 229 of file cpia2.h.

#define CAMERAACCESS_TYPE_BLOCK   0x00

Definition at line 139 of file cpia2.h.

#define CAMERAACCESS_TYPE_MASK   0x08

Definition at line 141 of file cpia2.h.

#define CAMERAACCESS_TYPE_RANDOM   0x04

Definition at line 140 of file cpia2.h.

#define CAMERAACCESS_TYPE_REPEAT   0x0C

Definition at line 142 of file cpia2.h.

#define CPIA2_ASIC_672   0x67

Definition at line 116 of file cpia2.h.

#define DBG (   fmn,
  args... 
)    do {} while(0)

Definition at line 482 of file cpia2.h.

#define DEBUG_DUMP_PATCH   0x00000002

Definition at line 75 of file cpia2.h.

#define DEBUG_DUMP_REGS   0x00000004

Definition at line 76 of file cpia2.h.

#define DEBUG_NONE   0

Definition at line 73 of file cpia2.h.

#define DEBUG_REG   0x00000001

Definition at line 74 of file cpia2.h.

#define DEFAULT_ALT   USBIF_ISO_6

Definition at line 147 of file cpia2.h.

#define DEFAULT_BRIGHTNESS   0x46

Definition at line 148 of file cpia2.h.

#define DEFAULT_CONTRAST   0x93

Definition at line 149 of file cpia2.h.

#define DEFAULT_SATURATION   0x7f

Definition at line 150 of file cpia2.h.

#define DEVICE_STV_672   0x0001

Definition at line 119 of file cpia2.h.

#define DEVICE_STV_676   0x0002

Definition at line 120 of file cpia2.h.

#define ERR (   fmt,
  args... 
)    ALOG(KERN_ERR "cpia2: "fmt,##args)

Definition at line 481 of file cpia2.h.

#define FLICKER_50   50

Definition at line 70 of file cpia2.h.

#define FLICKER_60   60

Definition at line 69 of file cpia2.h.

#define HI_POWER_MODE   CPIA2_SYSTEM_CONTROL_HIGH_POWER

Definition at line 153 of file cpia2.h.

#define JPEG_MARKER_COM   (1<<6) /* Comment segment */

Definition at line 104 of file cpia2.h.

#define KINFO (   fmt,
  args... 
)    printk(KERN_INFO fmt,##args)

Definition at line 485 of file cpia2.h.

#define LO_POWER_MODE   CPIA2_SYSTEM_CONTROL_LOW_POWER

Definition at line 154 of file cpia2.h.

#define LOG (   fmt,
  args... 
)    ALOG(KERN_INFO "cpia2: "fmt,##args)

Definition at line 480 of file cpia2.h.

#define NEVER_FLICKER   0

Definition at line 68 of file cpia2.h.

#define NUM_SBUF   2

Definition at line 349 of file cpia2.h.

#define STV_IMAGE_CIF_COLS   352

Definition at line 93 of file cpia2.h.

#define STV_IMAGE_CIF_ROWS   288

Definition at line 92 of file cpia2.h.

#define STV_IMAGE_QCIF_COLS   176

Definition at line 96 of file cpia2.h.

#define STV_IMAGE_QCIF_ROWS   144

Definition at line 95 of file cpia2.h.

#define STV_IMAGE_QVGA_COLS   320

Definition at line 102 of file cpia2.h.

#define STV_IMAGE_QVGA_ROWS   240

Definition at line 101 of file cpia2.h.

#define STV_IMAGE_VGA_COLS   640

Definition at line 99 of file cpia2.h.

#define STV_IMAGE_VGA_ROWS   480

Definition at line 98 of file cpia2.h.

#define TRANSFER_READ   0

Definition at line 144 of file cpia2.h.

#define TRANSFER_WRITE   1

Definition at line 145 of file cpia2.h.

#define USBIF_BULK   1

Definition at line 59 of file cpia2.h.

#define USBIF_CMDONLY   0

Definition at line 58 of file cpia2.h.

#define USBIF_ISO_1   2 /* 128 bytes/ms */

Definition at line 60 of file cpia2.h.

#define USBIF_ISO_2   3 /* 384 bytes/ms */

Definition at line 61 of file cpia2.h.

#define USBIF_ISO_3   4 /* 640 bytes/ms */

Definition at line 62 of file cpia2.h.

#define USBIF_ISO_4   5 /* 768 bytes/ms */

Definition at line 63 of file cpia2.h.

#define USBIF_ISO_5   6 /* 896 bytes/ms */

Definition at line 64 of file cpia2.h.

#define USBIF_ISO_6   7 /* 1023 bytes/ms */

Definition at line 65 of file cpia2.h.

#define XFER_BULK   1

Definition at line 55 of file cpia2.h.

#define XFER_ISOC   0

Definition at line 54 of file cpia2.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
VIDEOSIZE_VGA 
VIDEOSIZE_CIF 
VIDEOSIZE_QVGA 
VIDEOSIZE_QCIF 
VIDEOSIZE_288_216 
VIDEOSIZE_256_192 
VIDEOSIZE_224_168 
VIDEOSIZE_192_144 

Definition at line 81 of file cpia2.h.

anonymous enum
Enumerator:
CAMERAACCESS_SYSTEM 
CAMERAACCESS_VC 
CAMERAACCESS_VP 
CAMERAACCESS_IDATA 

Definition at line 132 of file cpia2.h.

anonymous enum
Enumerator:
CPIA2_CMD_NONE 
CPIA2_CMD_GET_VERSION 
CPIA2_CMD_GET_PNP_ID 
CPIA2_CMD_GET_ASIC_TYPE 
CPIA2_CMD_GET_SENSOR 
CPIA2_CMD_GET_VP_DEVICE 
CPIA2_CMD_GET_VP_BRIGHTNESS 
CPIA2_CMD_SET_VP_BRIGHTNESS 
CPIA2_CMD_GET_CONTRAST 
CPIA2_CMD_SET_CONTRAST 
CPIA2_CMD_GET_VP_SATURATION 
CPIA2_CMD_SET_VP_SATURATION 
CPIA2_CMD_GET_VP_GPIO_DIRECTION 
CPIA2_CMD_SET_VP_GPIO_DIRECTION 
CPIA2_CMD_GET_VP_GPIO_DATA 
CPIA2_CMD_SET_VP_GPIO_DATA 
CPIA2_CMD_GET_VC_MP_GPIO_DIRECTION 
CPIA2_CMD_SET_VC_MP_GPIO_DIRECTION 
CPIA2_CMD_GET_VC_MP_GPIO_DATA 
CPIA2_CMD_SET_VC_MP_GPIO_DATA 
CPIA2_CMD_ENABLE_PACKET_CTRL 
CPIA2_CMD_GET_FLICKER_MODES 
CPIA2_CMD_SET_FLICKER_MODES 
CPIA2_CMD_RESET_FIFO 
CPIA2_CMD_SET_HI_POWER 
CPIA2_CMD_SET_LOW_POWER 
CPIA2_CMD_CLEAR_V2W_ERR 
CPIA2_CMD_SET_USER_MODE 
CPIA2_CMD_GET_USER_MODE 
CPIA2_CMD_FRAMERATE_REQ 
CPIA2_CMD_SET_COMPRESSION_STATE 
CPIA2_CMD_GET_WAKEUP 
CPIA2_CMD_SET_WAKEUP 
CPIA2_CMD_GET_PW_CONTROL 
CPIA2_CMD_SET_PW_CONTROL 
CPIA2_CMD_GET_SYSTEM_CTRL 
CPIA2_CMD_SET_SYSTEM_CTRL 
CPIA2_CMD_GET_VP_SYSTEM_STATE 
CPIA2_CMD_GET_VP_SYSTEM_CTRL 
CPIA2_CMD_SET_VP_SYSTEM_CTRL 
CPIA2_CMD_GET_VP_EXP_MODES 
CPIA2_CMD_SET_VP_EXP_MODES 
CPIA2_CMD_GET_DEVICE_CONFIG 
CPIA2_CMD_SET_DEVICE_CONFIG 
CPIA2_CMD_SET_SERIAL_ADDR 
CPIA2_CMD_SET_SENSOR_CR1 
CPIA2_CMD_GET_VC_CONTROL 
CPIA2_CMD_SET_VC_CONTROL 
CPIA2_CMD_SET_TARGET_KB 
CPIA2_CMD_SET_DEF_JPEG_OPT 
CPIA2_CMD_REHASH_VP4 
CPIA2_CMD_GET_USER_EFFECTS 
CPIA2_CMD_SET_USER_EFFECTS 

Definition at line 160 of file cpia2.h.

Enumerator:
FRAME_EMPTY 
FRAME_READING 
FRAME_READY 
FRAME_ERROR 

Definition at line 122 of file cpia2.h.

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 110 of file cpia2.h.

enum user_cmd
Enumerator:
COMMAND_NONE 
COMMAND_SET_FPS 
COMMAND_SET_COLOR_PARAMS 
COMMAND_GET_COLOR_PARAMS 
COMMAND_SET_FORMAT 
COMMAND_SET_FLICKER 

Definition at line 216 of file cpia2.h.

Function Documentation

int cpia2_allocate_buffers ( struct camera_data cam)

Definition at line 2233 of file cpia2_core.c.

void cpia2_camera_release ( struct v4l2_device v4l2_dev)

Definition at line 1087 of file cpia2_v4l.c.

void cpia2_dbg_dump_registers ( struct camera_data cam)

Definition at line 1888 of file cpia2_core.c.

int cpia2_do_command ( struct camera_data cam,
unsigned int  command,
unsigned char  direction,
unsigned char  param 
)

Definition at line 140 of file cpia2_core.c.

void cpia2_free_buffers ( struct camera_data cam)

Definition at line 2282 of file cpia2_core.c.

int cpia2_init_camera ( struct camera_data cam)

Definition at line 2197 of file cpia2_core.c.

struct camera_data* cpia2_init_camera_struct ( struct usb_interface intf)
read

Definition at line 2167 of file cpia2_core.c.

int cpia2_match_video_size ( int  width,
int  height 
)

Definition at line 1012 of file cpia2_core.c.

unsigned int cpia2_poll ( struct camera_data cam,
struct file filp,
poll_table wait 
)

Definition at line 2359 of file cpia2_core.c.

long cpia2_read ( struct camera_data cam,
char __user buf,
unsigned long  count,
int  noblock 
)

Definition at line 2299 of file cpia2_core.c.

int cpia2_register_camera ( struct camera_data cam)

Definition at line 1106 of file cpia2_v4l.c.

int cpia2_remap_buffer ( struct camera_data cam,
struct vm_area_struct vma 
)

Definition at line 2384 of file cpia2_core.c.

int cpia2_reset_camera ( struct camera_data cam)

Definition at line 610 of file cpia2_core.c.

void cpia2_save_camera_state ( struct camera_data cam)

Definition at line 1566 of file cpia2_core.c.

int cpia2_send_command ( struct camera_data cam,
struct cpia2_command cmd 
)

Definition at line 520 of file cpia2_core.c.

void cpia2_set_brightness ( struct camera_data cam,
unsigned char  value 
)

Definition at line 1779 of file cpia2_core.c.

void cpia2_set_camera_state ( struct camera_data cam)
void cpia2_set_color_params ( struct camera_data cam)
void cpia2_set_contrast ( struct camera_data cam,
unsigned char  value 
)

Definition at line 1796 of file cpia2_core.c.

int cpia2_set_flicker_mode ( struct camera_data cam,
int  mode 
)

Definition at line 1581 of file cpia2_core.c.

void cpia2_set_format ( struct camera_data cam)

Definition at line 1867 of file cpia2_core.c.

int cpia2_set_fps ( struct camera_data cam,
int  framerate 
)

Definition at line 1737 of file cpia2_core.c.

int cpia2_set_gpio ( struct camera_data cam,
unsigned char  setting 
)

Definition at line 1704 of file cpia2_core.c.

int cpia2_set_low_power ( struct camera_data cam)

Definition at line 880 of file cpia2_core.c.

void cpia2_set_property_flip ( struct camera_data cam,
int  prop_val 
)

Definition at line 1654 of file cpia2_core.c.

void cpia2_set_property_mirror ( struct camera_data cam,
int  prop_val 
)

Definition at line 1679 of file cpia2_core.c.

void cpia2_set_saturation ( struct camera_data cam,
unsigned char  value 
)

Definition at line 1807 of file cpia2_core.c.

void cpia2_unregister_camera ( struct camera_data cam)

Definition at line 1187 of file cpia2_v4l.c.

int cpia2_usb_change_streaming_alternate ( struct camera_data cam,
unsigned int  alt 
)

Definition at line 456 of file cpia2_usb.c.

void cpia2_usb_cleanup ( void  )

Definition at line 951 of file cpia2_usb.c.

int cpia2_usb_init ( void  )

Definition at line 941 of file cpia2_usb.c.

int cpia2_usb_stream_pause ( struct camera_data cam)

Definition at line 755 of file cpia2_usb.c.

int cpia2_usb_stream_resume ( struct camera_data cam)

Definition at line 770 of file cpia2_usb.c.

int cpia2_usb_stream_start ( struct camera_data cam,
unsigned int  alternate 
)

Definition at line 708 of file cpia2_usb.c.

int cpia2_usb_stream_stop ( struct camera_data cam)

Definition at line 792 of file cpia2_usb.c.

int cpia2_usb_transfer_cmd ( struct camera_data cam,
void registers,
u8  request,
u8  start,
u8  count,
u8  direction 
)

Definition at line 589 of file cpia2_usb.c.