Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cpia2_core.c File Reference
#include "cpia2.h"
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <linux/firmware.h>

Go to the source code of this file.

Macros

#define FIRMWARE   "cpia2/stv0672_vp4.bin"
 
#define DIR(cmd)   ((cmd->direction == TRANSFER_WRITE) ? "Write" : "Read")
 
#define BINDEX(cmd)   (cmd->req_mode & 0x03)
 

Functions

 MODULE_FIRMWARE (FIRMWARE)
 
int cpia2_do_command (struct camera_data *cam, u32 command, u8 direction, u8 param)
 
int cpia2_send_command (struct camera_data *cam, struct cpia2_command *cmd)
 
int cpia2_reset_camera (struct camera_data *cam)
 
int cpia2_set_low_power (struct camera_data *cam)
 
int cpia2_match_video_size (int width, int height)
 
void cpia2_save_camera_state (struct camera_data *cam)
 
int cpia2_set_flicker_mode (struct camera_data *cam, int mode)
 
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)
 
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)
 
void cpia2_set_format (struct camera_data *cam)
 
void cpia2_dbg_dump_registers (struct camera_data *cam)
 
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)
 

Macro Definition Documentation

#define BINDEX (   cmd)    (cmd->req_mode & 0x03)

Definition at line 518 of file cpia2_core.c.

#define DIR (   cmd)    ((cmd->direction == TRANSFER_WRITE) ? "Write" : "Read")

Definition at line 517 of file cpia2_core.c.

#define FIRMWARE   "cpia2/stv0672_vp4.bin"

Definition at line 40 of file cpia2_core.c.

Function Documentation

int cpia2_allocate_buffers ( struct camera_data cam)

Definition at line 2233 of file cpia2_core.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,
u32  command,
u8  direction,
u8  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_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_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.

MODULE_FIRMWARE ( FIRMWARE  )