Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ispccp2.c File Reference
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/uaccess.h>
#include <linux/regulator/consumer.h>
#include "isp.h"
#include "ispreg.h"
#include "ispccp2.h"

Go to the source code of this file.

Macros

#define CCP2_LCx_CHANS_NUM   3
 
#define ISPCCP2_DAT_START_MIN   0
 
#define ISPCCP2_DAT_START_MAX   4095
 
#define ISPCCP2_DAT_SIZE_MIN   0
 
#define ISPCCP2_DAT_SIZE_MAX   4095
 
#define ISPCCP2_VPCLK_FRACDIV   65536
 
#define ISPCCP2_LCx_CTRL_FORMAT_RAW8_DPCM10_VP   0x12
 
#define ISPCCP2_LCx_CTRL_FORMAT_RAW10_VP   0x16
 
#define ISPCCP2_LCM_HSIZE_COUNT_MIN   16
 
#define ISPCCP2_LCM_HSIZE_COUNT_MAX   8191
 
#define ISPCCP2_LCM_HSIZE_SKIP_MIN   0
 
#define ISPCCP2_LCM_HSIZE_SKIP_MAX   8191
 
#define ISPCCP2_LCM_VSIZE_MIN   1
 
#define ISPCCP2_LCM_VSIZE_MAX   8191
 
#define ISPCCP2_LCM_HWORDS_MIN   1
 
#define ISPCCP2_LCM_HWORDS_MAX   4095
 
#define ISPCCP2_LCM_CTRL_BURST_SIZE_32X   5
 
#define ISPCCP2_LCM_CTRL_READ_THROTTLE_FULL   0
 
#define ISPCCP2_LCM_CTRL_SRC_DECOMPR_DPCM10   2
 
#define ISPCCP2_LCM_CTRL_SRC_FORMAT_RAW8   2
 
#define ISPCCP2_LCM_CTRL_SRC_FORMAT_RAW10   3
 
#define ISPCCP2_LCM_CTRL_DST_FORMAT_RAW10   3
 
#define ISPCCP2_LCM_CTRL_DST_PORT_VP   0
 
#define ISPCCP2_LCM_CTRL_DST_PORT_MEM   1
 
#define BIT_SET(var, shift, mask, val)
 
#define CCP2_PRINT_REGISTER(isp, name)
 

Functions

void omap3isp_ccp2_isr (struct isp_ccp2_device *ccp2)
 
void omap3isp_ccp2_unregister_entities (struct isp_ccp2_device *ccp2)
 
int omap3isp_ccp2_register_entities (struct isp_ccp2_device *ccp2, struct v4l2_device *vdev)
 
int omap3isp_ccp2_init (struct isp_device *isp)
 
void omap3isp_ccp2_cleanup (struct isp_device *isp)
 

Macro Definition Documentation

#define BIT_SET (   var,
  shift,
  mask,
  val 
)
Value:
do { \
var = ((var) & ~((mask) << (shift))) \
| ((val) << (shift)); \
} while (0)

Definition at line 68 of file ispccp2.c.

#define CCP2_LCx_CHANS_NUM   3

Definition at line 40 of file ispccp2.c.

#define CCP2_PRINT_REGISTER (   isp,
  name 
)
Value:
dev_dbg(isp->dev, "###CCP2 " #name "=0x%08x\n", \
isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_##name))

Definition at line 77 of file ispccp2.c.

#define ISPCCP2_DAT_SIZE_MAX   4095

Definition at line 45 of file ispccp2.c.

#define ISPCCP2_DAT_SIZE_MIN   0

Definition at line 44 of file ispccp2.c.

#define ISPCCP2_DAT_START_MAX   4095

Definition at line 43 of file ispccp2.c.

#define ISPCCP2_DAT_START_MIN   0

Definition at line 42 of file ispccp2.c.

#define ISPCCP2_LCM_CTRL_BURST_SIZE_32X   5

Definition at line 58 of file ispccp2.c.

#define ISPCCP2_LCM_CTRL_DST_FORMAT_RAW10   3

Definition at line 63 of file ispccp2.c.

#define ISPCCP2_LCM_CTRL_DST_PORT_MEM   1

Definition at line 65 of file ispccp2.c.

#define ISPCCP2_LCM_CTRL_DST_PORT_VP   0

Definition at line 64 of file ispccp2.c.

#define ISPCCP2_LCM_CTRL_READ_THROTTLE_FULL   0

Definition at line 59 of file ispccp2.c.

#define ISPCCP2_LCM_CTRL_SRC_DECOMPR_DPCM10   2

Definition at line 60 of file ispccp2.c.

#define ISPCCP2_LCM_CTRL_SRC_FORMAT_RAW10   3

Definition at line 62 of file ispccp2.c.

#define ISPCCP2_LCM_CTRL_SRC_FORMAT_RAW8   2

Definition at line 61 of file ispccp2.c.

#define ISPCCP2_LCM_HSIZE_COUNT_MAX   8191

Definition at line 51 of file ispccp2.c.

#define ISPCCP2_LCM_HSIZE_COUNT_MIN   16

Definition at line 50 of file ispccp2.c.

#define ISPCCP2_LCM_HSIZE_SKIP_MAX   8191

Definition at line 53 of file ispccp2.c.

#define ISPCCP2_LCM_HSIZE_SKIP_MIN   0

Definition at line 52 of file ispccp2.c.

#define ISPCCP2_LCM_HWORDS_MAX   4095

Definition at line 57 of file ispccp2.c.

#define ISPCCP2_LCM_HWORDS_MIN   1

Definition at line 56 of file ispccp2.c.

#define ISPCCP2_LCM_VSIZE_MAX   8191

Definition at line 55 of file ispccp2.c.

#define ISPCCP2_LCM_VSIZE_MIN   1

Definition at line 54 of file ispccp2.c.

#define ISPCCP2_LCx_CTRL_FORMAT_RAW10_VP   0x16

Definition at line 48 of file ispccp2.c.

#define ISPCCP2_LCx_CTRL_FORMAT_RAW8_DPCM10_VP   0x12

Definition at line 47 of file ispccp2.c.

#define ISPCCP2_VPCLK_FRACDIV   65536

Definition at line 46 of file ispccp2.c.

Function Documentation

void omap3isp_ccp2_cleanup ( struct isp_device isp)

Definition at line 1163 of file ispccp2.c.

int omap3isp_ccp2_init ( struct isp_device isp)

Definition at line 1120 of file ispccp2.c.

void omap3isp_ccp2_isr ( struct isp_ccp2_device ccp2)

Definition at line 563 of file ispccp2.c.

int omap3isp_ccp2_register_entities ( struct isp_ccp2_device ccp2,
struct v4l2_device vdev 
)

Definition at line 1021 of file ispccp2.c.

void omap3isp_ccp2_unregister_entities ( struct isp_ccp2_device ccp2)

Definition at line 1008 of file ispccp2.c.