Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
soc_camera.h File Reference
#include <linux/bitops.h>
#include <linux/device.h>
#include <linux/mutex.h>
#include <linux/pm.h>
#include <linux/videodev2.h>
#include <media/videobuf-core.h>
#include <media/videobuf2-core.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-device.h>
#include <linux/i2c.h>

Go to the source code of this file.

Data Structures

struct  soc_camera_device
 
struct  soc_camera_host
 
struct  soc_camera_host_ops
 
struct  soc_camera_link
 

Macros

#define SOCAM_HOST_CAP_STRIDE   (1 << 0)
 
#define SOCAM_SENSOR_INVERT_PCLK   (1 << 0)
 
#define SOCAM_SENSOR_INVERT_MCLK   (1 << 1)
 
#define SOCAM_SENSOR_INVERT_HSYNC   (1 << 2)
 
#define SOCAM_SENSOR_INVERT_VSYNC   (1 << 3)
 
#define SOCAM_SENSOR_INVERT_DATA   (1 << 4)
 
#define SOCAM_SENSE_PCLK_CHANGED   (1 << 0)
 
#define SOCAM_DATAWIDTH(x)   BIT((x) - 1)
 
#define SOCAM_DATAWIDTH_4   SOCAM_DATAWIDTH(4)
 
#define SOCAM_DATAWIDTH_8   SOCAM_DATAWIDTH(8)
 
#define SOCAM_DATAWIDTH_9   SOCAM_DATAWIDTH(9)
 
#define SOCAM_DATAWIDTH_10   SOCAM_DATAWIDTH(10)
 
#define SOCAM_DATAWIDTH_15   SOCAM_DATAWIDTH(15)
 
#define SOCAM_DATAWIDTH_16   SOCAM_DATAWIDTH(16)
 
#define SOCAM_DATAWIDTH_MASK
 

Functions

int soc_camera_host_register (struct soc_camera_host *ici)
 
void soc_camera_host_unregister (struct soc_camera_host *ici)
 
struct soc_camera_format_xlate * soc_camera_xlate_by_fourcc (struct soc_camera_device *icd, unsigned int fourcc)
 

Macro Definition Documentation

#define SOCAM_DATAWIDTH (   x)    BIT((x) - 1)
#define SOCAM_DATAWIDTH_10   SOCAM_DATAWIDTH(10)
#define SOCAM_DATAWIDTH_15   SOCAM_DATAWIDTH(15)
#define SOCAM_DATAWIDTH_16   SOCAM_DATAWIDTH(16)
#define SOCAM_DATAWIDTH_4   SOCAM_DATAWIDTH(4)
#define SOCAM_DATAWIDTH_8   SOCAM_DATAWIDTH(8)
#define SOCAM_DATAWIDTH_9   SOCAM_DATAWIDTH(9)
#define SOCAM_DATAWIDTH_MASK
Value:
SOCAM_DATAWIDTH_9 | SOCAM_DATAWIDTH_10 | \
SOCAM_DATAWIDTH_15 | SOCAM_DATAWIDTH_16)
#define SOCAM_HOST_CAP_STRIDE   (1 << 0)

Definition at line 60 of file soc_camera.h.

#define SOCAM_SENSE_PCLK_CHANGED   (1 << 0)
#define SOCAM_SENSOR_INVERT_DATA   (1 << 4)

Definition at line 115 of file soc_camera.h.

#define SOCAM_SENSOR_INVERT_HSYNC   (1 << 2)

Definition at line 113 of file soc_camera.h.

#define SOCAM_SENSOR_INVERT_MCLK   (1 << 1)

Definition at line 112 of file soc_camera.h.

#define SOCAM_SENSOR_INVERT_PCLK   (1 << 0)

Definition at line 111 of file soc_camera.h.

#define SOCAM_SENSOR_INVERT_VSYNC   (1 << 3)

Definition at line 114 of file soc_camera.h.

Function Documentation

int soc_camera_host_register ( struct soc_camera_host ici)

Definition at line 1338 of file soc_camera.c.

void soc_camera_host_unregister ( struct soc_camera_host ici)

Definition at line 1397 of file soc_camera.c.

struct soc_camera_format_xlate* soc_camera_xlate_by_fourcc ( struct soc_camera_device icd,
unsigned int  fourcc 
)
read

Definition at line 125 of file soc_camera.c.