Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ispcsi2.h File Reference
#include <linux/types.h>
#include <linux/videodev2.h>

Go to the source code of this file.

Data Structures

struct  isp_csi2_ctx_cfg
 
struct  isp_csi2_timing_cfg
 
struct  isp_csi2_ctrl_cfg
 
struct  isp_csi2_device
 

Macros

#define ISP_CSI2_MAX_CTX_NUM   7
 
#define CSI2_PAD_SINK   0
 
#define CSI2_PAD_SOURCE   1
 
#define CSI2_PADS_NUM   2
 
#define CSI2_OUTPUT_CCDC   (1 << 0)
 
#define CSI2_OUTPUT_MEMORY   (1 << 1)
 

Enumerations

enum  isp_csi2_pix_formats {
  CSI2_PIX_FMT_OTHERS = 0, CSI2_PIX_FMT_YUV422_8BIT = 0x1e, CSI2_PIX_FMT_YUV422_8BIT_VP = 0x9e, CSI2_PIX_FMT_RAW10_EXP16 = 0xab,
  CSI2_PIX_FMT_RAW10_EXP16_VP = 0x12f, CSI2_PIX_FMT_RAW8 = 0x2a, CSI2_PIX_FMT_RAW8_DPCM10_EXP16 = 0x2aa, CSI2_PIX_FMT_RAW8_DPCM10_VP = 0x32a,
  CSI2_PIX_FMT_RAW8_VP = 0x12a, CSI2_USERDEF_8BIT_DATA1_DPCM10_VP = 0x340, CSI2_USERDEF_8BIT_DATA1_DPCM10 = 0x2c0, CSI2_USERDEF_8BIT_DATA1 = 0x40
}
 
enum  isp_csi2_irqevents {
  OCP_ERR_IRQ = 0x4000, SHORT_PACKET_IRQ = 0x2000, ECC_CORRECTION_IRQ = 0x1000, ECC_NO_CORRECTION_IRQ = 0x800,
  COMPLEXIO2_ERR_IRQ = 0x400, COMPLEXIO1_ERR_IRQ = 0x200, FIFO_OVF_IRQ = 0x100, CONTEXT7 = 0x80,
  CONTEXT6 = 0x40, CONTEXT5 = 0x20, CONTEXT4 = 0x10, CONTEXT3 = 0x8,
  CONTEXT2 = 0x4, CONTEXT1 = 0x2, CONTEXT0 = 0x1
}
 
enum  isp_csi2_ctx_irqevents {
  CTX_ECC_CORRECTION = 0x100, CTX_LINE_NUMBER = 0x80, CTX_FRAME_NUMBER = 0x40, CTX_CS = 0x20,
  CTX_LE = 0x8, CTX_LS = 0x4, CTX_FE = 0x2, CTX_FS = 0x1
}
 
enum  isp_csi2_frame_mode { ISP_CSI2_FRAME_IMMEDIATE, ISP_CSI2_FRAME_AFTERFEC }
 

Functions

void omap3isp_csi2_isr (struct isp_csi2_device *csi2)
 
int omap3isp_csi2_reset (struct isp_csi2_device *csi2)
 
int omap3isp_csi2_init (struct isp_device *isp)
 
void omap3isp_csi2_cleanup (struct isp_device *isp)
 
void omap3isp_csi2_unregister_entities (struct isp_csi2_device *csi2)
 
int omap3isp_csi2_register_entities (struct isp_csi2_device *csi2, struct v4l2_device *vdev)
 

Macro Definition Documentation

#define CSI2_OUTPUT_CCDC   (1 << 0)

Definition at line 128 of file ispcsi2.h.

#define CSI2_OUTPUT_MEMORY   (1 << 1)

Definition at line 129 of file ispcsi2.h.

#define CSI2_PAD_SINK   0

Definition at line 124 of file ispcsi2.h.

#define CSI2_PAD_SOURCE   1

Definition at line 125 of file ispcsi2.h.

#define CSI2_PADS_NUM   2

Definition at line 126 of file ispcsi2.h.

#define ISP_CSI2_MAX_CTX_NUM   7

Definition at line 85 of file ispcsi2.h.

Enumeration Type Documentation

Enumerator:
CTX_ECC_CORRECTION 
CTX_LINE_NUMBER 
CTX_FRAME_NUMBER 
CTX_CS 
CTX_LE 
CTX_LS 
CTX_FE 
CTX_FS 

Definition at line 69 of file ispcsi2.h.

Enumerator:
ISP_CSI2_FRAME_IMMEDIATE 
ISP_CSI2_FRAME_AFTERFEC 

Definition at line 80 of file ispcsi2.h.

Enumerator:
OCP_ERR_IRQ 
SHORT_PACKET_IRQ 
ECC_CORRECTION_IRQ 
ECC_NO_CORRECTION_IRQ 
COMPLEXIO2_ERR_IRQ 
COMPLEXIO1_ERR_IRQ 
FIFO_OVF_IRQ 
CONTEXT7 
CONTEXT6 
CONTEXT5 
CONTEXT4 
CONTEXT3 
CONTEXT2 
CONTEXT1 
CONTEXT0 

Definition at line 51 of file ispcsi2.h.

Enumerator:
CSI2_PIX_FMT_OTHERS 
CSI2_PIX_FMT_YUV422_8BIT 
CSI2_PIX_FMT_YUV422_8BIT_VP 
CSI2_PIX_FMT_RAW10_EXP16 
CSI2_PIX_FMT_RAW10_EXP16_VP 
CSI2_PIX_FMT_RAW8 
CSI2_PIX_FMT_RAW8_DPCM10_EXP16 
CSI2_PIX_FMT_RAW8_DPCM10_VP 
CSI2_PIX_FMT_RAW8_VP 
CSI2_USERDEF_8BIT_DATA1_DPCM10_VP 
CSI2_USERDEF_8BIT_DATA1_DPCM10 
CSI2_USERDEF_8BIT_DATA1 

Definition at line 36 of file ispcsi2.h.

Function Documentation

void omap3isp_csi2_cleanup ( struct isp_device isp)

Definition at line 1322 of file ispcsi2.c.

int omap3isp_csi2_init ( struct isp_device isp)

Definition at line 1288 of file ispcsi2.c.

void omap3isp_csi2_isr ( struct isp_csi2_device csi2)

Definition at line 742 of file ispcsi2.c.

int omap3isp_csi2_register_entities ( struct isp_csi2_device csi2,
struct v4l2_device vdev 
)

Definition at line 1202 of file ispcsi2.c.

int omap3isp_csi2_reset ( struct isp_csi2_device csi2)

Definition at line 493 of file ispcsi2.c.

void omap3isp_csi2_unregister_entities ( struct isp_csi2_device csi2)

Definition at line 1196 of file ispcsi2.c.