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

Go to the source code of this file.

Macros

#define FRAMES_PER_DESC   10
 
#define FRAME_SIZE_PER_DESC   frame_sizes[cam->cur_alt]
 

Functions

 MODULE_DEVICE_TABLE (usb, cpia2_id_table)
 
int cpia2_usb_change_streaming_alternate (struct camera_data *cam, unsigned int alt)
 
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_pause (struct camera_data *cam)
 
int cpia2_usb_stream_resume (struct camera_data *cam)
 
int cpia2_usb_stream_stop (struct camera_data *cam)
 
int cpia2_usb_init (void)
 
void cpia2_usb_cleanup (void)
 

Macro Definition Documentation

#define FRAME_SIZE_PER_DESC   frame_sizes[cam->cur_alt]

Definition at line 50 of file cpia2_usb.c.

#define FRAMES_PER_DESC   10

Definition at line 49 of file cpia2_usb.c.

Function Documentation

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.

MODULE_DEVICE_TABLE ( usb  ,
cpia2_id_table   
)