Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pwc-ctrl.c File Reference
#include <asm/errno.h>
#include "pwc.h"
#include "pwc-kiara.h"
#include "pwc-timon.h"
#include "pwc-dec1.h"
#include "pwc-dec23.h"
#include "pwc-nala.h"

Go to the source code of this file.

Data Structures

struct  Nala_table_entry
 

Macros

#define GET_STATUS_B00   0x0B00
 
#define SENSOR_TYPE_FORMATTER1   0x0C00
 
#define GET_STATUS_3000   0x3000
 
#define READ_RAW_Y_MEAN_FORMATTER   0x3100
 
#define SET_POWER_SAVE_MODE_FORMATTER   0x3200
 
#define MIRROR_IMAGE_FORMATTER   0x3300
 
#define LED_FORMATTER   0x3400
 
#define LOWLIGHT   0x3500
 
#define GET_STATUS_3600   0x3600
 
#define SENSOR_TYPE_FORMATTER2   0x3700
 
#define GET_STATUS_3800   0x3800
 
#define GET_STATUS_4000   0x4000
 
#define GET_STATUS_4100   0x4100 /* Get */
 
#define CTL_STATUS_4200   0x4200 /* [GS] 1 */
 
#define VIDEO_OUTPUT_CONTROL_FORMATTER   0x0100
 
#define PWC_FPS_MAX_NALA   8
 

Functions

int send_control_msg (struct pwc_device *pdev, u8 request, u16 value, void *buf, int buflen)
 
int pwc_set_video_mode (struct pwc_device *pdev, int width, int height, int pixfmt, int frames, int *compression, int send_to_cam)
 
unsigned int pwc_get_fps (struct pwc_device *pdev, unsigned int index, unsigned int size)
 
int pwc_get_u8_ctrl (struct pwc_device *pdev, u8 request, u16 value, int *data)
 
int pwc_set_u8_ctrl (struct pwc_device *pdev, u8 request, u16 value, u8 data)
 
int pwc_get_s8_ctrl (struct pwc_device *pdev, u8 request, u16 value, int *data)
 
int pwc_get_u16_ctrl (struct pwc_device *pdev, u8 request, u16 value, int *data)
 
int pwc_set_u16_ctrl (struct pwc_device *pdev, u8 request, u16 value, u16 data)
 
int pwc_button_ctrl (struct pwc_device *pdev, u16 value)
 
void pwc_camera_power (struct pwc_device *pdev, int power)
 
int pwc_set_leds (struct pwc_device *pdev, int on_value, int off_value)
 

Macro Definition Documentation

#define CTL_STATUS_4200   0x4200 /* [GS] 1 */

Definition at line 66 of file pwc-ctrl.c.

#define GET_STATUS_3000   0x3000

Definition at line 55 of file pwc-ctrl.c.

#define GET_STATUS_3600   0x3600

Definition at line 61 of file pwc-ctrl.c.

#define GET_STATUS_3800   0x3800

Definition at line 63 of file pwc-ctrl.c.

#define GET_STATUS_4000   0x4000

Definition at line 64 of file pwc-ctrl.c.

#define GET_STATUS_4100   0x4100 /* Get */

Definition at line 65 of file pwc-ctrl.c.

#define GET_STATUS_B00   0x0B00

Definition at line 53 of file pwc-ctrl.c.

#define LED_FORMATTER   0x3400

Definition at line 59 of file pwc-ctrl.c.

#define LOWLIGHT   0x3500

Definition at line 60 of file pwc-ctrl.c.

#define MIRROR_IMAGE_FORMATTER   0x3300

Definition at line 58 of file pwc-ctrl.c.

#define PWC_FPS_MAX_NALA   8

Definition at line 89 of file pwc-ctrl.c.

#define READ_RAW_Y_MEAN_FORMATTER   0x3100

Definition at line 56 of file pwc-ctrl.c.

#define SENSOR_TYPE_FORMATTER1   0x0C00

Definition at line 54 of file pwc-ctrl.c.

#define SENSOR_TYPE_FORMATTER2   0x3700

Definition at line 62 of file pwc-ctrl.c.

#define SET_POWER_SAVE_MODE_FORMATTER   0x3200

Definition at line 57 of file pwc-ctrl.c.

#define VIDEO_OUTPUT_CONTROL_FORMATTER   0x0100

Definition at line 69 of file pwc-ctrl.c.

Function Documentation

int pwc_button_ctrl ( struct pwc_device pdev,
u16  value 
)

Definition at line 471 of file pwc-ctrl.c.

void pwc_camera_power ( struct pwc_device pdev,
int  power 
)

Definition at line 483 of file pwc-ctrl.c.

unsigned int pwc_get_fps ( struct pwc_device pdev,
unsigned int  index,
unsigned int  size 
)

Definition at line 393 of file pwc-ctrl.c.

int pwc_get_s8_ctrl ( struct pwc_device pdev,
u8  request,
u16  value,
int data 
)

Definition at line 434 of file pwc-ctrl.c.

int pwc_get_u16_ctrl ( struct pwc_device pdev,
u8  request,
u16  value,
int data 
)

Definition at line 446 of file pwc-ctrl.c.

int pwc_get_u8_ctrl ( struct pwc_device pdev,
u8  request,
u16  value,
int data 
)

Definition at line 410 of file pwc-ctrl.c.

int pwc_set_leds ( struct pwc_device pdev,
int  on_value,
int  off_value 
)

Definition at line 504 of file pwc-ctrl.c.

int pwc_set_u16_ctrl ( struct pwc_device pdev,
u8  request,
u16  value,
u16  data 
)

Definition at line 458 of file pwc-ctrl.c.

int pwc_set_u8_ctrl ( struct pwc_device pdev,
u8  request,
u16  value,
u8  data 
)

Definition at line 422 of file pwc-ctrl.c.

int pwc_set_video_mode ( struct pwc_device pdev,
int  width,
int  height,
int  pixfmt,
int  frames,
int compression,
int  send_to_cam 
)

Functions in pwc-ctrl.c

Definition at line 328 of file pwc-ctrl.c.

int send_control_msg ( struct pwc_device pdev,
u8  request,
u16  value,
void buf,
int  buflen 
)

Definition at line 143 of file pwc-ctrl.c.