Go to the documentation of this file.
27 #include <linux/pci.h>
30 #define DT3155_NAME "dt3155"
31 #define DT3155_VER_MAJ 1
32 #define DT3155_VER_MIN 1
33 #define DT3155_VER_EXT 0
34 #define DT3155_VERSION __stringify(DT3155_VER_MAJ) "." \
35 __stringify(DT3155_VER_MIN) "." \
36 __stringify(DT3155_VER_EXT)
39 #define EVEN_DMA_START 0x00
40 #define ODD_DMA_START 0x0C
41 #define EVEN_DMA_STRIDE 0x18
42 #define ODD_DMA_STRIDE 0x24
43 #define EVEN_PIXEL_FMT 0x30
44 #define ODD_PIXEL_FMT 0x34
45 #define FIFO_TRIGER 0x38
46 #define XFER_MODE 0x3C
48 #define RETRY_WAIT_CNT 0x44
50 #define EVEN_FLD_MASK 0x4C
51 #define ODD_FLD_MASK 0x50
52 #define MASK_LENGTH 0x54
53 #define FIFO_FLAG_CNT 0x58
54 #define IIC_CLK_DUR 0x5C
64 #define X_CLIP_START 0x20
65 #define Y_CLIP_START 0x22
66 #define X_CLIP_END 0x24
67 #define Y_CLIP_END 0x26
72 #define PM_LUT_ADDR 0x50
73 #define PM_LUT_DATA 0x51
76 #define AD_CMD_REG 0x00
77 #define AD_POS_REF 0x01
78 #define AD_NEG_REF 0x02
81 #define CRPT_DIS 0x00004000
82 #define FLD_CRPT_ODD 0x00000200
83 #define FLD_CRPT_EVEN 0x00000100
84 #define FIFO_EN 0x00000080
85 #define SRST 0x00000040
86 #define FLD_DN_ODD 0x00000020
87 #define FLD_DN_EVEN 0x00000010
93 #define CAP_CONT_ODD 0x00000002
94 #define CAP_CONT_EVEN 0x00000001
97 #define FLD_START_EN 0x00000400
98 #define FLD_END_ODD_EN 0x00000200
99 #define FLD_END_EVEN_EN 0x00000100
100 #define FLD_START 0x00000004
101 #define FLD_END_ODD 0x00000002
102 #define FLD_END_EVEN 0x00000001
105 #define DIRECT_ABORT 0x00000200
108 #define NEW_CYCLE 0x01000000
109 #define DIR_RD 0x00010000
110 #define IIC_READ 0x01010000
111 #define IIC_WRITE 0x01000000
114 #define DISP_PASS 0x40
115 #define BUSY_ODD 0x20
116 #define BUSY_EVEN 0x10
117 #define SYNC_PRESENT 0x08
119 #define SYNC_SNTL 0x02
120 #define CHROM_FILT 0x01
124 #define CSR_ERROR 0x04
125 #define CSR_SNGL 0x02
126 #define CSR_DONE 0x01
129 #define PM_LUT_PGM 0x80
130 #define PM_LUT_SEL 0x40
132 #define HSCALE_EN 0x10
133 #define EXT_TRIG_UP 0x0C
134 #define EXT_TRIG_DOWN 0x04
135 #define ACQ_MODE_NEXT 0x02
136 #define ACQ_MODE_ODD 0x01
137 #define ACQ_MODE_EVEN 0x00
140 #define VIDEO_CNL_1 0x00
141 #define VIDEO_CNL_2 0x40
142 #define VIDEO_CNL_3 0x80
143 #define VIDEO_CNL_4 0xC0
144 #define SYNC_CNL_1 0x00
145 #define SYNC_CNL_2 0x10
146 #define SYNC_CNL_3 0x20
147 #define SYNC_CNL_4 0x30
148 #define SYNC_LVL_1 0x00
149 #define SYNC_LVL_2 0x04
150 #define SYNC_LVL_3 0x08
151 #define SYNC_LVL_4 0x0C
154 #define DT3155_ID 0x20
156 #ifdef CONFIG_DT3155_CCIR
157 #define DMA_STRIDE 768
159 #define DMA_STRIDE 640
170 struct dt3155_stats {
172 int corrupted_fields;
174 int start_before_end;
203 unsigned int field_count;
204 struct dt3155_stats
stats;