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

Go to the source code of this file.

Data Structures

struct  vpif_channel_config_params
 
struct  vpif_vbi_params
 
struct  vpif_video_params
 
struct  vpif_params
 
union  vpif_params::param
 

Macros

#define VPIF_NUM_CHANNELS   (4)
 
#define VPIF_CAPTURE_NUM_CHANNELS   (2)
 
#define VPIF_DISPLAY_NUM_CHANNELS   (2)
 
#define regr(reg)   readl((reg) + vpif_base)
 
#define regw(value, reg)   writel(value, (reg + vpif_base))
 
#define VPIF_PID   (0x0000)
 
#define VPIF_CH0_CTRL   (0x0004)
 
#define VPIF_CH1_CTRL   (0x0008)
 
#define VPIF_CH2_CTRL   (0x000C)
 
#define VPIF_CH3_CTRL   (0x0010)
 
#define VPIF_INTEN   (0x0020)
 
#define VPIF_INTEN_SET   (0x0024)
 
#define VPIF_INTEN_CLR   (0x0028)
 
#define VPIF_STATUS   (0x002C)
 
#define VPIF_STATUS_CLR   (0x0030)
 
#define VPIF_EMULATION_CTRL   (0x0034)
 
#define VPIF_REQ_SIZE   (0x0038)
 
#define VPIF_CH0_TOP_STRT_ADD_LUMA   (0x0040)
 
#define VPIF_CH0_BTM_STRT_ADD_LUMA   (0x0044)
 
#define VPIF_CH0_TOP_STRT_ADD_CHROMA   (0x0048)
 
#define VPIF_CH0_BTM_STRT_ADD_CHROMA   (0x004c)
 
#define VPIF_CH0_TOP_STRT_ADD_HANC   (0x0050)
 
#define VPIF_CH0_BTM_STRT_ADD_HANC   (0x0054)
 
#define VPIF_CH0_TOP_STRT_ADD_VANC   (0x0058)
 
#define VPIF_CH0_BTM_STRT_ADD_VANC   (0x005c)
 
#define VPIF_CH0_SP_CFG   (0x0060)
 
#define VPIF_CH0_IMG_ADD_OFST   (0x0064)
 
#define VPIF_CH0_HANC_ADD_OFST   (0x0068)
 
#define VPIF_CH0_H_CFG   (0x006c)
 
#define VPIF_CH0_V_CFG_00   (0x0070)
 
#define VPIF_CH0_V_CFG_01   (0x0074)
 
#define VPIF_CH0_V_CFG_02   (0x0078)
 
#define VPIF_CH0_V_CFG_03   (0x007c)
 
#define VPIF_CH1_TOP_STRT_ADD_LUMA   (0x0080)
 
#define VPIF_CH1_BTM_STRT_ADD_LUMA   (0x0084)
 
#define VPIF_CH1_TOP_STRT_ADD_CHROMA   (0x0088)
 
#define VPIF_CH1_BTM_STRT_ADD_CHROMA   (0x008c)
 
#define VPIF_CH1_TOP_STRT_ADD_HANC   (0x0090)
 
#define VPIF_CH1_BTM_STRT_ADD_HANC   (0x0094)
 
#define VPIF_CH1_TOP_STRT_ADD_VANC   (0x0098)
 
#define VPIF_CH1_BTM_STRT_ADD_VANC   (0x009c)
 
#define VPIF_CH1_SP_CFG   (0x00a0)
 
#define VPIF_CH1_IMG_ADD_OFST   (0x00a4)
 
#define VPIF_CH1_HANC_ADD_OFST   (0x00a8)
 
#define VPIF_CH1_H_CFG   (0x00ac)
 
#define VPIF_CH1_V_CFG_00   (0x00b0)
 
#define VPIF_CH1_V_CFG_01   (0x00b4)
 
#define VPIF_CH1_V_CFG_02   (0x00b8)
 
#define VPIF_CH1_V_CFG_03   (0x00bc)
 
#define VPIF_CH2_TOP_STRT_ADD_LUMA   (0x00c0)
 
#define VPIF_CH2_BTM_STRT_ADD_LUMA   (0x00c4)
 
#define VPIF_CH2_TOP_STRT_ADD_CHROMA   (0x00c8)
 
#define VPIF_CH2_BTM_STRT_ADD_CHROMA   (0x00cc)
 
#define VPIF_CH2_TOP_STRT_ADD_HANC   (0x00d0)
 
#define VPIF_CH2_BTM_STRT_ADD_HANC   (0x00d4)
 
#define VPIF_CH2_TOP_STRT_ADD_VANC   (0x00d8)
 
#define VPIF_CH2_BTM_STRT_ADD_VANC   (0x00dc)
 
#define VPIF_CH2_SP_CFG   (0x00e0)
 
#define VPIF_CH2_IMG_ADD_OFST   (0x00e4)
 
#define VPIF_CH2_HANC_ADD_OFST   (0x00e8)
 
#define VPIF_CH2_H_CFG   (0x00ec)
 
#define VPIF_CH2_V_CFG_00   (0x00f0)
 
#define VPIF_CH2_V_CFG_01   (0x00f4)
 
#define VPIF_CH2_V_CFG_02   (0x00f8)
 
#define VPIF_CH2_V_CFG_03   (0x00fc)
 
#define VPIF_CH2_HANC0_STRT   (0x0100)
 
#define VPIF_CH2_HANC0_SIZE   (0x0104)
 
#define VPIF_CH2_HANC1_STRT   (0x0108)
 
#define VPIF_CH2_HANC1_SIZE   (0x010c)
 
#define VPIF_CH2_VANC0_STRT   (0x0110)
 
#define VPIF_CH2_VANC0_SIZE   (0x0114)
 
#define VPIF_CH2_VANC1_STRT   (0x0118)
 
#define VPIF_CH2_VANC1_SIZE   (0x011c)
 
#define VPIF_CH3_TOP_STRT_ADD_LUMA   (0x0140)
 
#define VPIF_CH3_BTM_STRT_ADD_LUMA   (0x0144)
 
#define VPIF_CH3_TOP_STRT_ADD_CHROMA   (0x0148)
 
#define VPIF_CH3_BTM_STRT_ADD_CHROMA   (0x014c)
 
#define VPIF_CH3_TOP_STRT_ADD_HANC   (0x0150)
 
#define VPIF_CH3_BTM_STRT_ADD_HANC   (0x0154)
 
#define VPIF_CH3_TOP_STRT_ADD_VANC   (0x0158)
 
#define VPIF_CH3_BTM_STRT_ADD_VANC   (0x015c)
 
#define VPIF_CH3_SP_CFG   (0x0160)
 
#define VPIF_CH3_IMG_ADD_OFST   (0x0164)
 
#define VPIF_CH3_HANC_ADD_OFST   (0x0168)
 
#define VPIF_CH3_H_CFG   (0x016c)
 
#define VPIF_CH3_V_CFG_00   (0x0170)
 
#define VPIF_CH3_V_CFG_01   (0x0174)
 
#define VPIF_CH3_V_CFG_02   (0x0178)
 
#define VPIF_CH3_V_CFG_03   (0x017c)
 
#define VPIF_CH3_HANC0_STRT   (0x0180)
 
#define VPIF_CH3_HANC0_SIZE   (0x0184)
 
#define VPIF_CH3_HANC1_STRT   (0x0188)
 
#define VPIF_CH3_HANC1_SIZE   (0x018c)
 
#define VPIF_CH3_VANC0_STRT   (0x0190)
 
#define VPIF_CH3_VANC0_SIZE   (0x0194)
 
#define VPIF_CH3_VANC1_STRT   (0x0198)
 
#define VPIF_CH3_VANC1_SIZE   (0x019c)
 
#define VPIF_IODFT_CTRL   (0x01c0)
 
#define GENERATE_MASK(bits, pos)   ((((0xFFFFFFFF) << (32 - bits)) >> (32 - bits)) << pos)
 
#define VPIF_CH_DATA_MODE_BIT   (2)
 
#define VPIF_CH_YC_MUX_BIT   (3)
 
#define VPIF_CH_SDR_FMT_BIT   (4)
 
#define VPIF_CH_HANC_EN_BIT   (8)
 
#define VPIF_CH_VANC_EN_BIT   (9)
 
#define VPIF_CAPTURE_CH_NIP   (10)
 
#define VPIF_DISPLAY_CH_NIP   (11)
 
#define VPIF_DISPLAY_PIX_EN_BIT   (10)
 
#define VPIF_CH_INPUT_FIELD_FRAME_BIT   (12)
 
#define VPIF_CH_FID_POLARITY_BIT   (15)
 
#define VPIF_CH_V_VALID_POLARITY_BIT   (14)
 
#define VPIF_CH_H_VALID_POLARITY_BIT   (13)
 
#define VPIF_CH_DATA_WIDTH_BIT   (28)
 
#define VPIF_CH_CLK_EDGE_CTRL_BIT   (31)
 
#define VPIF_CH_EAVSAV_MASK   GENERATE_MASK(13, 0)
 
#define VPIF_CH_LEN_MASK   GENERATE_MASK(12, 0)
 
#define VPIF_CH_WIDTH_MASK   GENERATE_MASK(13, 0)
 
#define VPIF_CH_LEN_SHIFT   (16)
 
#define VPIF_REQ_SIZE_MASK   (0x1ff)
 
#define VPIF_INTEN_FRAME_CH0   (0x00000001)
 
#define VPIF_INTEN_FRAME_CH1   (0x00000002)
 
#define VPIF_INTEN_FRAME_CH2   (0x00000004)
 
#define VPIF_INTEN_FRAME_CH3   (0x00000008)
 
#define VPIF_CH0_CLK_EN   (0x00000002)
 
#define VPIF_CH0_EN   (0x00000001)
 
#define VPIF_CH1_CLK_EN   (0x00000002)
 
#define VPIF_CH1_EN   (0x00000001)
 
#define VPIF_CH2_CLK_EN   (0x00000002)
 
#define VPIF_CH2_EN   (0x00000001)
 
#define VPIF_CH3_CLK_EN   (0x00000002)
 
#define VPIF_CH3_EN   (0x00000001)
 
#define VPIF_CH_CLK_EN   (0x00000002)
 
#define VPIF_CH_EN   (0x00000001)
 
#define VPIF_INT_TOP   (0x00)
 
#define VPIF_INT_BOTTOM   (0x01)
 
#define VPIF_INT_BOTH   (0x02)
 
#define VPIF_CH0_INT_CTRL_SHIFT   (6)
 
#define VPIF_CH1_INT_CTRL_SHIFT   (6)
 
#define VPIF_CH2_INT_CTRL_SHIFT   (6)
 
#define VPIF_CH3_INT_CTRL_SHIFT   (6)
 
#define VPIF_CH_INT_CTRL_SHIFT   (6)
 
#define VPIF_CH2_CLIP_ANC_EN   14
 
#define VPIF_CH2_CLIP_ACTIVE_EN   13
 
#define VPIF_CH3_CLIP_ANC_EN   14
 
#define VPIF_CH3_CLIP_ACTIVE_EN   13
 
#define channel0_intr_assert()
 
#define channel1_intr_assert()
 
#define channel2_intr_assert()
 
#define channel3_intr_assert()
 
#define VPIF_CH_FID_MASK   (0x20)
 
#define VPIF_CH_FID_SHIFT   (5)
 
#define VPIF_NTSC_VBI_START_FIELD0   (1)
 
#define VPIF_NTSC_VBI_START_FIELD1   (263)
 
#define VPIF_PAL_VBI_START_FIELD0   (624)
 
#define VPIF_PAL_VBI_START_FIELD1   (311)
 
#define VPIF_NTSC_HBI_START_FIELD0   (1)
 
#define VPIF_NTSC_HBI_START_FIELD1   (263)
 
#define VPIF_PAL_HBI_START_FIELD0   (624)
 
#define VPIF_PAL_HBI_START_FIELD1   (311)
 
#define VPIF_NTSC_VBI_COUNT_FIELD0   (20)
 
#define VPIF_NTSC_VBI_COUNT_FIELD1   (19)
 
#define VPIF_PAL_VBI_COUNT_FIELD0   (24)
 
#define VPIF_PAL_VBI_COUNT_FIELD1   (25)
 
#define VPIF_NTSC_HBI_COUNT_FIELD0   (263)
 
#define VPIF_NTSC_HBI_COUNT_FIELD1   (262)
 
#define VPIF_PAL_HBI_COUNT_FIELD0   (312)
 
#define VPIF_PAL_HBI_COUNT_FIELD1   (313)
 
#define VPIF_NTSC_VBI_SAMPLES_PER_LINE   (720)
 
#define VPIF_PAL_VBI_SAMPLES_PER_LINE   (720)
 
#define VPIF_NTSC_HBI_SAMPLES_PER_LINE   (268)
 
#define VPIF_PAL_HBI_SAMPLES_PER_LINE   (280)
 
#define VPIF_CH_VANC_EN   (0x20)
 
#define VPIF_DMA_REQ_SIZE   (0x080)
 
#define VPIF_EMULATION_DISABLE   (0x01)
 
#define VPIF_MAX_NAME   (30)
 

Enumerations

enum  data_size { _8BITS = 0, _10BITS, _12BITS }
 

Functions

int vpif_set_video_params (struct vpif_params *vpifparams, u8 channel_id)
 
void vpif_set_vbi_display_params (struct vpif_vbi_params *vbiparams, u8 channel_id)
 
int vpif_channel_getfid (u8 channel_id)
 

Variables

void __iomemvpif_base
 
spinlock_t vpif_lock
 
u8 irq_vpif_capture_channel [VPIF_NUM_CHANNELS]
 
const unsigned int vpif_ch_params_count
 
struct vpif_channel_config_params ch_params []
 

Macro Definition Documentation

#define channel0_intr_assert ( )
Value:

Definition at line 221 of file vpif.h.

#define channel1_intr_assert ( )
Value:

Definition at line 225 of file vpif.h.

#define channel2_intr_assert ( )
Value:

Definition at line 229 of file vpif.h.

#define channel3_intr_assert ( )
Value:

Definition at line 233 of file vpif.h.

#define GENERATE_MASK (   bits,
  pos 
)    ((((0xFFFFFFFF) << (32 - bits)) >> (32 - bits)) << pos)

Definition at line 152 of file vpif.h.

#define regr (   reg)    readl((reg) + vpif_base)

Definition at line 32 of file vpif.h.

#define regw (   value,
  reg 
)    writel(value, (reg + vpif_base))

Definition at line 33 of file vpif.h.

#define VPIF_CAPTURE_CH_NIP   (10)

Definition at line 162 of file vpif.h.

#define VPIF_CAPTURE_NUM_CHANNELS   (2)

Definition at line 25 of file vpif.h.

#define VPIF_CH0_BTM_STRT_ADD_CHROMA   (0x004c)

Definition at line 53 of file vpif.h.

#define VPIF_CH0_BTM_STRT_ADD_HANC   (0x0054)

Definition at line 55 of file vpif.h.

#define VPIF_CH0_BTM_STRT_ADD_LUMA   (0x0044)

Definition at line 51 of file vpif.h.

#define VPIF_CH0_BTM_STRT_ADD_VANC   (0x005c)

Definition at line 57 of file vpif.h.

#define VPIF_CH0_CLK_EN   (0x00000002)

Definition at line 193 of file vpif.h.

#define VPIF_CH0_CTRL   (0x0004)

Definition at line 37 of file vpif.h.

#define VPIF_CH0_EN   (0x00000001)

Definition at line 194 of file vpif.h.

#define VPIF_CH0_H_CFG   (0x006c)

Definition at line 61 of file vpif.h.

#define VPIF_CH0_HANC_ADD_OFST   (0x0068)

Definition at line 60 of file vpif.h.

#define VPIF_CH0_IMG_ADD_OFST   (0x0064)

Definition at line 59 of file vpif.h.

#define VPIF_CH0_INT_CTRL_SHIFT   (6)

Definition at line 208 of file vpif.h.

#define VPIF_CH0_SP_CFG   (0x0060)

Definition at line 58 of file vpif.h.

#define VPIF_CH0_TOP_STRT_ADD_CHROMA   (0x0048)

Definition at line 52 of file vpif.h.

#define VPIF_CH0_TOP_STRT_ADD_HANC   (0x0050)

Definition at line 54 of file vpif.h.

#define VPIF_CH0_TOP_STRT_ADD_LUMA   (0x0040)

Definition at line 50 of file vpif.h.

#define VPIF_CH0_TOP_STRT_ADD_VANC   (0x0058)

Definition at line 56 of file vpif.h.

#define VPIF_CH0_V_CFG_00   (0x0070)

Definition at line 62 of file vpif.h.

#define VPIF_CH0_V_CFG_01   (0x0074)

Definition at line 63 of file vpif.h.

#define VPIF_CH0_V_CFG_02   (0x0078)

Definition at line 64 of file vpif.h.

#define VPIF_CH0_V_CFG_03   (0x007c)

Definition at line 65 of file vpif.h.

#define VPIF_CH1_BTM_STRT_ADD_CHROMA   (0x008c)

Definition at line 70 of file vpif.h.

#define VPIF_CH1_BTM_STRT_ADD_HANC   (0x0094)

Definition at line 72 of file vpif.h.

#define VPIF_CH1_BTM_STRT_ADD_LUMA   (0x0084)

Definition at line 68 of file vpif.h.

#define VPIF_CH1_BTM_STRT_ADD_VANC   (0x009c)

Definition at line 74 of file vpif.h.

#define VPIF_CH1_CLK_EN   (0x00000002)

Definition at line 195 of file vpif.h.

#define VPIF_CH1_CTRL   (0x0008)

Definition at line 38 of file vpif.h.

#define VPIF_CH1_EN   (0x00000001)

Definition at line 196 of file vpif.h.

#define VPIF_CH1_H_CFG   (0x00ac)

Definition at line 78 of file vpif.h.

#define VPIF_CH1_HANC_ADD_OFST   (0x00a8)

Definition at line 77 of file vpif.h.

#define VPIF_CH1_IMG_ADD_OFST   (0x00a4)

Definition at line 76 of file vpif.h.

#define VPIF_CH1_INT_CTRL_SHIFT   (6)

Definition at line 209 of file vpif.h.

#define VPIF_CH1_SP_CFG   (0x00a0)

Definition at line 75 of file vpif.h.

#define VPIF_CH1_TOP_STRT_ADD_CHROMA   (0x0088)

Definition at line 69 of file vpif.h.

#define VPIF_CH1_TOP_STRT_ADD_HANC   (0x0090)

Definition at line 71 of file vpif.h.

#define VPIF_CH1_TOP_STRT_ADD_LUMA   (0x0080)

Definition at line 67 of file vpif.h.

#define VPIF_CH1_TOP_STRT_ADD_VANC   (0x0098)

Definition at line 73 of file vpif.h.

#define VPIF_CH1_V_CFG_00   (0x00b0)

Definition at line 79 of file vpif.h.

#define VPIF_CH1_V_CFG_01   (0x00b4)

Definition at line 80 of file vpif.h.

#define VPIF_CH1_V_CFG_02   (0x00b8)

Definition at line 81 of file vpif.h.

#define VPIF_CH1_V_CFG_03   (0x00bc)

Definition at line 82 of file vpif.h.

#define VPIF_CH2_BTM_STRT_ADD_CHROMA   (0x00cc)

Definition at line 87 of file vpif.h.

#define VPIF_CH2_BTM_STRT_ADD_HANC   (0x00d4)

Definition at line 89 of file vpif.h.

#define VPIF_CH2_BTM_STRT_ADD_LUMA   (0x00c4)

Definition at line 85 of file vpif.h.

#define VPIF_CH2_BTM_STRT_ADD_VANC   (0x00dc)

Definition at line 91 of file vpif.h.

#define VPIF_CH2_CLIP_ACTIVE_EN   13

Definition at line 215 of file vpif.h.

#define VPIF_CH2_CLIP_ANC_EN   14

Definition at line 214 of file vpif.h.

#define VPIF_CH2_CLK_EN   (0x00000002)

Definition at line 197 of file vpif.h.

#define VPIF_CH2_CTRL   (0x000C)

Definition at line 39 of file vpif.h.

#define VPIF_CH2_EN   (0x00000001)

Definition at line 198 of file vpif.h.

#define VPIF_CH2_H_CFG   (0x00ec)

Definition at line 95 of file vpif.h.

#define VPIF_CH2_HANC0_SIZE   (0x0104)

Definition at line 101 of file vpif.h.

#define VPIF_CH2_HANC0_STRT   (0x0100)

Definition at line 100 of file vpif.h.

#define VPIF_CH2_HANC1_SIZE   (0x010c)

Definition at line 103 of file vpif.h.

#define VPIF_CH2_HANC1_STRT   (0x0108)

Definition at line 102 of file vpif.h.

#define VPIF_CH2_HANC_ADD_OFST   (0x00e8)

Definition at line 94 of file vpif.h.

#define VPIF_CH2_IMG_ADD_OFST   (0x00e4)

Definition at line 93 of file vpif.h.

#define VPIF_CH2_INT_CTRL_SHIFT   (6)

Definition at line 210 of file vpif.h.

#define VPIF_CH2_SP_CFG   (0x00e0)

Definition at line 92 of file vpif.h.

#define VPIF_CH2_TOP_STRT_ADD_CHROMA   (0x00c8)

Definition at line 86 of file vpif.h.

#define VPIF_CH2_TOP_STRT_ADD_HANC   (0x00d0)

Definition at line 88 of file vpif.h.

#define VPIF_CH2_TOP_STRT_ADD_LUMA   (0x00c0)

Definition at line 84 of file vpif.h.

#define VPIF_CH2_TOP_STRT_ADD_VANC   (0x00d8)

Definition at line 90 of file vpif.h.

#define VPIF_CH2_V_CFG_00   (0x00f0)

Definition at line 96 of file vpif.h.

#define VPIF_CH2_V_CFG_01   (0x00f4)

Definition at line 97 of file vpif.h.

#define VPIF_CH2_V_CFG_02   (0x00f8)

Definition at line 98 of file vpif.h.

#define VPIF_CH2_V_CFG_03   (0x00fc)

Definition at line 99 of file vpif.h.

#define VPIF_CH2_VANC0_SIZE   (0x0114)

Definition at line 105 of file vpif.h.

#define VPIF_CH2_VANC0_STRT   (0x0110)

Definition at line 104 of file vpif.h.

#define VPIF_CH2_VANC1_SIZE   (0x011c)

Definition at line 107 of file vpif.h.

#define VPIF_CH2_VANC1_STRT   (0x0118)

Definition at line 106 of file vpif.h.

#define VPIF_CH3_BTM_STRT_ADD_CHROMA   (0x014c)

Definition at line 112 of file vpif.h.

#define VPIF_CH3_BTM_STRT_ADD_HANC   (0x0154)

Definition at line 114 of file vpif.h.

#define VPIF_CH3_BTM_STRT_ADD_LUMA   (0x0144)

Definition at line 110 of file vpif.h.

#define VPIF_CH3_BTM_STRT_ADD_VANC   (0x015c)

Definition at line 116 of file vpif.h.

#define VPIF_CH3_CLIP_ACTIVE_EN   13

Definition at line 218 of file vpif.h.

#define VPIF_CH3_CLIP_ANC_EN   14

Definition at line 217 of file vpif.h.

#define VPIF_CH3_CLK_EN   (0x00000002)

Definition at line 199 of file vpif.h.

#define VPIF_CH3_CTRL   (0x0010)

Definition at line 40 of file vpif.h.

#define VPIF_CH3_EN   (0x00000001)

Definition at line 200 of file vpif.h.

#define VPIF_CH3_H_CFG   (0x016c)

Definition at line 120 of file vpif.h.

#define VPIF_CH3_HANC0_SIZE   (0x0184)

Definition at line 126 of file vpif.h.

#define VPIF_CH3_HANC0_STRT   (0x0180)

Definition at line 125 of file vpif.h.

#define VPIF_CH3_HANC1_SIZE   (0x018c)

Definition at line 128 of file vpif.h.

#define VPIF_CH3_HANC1_STRT   (0x0188)

Definition at line 127 of file vpif.h.

#define VPIF_CH3_HANC_ADD_OFST   (0x0168)

Definition at line 119 of file vpif.h.

#define VPIF_CH3_IMG_ADD_OFST   (0x0164)

Definition at line 118 of file vpif.h.

#define VPIF_CH3_INT_CTRL_SHIFT   (6)

Definition at line 211 of file vpif.h.

#define VPIF_CH3_SP_CFG   (0x0160)

Definition at line 117 of file vpif.h.

#define VPIF_CH3_TOP_STRT_ADD_CHROMA   (0x0148)

Definition at line 111 of file vpif.h.

#define VPIF_CH3_TOP_STRT_ADD_HANC   (0x0150)

Definition at line 113 of file vpif.h.

#define VPIF_CH3_TOP_STRT_ADD_LUMA   (0x0140)

Definition at line 109 of file vpif.h.

#define VPIF_CH3_TOP_STRT_ADD_VANC   (0x0158)

Definition at line 115 of file vpif.h.

#define VPIF_CH3_V_CFG_00   (0x0170)

Definition at line 121 of file vpif.h.

#define VPIF_CH3_V_CFG_01   (0x0174)

Definition at line 122 of file vpif.h.

#define VPIF_CH3_V_CFG_02   (0x0178)

Definition at line 123 of file vpif.h.

#define VPIF_CH3_V_CFG_03   (0x017c)

Definition at line 124 of file vpif.h.

#define VPIF_CH3_VANC0_SIZE   (0x0194)

Definition at line 130 of file vpif.h.

#define VPIF_CH3_VANC0_STRT   (0x0190)

Definition at line 129 of file vpif.h.

#define VPIF_CH3_VANC1_SIZE   (0x019c)

Definition at line 132 of file vpif.h.

#define VPIF_CH3_VANC1_STRT   (0x0198)

Definition at line 131 of file vpif.h.

#define VPIF_CH_CLK_EDGE_CTRL_BIT   (31)

Definition at line 174 of file vpif.h.

#define VPIF_CH_CLK_EN   (0x00000002)

Definition at line 201 of file vpif.h.

#define VPIF_CH_DATA_MODE_BIT   (2)

Definition at line 156 of file vpif.h.

#define VPIF_CH_DATA_WIDTH_BIT   (28)

Definition at line 172 of file vpif.h.

#define VPIF_CH_EAVSAV_MASK   GENERATE_MASK(13, 0)

Definition at line 177 of file vpif.h.

#define VPIF_CH_EN   (0x00000001)

Definition at line 202 of file vpif.h.

#define VPIF_CH_FID_MASK   (0x20)

Definition at line 236 of file vpif.h.

#define VPIF_CH_FID_POLARITY_BIT   (15)

Definition at line 169 of file vpif.h.

#define VPIF_CH_FID_SHIFT   (5)

Definition at line 237 of file vpif.h.

#define VPIF_CH_H_VALID_POLARITY_BIT   (13)

Definition at line 171 of file vpif.h.

#define VPIF_CH_HANC_EN_BIT   (8)

Definition at line 159 of file vpif.h.

#define VPIF_CH_INPUT_FIELD_FRAME_BIT   (12)

Definition at line 167 of file vpif.h.

#define VPIF_CH_INT_CTRL_SHIFT   (6)

Definition at line 212 of file vpif.h.

#define VPIF_CH_LEN_MASK   GENERATE_MASK(12, 0)

Definition at line 178 of file vpif.h.

#define VPIF_CH_LEN_SHIFT   (16)

Definition at line 180 of file vpif.h.

#define VPIF_CH_SDR_FMT_BIT   (4)

Definition at line 158 of file vpif.h.

#define VPIF_CH_V_VALID_POLARITY_BIT   (14)

Definition at line 170 of file vpif.h.

#define VPIF_CH_VANC_EN   (0x20)

Definition at line 264 of file vpif.h.

#define VPIF_CH_VANC_EN_BIT   (9)

Definition at line 160 of file vpif.h.

#define VPIF_CH_WIDTH_MASK   GENERATE_MASK(13, 0)

Definition at line 179 of file vpif.h.

#define VPIF_CH_YC_MUX_BIT   (3)

Definition at line 157 of file vpif.h.

#define VPIF_DISPLAY_CH_NIP   (11)

Definition at line 163 of file vpif.h.

#define VPIF_DISPLAY_NUM_CHANNELS   (2)

Definition at line 26 of file vpif.h.

#define VPIF_DISPLAY_PIX_EN_BIT   (10)

Definition at line 165 of file vpif.h.

#define VPIF_DMA_REQ_SIZE   (0x080)

Definition at line 265 of file vpif.h.

#define VPIF_EMULATION_CTRL   (0x0034)

Definition at line 47 of file vpif.h.

#define VPIF_EMULATION_DISABLE   (0x01)

Definition at line 266 of file vpif.h.

#define VPIF_INT_BOTH   (0x02)

Definition at line 206 of file vpif.h.

#define VPIF_INT_BOTTOM   (0x01)

Definition at line 205 of file vpif.h.

#define VPIF_INT_TOP   (0x00)

Definition at line 204 of file vpif.h.

#define VPIF_INTEN   (0x0020)

Definition at line 42 of file vpif.h.

#define VPIF_INTEN_CLR   (0x0028)

Definition at line 44 of file vpif.h.

#define VPIF_INTEN_FRAME_CH0   (0x00000001)

Definition at line 186 of file vpif.h.

#define VPIF_INTEN_FRAME_CH1   (0x00000002)

Definition at line 187 of file vpif.h.

#define VPIF_INTEN_FRAME_CH2   (0x00000004)

Definition at line 188 of file vpif.h.

#define VPIF_INTEN_FRAME_CH3   (0x00000008)

Definition at line 189 of file vpif.h.

#define VPIF_INTEN_SET   (0x0024)

Definition at line 43 of file vpif.h.

#define VPIF_IODFT_CTRL   (0x01c0)

Definition at line 134 of file vpif.h.

#define VPIF_MAX_NAME   (30)

Definition at line 617 of file vpif.h.

#define VPIF_NTSC_HBI_COUNT_FIELD0   (263)

Definition at line 254 of file vpif.h.

#define VPIF_NTSC_HBI_COUNT_FIELD1   (262)

Definition at line 255 of file vpif.h.

#define VPIF_NTSC_HBI_SAMPLES_PER_LINE   (268)

Definition at line 261 of file vpif.h.

#define VPIF_NTSC_HBI_START_FIELD0   (1)

Definition at line 244 of file vpif.h.

#define VPIF_NTSC_HBI_START_FIELD1   (263)

Definition at line 245 of file vpif.h.

#define VPIF_NTSC_VBI_COUNT_FIELD0   (20)

Definition at line 249 of file vpif.h.

#define VPIF_NTSC_VBI_COUNT_FIELD1   (19)

Definition at line 250 of file vpif.h.

#define VPIF_NTSC_VBI_SAMPLES_PER_LINE   (720)

Definition at line 259 of file vpif.h.

#define VPIF_NTSC_VBI_START_FIELD0   (1)

Definition at line 239 of file vpif.h.

#define VPIF_NTSC_VBI_START_FIELD1   (263)

Definition at line 240 of file vpif.h.

#define VPIF_NUM_CHANNELS   (4)

Definition at line 24 of file vpif.h.

#define VPIF_PAL_HBI_COUNT_FIELD0   (312)

Definition at line 256 of file vpif.h.

#define VPIF_PAL_HBI_COUNT_FIELD1   (313)

Definition at line 257 of file vpif.h.

#define VPIF_PAL_HBI_SAMPLES_PER_LINE   (280)

Definition at line 262 of file vpif.h.

#define VPIF_PAL_HBI_START_FIELD0   (624)

Definition at line 246 of file vpif.h.

#define VPIF_PAL_HBI_START_FIELD1   (311)

Definition at line 247 of file vpif.h.

#define VPIF_PAL_VBI_COUNT_FIELD0   (24)

Definition at line 251 of file vpif.h.

#define VPIF_PAL_VBI_COUNT_FIELD1   (25)

Definition at line 252 of file vpif.h.

#define VPIF_PAL_VBI_SAMPLES_PER_LINE   (720)

Definition at line 260 of file vpif.h.

#define VPIF_PAL_VBI_START_FIELD0   (624)

Definition at line 241 of file vpif.h.

#define VPIF_PAL_VBI_START_FIELD1   (311)

Definition at line 242 of file vpif.h.

#define VPIF_PID   (0x0000)

Definition at line 36 of file vpif.h.

#define VPIF_REQ_SIZE   (0x0038)

Definition at line 48 of file vpif.h.

#define VPIF_REQ_SIZE_MASK   (0x1ff)

Definition at line 183 of file vpif.h.

#define VPIF_STATUS   (0x002C)

Definition at line 45 of file vpif.h.

#define VPIF_STATUS_CLR   (0x0030)

Definition at line 46 of file vpif.h.

Enumeration Type Documentation

Enumerator:
_8BITS 
_10BITS 
_12BITS 

Definition at line 652 of file vpif.h.

Function Documentation

int vpif_channel_getfid ( u8  channel_id)

Definition at line 415 of file vpif.c.

void vpif_set_vbi_display_params ( struct vpif_vbi_params vbiparams,
u8  channel_id 
)

Definition at line 391 of file vpif.c.

int vpif_set_video_params ( struct vpif_params vpifparams,
u8  channel_id 
)

Definition at line 370 of file vpif.c.

Variable Documentation

ch_params: video standard configuration parameters for vpif The table must include all presets from supported subdevices.

Definition at line 53 of file vpif.c.

u8 irq_vpif_capture_channel[VPIF_NUM_CHANNELS]
void __iomem* vpif_base

Definition at line 46 of file vpif.c.

const unsigned int vpif_ch_params_count

Definition at line 224 of file vpif.c.

spinlock_t vpif_lock

Definition at line 44 of file vpif.c.