Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
isp.h File Reference
#include <media/omap3isp.h>
#include <media/v4l2-device.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/wait.h>
#include <linux/iommu.h>
#include <plat/iommu.h>
#include <plat/iovmm.h>
#include "ispstat.h"
#include "ispccdc.h"
#include "ispreg.h"
#include "ispresizer.h"
#include "isppreview.h"
#include "ispcsiphy.h"
#include "ispcsi2.h"
#include "ispccp2.h"

Go to the source code of this file.

Data Structures

struct  isp_res_mapping
 
struct  isp_reg
 
struct  isp_platform_callback
 
struct  isp_device
 

Macros

#define IOMMU_FLAG   (IOVMF_ENDIAN_LITTLE | IOVMF_ELSZ_8)
 
#define ISP_TOK_TERM
 
#define to_isp_device(ptr_module)   container_of(ptr_module, struct isp_device, isp_##ptr_module)
 
#define to_device(ptr_module)   (to_isp_device(ptr_module)->dev)
 
#define ISP_REVISION_1_0   0x10
 
#define ISP_REVISION_2_0   0x20
 
#define ISP_REVISION_15_0   0xF0
 
#define ISP_CLK_CAM_ICK   0
 
#define ISP_CLK_CAM_MCLK   1
 
#define ISP_CLK_DPLL4_M5_CK   2
 
#define ISP_CLK_CSI2_FCK   3
 
#define ISP_CLK_L3_ICK   4
 
#define v4l2_dev_to_isp_device(dev)   container_of(dev, struct isp_device, v4l2_dev)
 

Enumerations

enum  isp_mem_resources {
  OMAP3_ISP_IOMEM_MAIN, OMAP3_ISP_IOMEM_CCP2, OMAP3_ISP_IOMEM_CCDC, OMAP3_ISP_IOMEM_HIST,
  OMAP3_ISP_IOMEM_H3A, OMAP3_ISP_IOMEM_PREV, OMAP3_ISP_IOMEM_RESZ, OMAP3_ISP_IOMEM_SBL,
  OMAP3_ISP_IOMEM_CSI2A_REGS1, OMAP3_ISP_IOMEM_CSIPHY2, OMAP3_ISP_IOMEM_CSI2A_REGS2, OMAP3_ISP_IOMEM_CSI2C_REGS1,
  OMAP3_ISP_IOMEM_CSIPHY1, OMAP3_ISP_IOMEM_CSI2C_REGS2, OMAP3_ISP_IOMEM_LAST
}
 
enum  isp_sbl_resource {
  OMAP3_ISP_SBL_CSI1_READ = 0x1, OMAP3_ISP_SBL_CSI1_WRITE = 0x2, OMAP3_ISP_SBL_CSI2A_WRITE = 0x4, OMAP3_ISP_SBL_CSI2C_WRITE = 0x8,
  OMAP3_ISP_SBL_CCDC_LSC_READ = 0x10, OMAP3_ISP_SBL_CCDC_WRITE = 0x20, OMAP3_ISP_SBL_PREVIEW_READ = 0x40, OMAP3_ISP_SBL_PREVIEW_WRITE = 0x80,
  OMAP3_ISP_SBL_RESIZER_READ = 0x100, OMAP3_ISP_SBL_RESIZER_WRITE = 0x200
}
 
enum  isp_subclk_resource {
  OMAP3_ISP_SUBCLK_CCDC = (1 << 0), OMAP3_ISP_SUBCLK_AEWB = (1 << 1), OMAP3_ISP_SUBCLK_AF = (1 << 2), OMAP3_ISP_SUBCLK_HIST = (1 << 3),
  OMAP3_ISP_SUBCLK_PREVIEW = (1 << 4), OMAP3_ISP_SUBCLK_RESIZER = (1 << 5)
}
 

Functions

void omap3isp_hist_dma_done (struct isp_device *isp)
 
void omap3isp_flush (struct isp_device *isp)
 
int omap3isp_module_sync_idle (struct media_entity *me, wait_queue_head_t *wait, atomic_t *stopping)
 
int omap3isp_module_sync_is_stopping (wait_queue_head_t *wait, atomic_t *stopping)
 
int omap3isp_pipeline_set_stream (struct isp_pipeline *pipe, enum isp_pipeline_stream_state state)
 
void omap3isp_configure_bridge (struct isp_device *isp, enum ccdc_input_entity input, const struct isp_parallel_platform_data *pdata, unsigned int shift, unsigned int bridge)
 
struct isp_deviceomap3isp_get (struct isp_device *isp)
 
void omap3isp_put (struct isp_device *isp)
 
void omap3isp_print_status (struct isp_device *isp)
 
void omap3isp_sbl_enable (struct isp_device *isp, enum isp_sbl_resource res)
 
void omap3isp_sbl_disable (struct isp_device *isp, enum isp_sbl_resource res)
 
void omap3isp_subclk_enable (struct isp_device *isp, enum isp_subclk_resource res)
 
void omap3isp_subclk_disable (struct isp_device *isp, enum isp_subclk_resource res)
 
int omap3isp_pipeline_pm_use (struct media_entity *entity, int use)
 
int omap3isp_register_entities (struct platform_device *pdev, struct v4l2_device *v4l2_dev)
 
void omap3isp_unregister_entities (struct platform_device *pdev)
 

Macro Definition Documentation

#define IOMMU_FLAG   (IOVMF_ENDIAN_LITTLE | IOVMF_ELSZ_8)

Definition at line 49 of file isp.h.

#define ISP_CLK_CAM_ICK   0

Definition at line 190 of file isp.h.

#define ISP_CLK_CAM_MCLK   1

Definition at line 191 of file isp.h.

#define ISP_CLK_CSI2_FCK   3

Definition at line 193 of file isp.h.

#define ISP_CLK_DPLL4_M5_CK   2

Definition at line 192 of file isp.h.

#define ISP_CLK_L3_ICK   4

Definition at line 194 of file isp.h.

#define ISP_REVISION_15_0   0xF0

Definition at line 102 of file isp.h.

#define ISP_REVISION_1_0   0x10

Definition at line 98 of file isp.h.

#define ISP_REVISION_2_0   0x20

Definition at line 100 of file isp.h.

#define ISP_TOK_TERM
Value:
0xFFFFFFFF /*
* terminating token for ISP
* modules reg list
*/

Definition at line 51 of file isp.h.

#define to_device (   ptr_module)    (to_isp_device(ptr_module)->dev)

Definition at line 54 of file isp.h.

#define to_isp_device (   ptr_module)    container_of(ptr_module, struct isp_device, isp_##ptr_module)

Definition at line 52 of file isp.h.

#define v4l2_dev_to_isp_device (   dev)    container_of(dev, struct isp_device, v4l2_dev)

Definition at line 218 of file isp.h.

Enumeration Type Documentation

Enumerator:
OMAP3_ISP_IOMEM_MAIN 
OMAP3_ISP_IOMEM_CCP2 
OMAP3_ISP_IOMEM_CCDC 
OMAP3_ISP_IOMEM_HIST 
OMAP3_ISP_IOMEM_H3A 
OMAP3_ISP_IOMEM_PREV 
OMAP3_ISP_IOMEM_RESZ 
OMAP3_ISP_IOMEM_SBL 
OMAP3_ISP_IOMEM_CSI2A_REGS1 
OMAP3_ISP_IOMEM_CSIPHY2 
OMAP3_ISP_IOMEM_CSI2A_REGS2 
OMAP3_ISP_IOMEM_CSI2C_REGS1 
OMAP3_ISP_IOMEM_CSIPHY1 
OMAP3_ISP_IOMEM_CSI2C_REGS2 
OMAP3_ISP_IOMEM_LAST 

Definition at line 57 of file isp.h.

Enumerator:
OMAP3_ISP_SBL_CSI1_READ 
OMAP3_ISP_SBL_CSI1_WRITE 
OMAP3_ISP_SBL_CSI2A_WRITE 
OMAP3_ISP_SBL_CSI2C_WRITE 
OMAP3_ISP_SBL_CCDC_LSC_READ 
OMAP3_ISP_SBL_CCDC_WRITE 
OMAP3_ISP_SBL_PREVIEW_READ 
OMAP3_ISP_SBL_PREVIEW_WRITE 
OMAP3_ISP_SBL_RESIZER_READ 
OMAP3_ISP_SBL_RESIZER_WRITE 

Definition at line 75 of file isp.h.

Enumerator:
OMAP3_ISP_SUBCLK_CCDC 
OMAP3_ISP_SUBCLK_AEWB 
OMAP3_ISP_SUBCLK_AF 
OMAP3_ISP_SUBCLK_HIST 
OMAP3_ISP_SUBCLK_PREVIEW 
OMAP3_ISP_SUBCLK_RESIZER 

Definition at line 88 of file isp.h.

Function Documentation

void omap3isp_configure_bridge ( struct isp_device isp,
enum ccdc_input_entity  input,
const struct isp_parallel_platform_data pdata,
unsigned int  shift,
unsigned int  bridge 
)

Definition at line 295 of file isp.c.

void omap3isp_flush ( struct isp_device isp)

Definition at line 144 of file isp.c.

struct isp_device* omap3isp_get ( struct isp_device isp)
read

Definition at line 1482 of file isp.c.

void omap3isp_hist_dma_done ( struct isp_device isp)

Definition at line 337 of file isp.c.

int omap3isp_module_sync_idle ( struct media_entity me,
wait_queue_head_t wait,
atomic_t stopping 
)

Definition at line 1207 of file isp.c.

int omap3isp_module_sync_is_stopping ( wait_queue_head_t wait,
atomic_t stopping 
)

Definition at line 1264 of file isp.c.

int omap3isp_pipeline_pm_use ( struct media_entity entity,
int  use 
)

Definition at line 649 of file isp.c.

int omap3isp_pipeline_set_stream ( struct isp_pipeline pipe,
enum isp_pipeline_stream_state  state 
)

Definition at line 901 of file isp.c.

void omap3isp_print_status ( struct isp_device isp)

Definition at line 1531 of file isp.c.

void omap3isp_put ( struct isp_device isp)

Definition at line 1493 of file isp.c.

int omap3isp_register_entities ( struct platform_device pdev,
struct v4l2_device v4l2_dev 
)
void omap3isp_sbl_disable ( struct isp_device isp,
enum isp_sbl_resource  res 
)

Definition at line 1171 of file isp.c.

void omap3isp_sbl_enable ( struct isp_device isp,
enum isp_sbl_resource  res 
)

Definition at line 1144 of file isp.c.

void omap3isp_subclk_disable ( struct isp_device isp,
enum isp_subclk_resource  res 
)

Definition at line 1321 of file isp.c.

void omap3isp_subclk_enable ( struct isp_device isp,
enum isp_subclk_resource  res 
)

Definition at line 1313 of file isp.c.

void omap3isp_unregister_entities ( struct platform_device pdev)