Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ipu-dp.c File Reference
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/err.h>
#include "imx-ipu-v3.h"
#include "ipu-prv.h"

Go to the source code of this file.

Data Structures

struct  ipu_dp
 
struct  ipu_flow
 
struct  ipu_dp_priv
 

Macros

#define DP_SYNC   0
 
#define DP_ASYNC0   0x60
 
#define DP_ASYNC1   0xBC
 
#define DP_COM_CONF   0x0
 
#define DP_GRAPH_WIND_CTRL   0x0004
 
#define DP_FG_POS   0x0008
 
#define DP_CSC_A_0   0x0044
 
#define DP_CSC_A_1   0x0048
 
#define DP_CSC_A_2   0x004C
 
#define DP_CSC_A_3   0x0050
 
#define DP_CSC_0   0x0054
 
#define DP_CSC_1   0x0058
 
#define DP_COM_CONF_FG_EN   (1 << 0)
 
#define DP_COM_CONF_GWSEL   (1 << 1)
 
#define DP_COM_CONF_GWAM   (1 << 2)
 
#define DP_COM_CONF_GWCKE   (1 << 3)
 
#define DP_COM_CONF_CSC_DEF_MASK   (3 << 8)
 
#define DP_COM_CONF_CSC_DEF_OFFSET   8
 
#define DP_COM_CONF_CSC_DEF_FG   (3 << 8)
 
#define DP_COM_CONF_CSC_DEF_BG   (2 << 8)
 
#define DP_COM_CONF_CSC_DEF_BOTH   (1 << 8)
 

Functions

int ipu_dp_set_global_alpha (struct ipu_dp *dp, bool enable, u8 alpha, bool bg_chan)
 
 EXPORT_SYMBOL_GPL (ipu_dp_set_global_alpha)
 
int ipu_dp_set_window_pos (struct ipu_dp *dp, u16 x_pos, u16 y_pos)
 
 EXPORT_SYMBOL_GPL (ipu_dp_set_window_pos)
 
int ipu_dp_setup_channel (struct ipu_dp *dp, enum ipu_color_space in, enum ipu_color_space out)
 
 EXPORT_SYMBOL_GPL (ipu_dp_setup_channel)
 
int ipu_dp_enable_channel (struct ipu_dp *dp)
 
 EXPORT_SYMBOL_GPL (ipu_dp_enable_channel)
 
void ipu_dp_disable_channel (struct ipu_dp *dp)
 
 EXPORT_SYMBOL_GPL (ipu_dp_disable_channel)
 
struct ipu_dpipu_dp_get (struct ipu_soc *ipu, unsigned int flow)
 
 EXPORT_SYMBOL_GPL (ipu_dp_get)
 
void ipu_dp_put (struct ipu_dp *dp)
 
 EXPORT_SYMBOL_GPL (ipu_dp_put)
 
int ipu_dp_init (struct ipu_soc *ipu, struct device *dev, unsigned long base)
 
void ipu_dp_exit (struct ipu_soc *ipu)
 

Macro Definition Documentation

#define DP_ASYNC0   0x60

Definition at line 26 of file ipu-dp.c.

#define DP_ASYNC1   0xBC

Definition at line 27 of file ipu-dp.c.

#define DP_COM_CONF   0x0

Definition at line 29 of file ipu-dp.c.

#define DP_COM_CONF_CSC_DEF_BG   (2 << 8)

Definition at line 46 of file ipu-dp.c.

#define DP_COM_CONF_CSC_DEF_BOTH   (1 << 8)

Definition at line 47 of file ipu-dp.c.

#define DP_COM_CONF_CSC_DEF_FG   (3 << 8)

Definition at line 45 of file ipu-dp.c.

#define DP_COM_CONF_CSC_DEF_MASK   (3 << 8)

Definition at line 43 of file ipu-dp.c.

#define DP_COM_CONF_CSC_DEF_OFFSET   8

Definition at line 44 of file ipu-dp.c.

#define DP_COM_CONF_FG_EN   (1 << 0)

Definition at line 39 of file ipu-dp.c.

#define DP_COM_CONF_GWAM   (1 << 2)

Definition at line 41 of file ipu-dp.c.

#define DP_COM_CONF_GWCKE   (1 << 3)

Definition at line 42 of file ipu-dp.c.

#define DP_COM_CONF_GWSEL   (1 << 1)

Definition at line 40 of file ipu-dp.c.

#define DP_CSC_0   0x0054

Definition at line 36 of file ipu-dp.c.

#define DP_CSC_1   0x0058

Definition at line 37 of file ipu-dp.c.

#define DP_CSC_A_0   0x0044

Definition at line 32 of file ipu-dp.c.

#define DP_CSC_A_1   0x0048

Definition at line 33 of file ipu-dp.c.

#define DP_CSC_A_2   0x004C

Definition at line 34 of file ipu-dp.c.

#define DP_CSC_A_3   0x0050

Definition at line 35 of file ipu-dp.c.

#define DP_FG_POS   0x0008

Definition at line 31 of file ipu-dp.c.

#define DP_GRAPH_WIND_CTRL   0x0004

Definition at line 30 of file ipu-dp.c.

#define DP_SYNC   0

Definition at line 25 of file ipu-dp.c.

Function Documentation

EXPORT_SYMBOL_GPL ( ipu_dp_set_global_alpha  )
EXPORT_SYMBOL_GPL ( ipu_dp_set_window_pos  )
EXPORT_SYMBOL_GPL ( ipu_dp_setup_channel  )
EXPORT_SYMBOL_GPL ( ipu_dp_enable_channel  )
EXPORT_SYMBOL_GPL ( ipu_dp_disable_channel  )
EXPORT_SYMBOL_GPL ( ipu_dp_get  )
EXPORT_SYMBOL_GPL ( ipu_dp_put  )
void ipu_dp_disable_channel ( struct ipu_dp dp)

Definition at line 244 of file ipu-dp.c.

int ipu_dp_enable_channel ( struct ipu_dp dp)

Definition at line 216 of file ipu-dp.c.

void ipu_dp_exit ( struct ipu_soc ipu)

Definition at line 334 of file ipu-dp.c.

struct ipu_dp* ipu_dp_get ( struct ipu_soc ipu,
unsigned int  flow 
)
read

Definition at line 278 of file ipu-dp.c.

int ipu_dp_init ( struct ipu_soc ipu,
struct device dev,
unsigned long  base 
)

Definition at line 306 of file ipu-dp.c.

void ipu_dp_put ( struct ipu_dp dp)

Definition at line 300 of file ipu-dp.c.

int ipu_dp_set_global_alpha ( struct ipu_dp dp,
bool  enable,
u8  alpha,
bool  bg_chan 
)

Definition at line 85 of file ipu-dp.c.

int ipu_dp_set_window_pos ( struct ipu_dp dp,
u16  x_pos,
u16  y_pos 
)

Definition at line 121 of file ipu-dp.c.

int ipu_dp_setup_channel ( struct ipu_dp dp,
enum ipu_color_space  in,
enum ipu_color_space  out 
)

Definition at line 174 of file ipu-dp.c.