Go to the documentation of this file.
32 #include <linux/kernel.h>
33 #include <linux/pci.h>
37 #define VML_DEVICE_GPU 0x5002
38 #define VML_DEVICE_VDC 0x5009
40 #define VML_VRAM_AREAS 3
41 #define VML_MAX_XRES 1024
42 #define VML_MAX_YRES 768
43 #define VML_MAX_XRES_VIRTUAL 1040
51 #define VML_R_MASK 0x3FF00000
52 #define VML_R_SHIFT 20
53 #define VML_G_MASK 0x000FFC00
54 #define VML_G_SHIFT 10
55 #define VML_B_MASK 0x000003FF
59 #define VML_DSPCCNTR 0x00072180
60 #define VML_GFX_ENABLE 0x80000000
61 #define VML_GFX_GAMMABYPASS 0x40000000
62 #define VML_GFX_ARGB1555 0x0C000000
63 #define VML_GFX_RGB0888 0x18000000
64 #define VML_GFX_ARGB8888 0x1C000000
65 #define VML_GFX_ALPHACONST 0x02000000
66 #define VML_GFX_ALPHAMULT 0x01000000
67 #define VML_GFX_CONST_ALPHA 0x000000FF
70 #define VML_DSPCADDR 0x00072184
73 #define VML_DSPCSTRIDE 0x00072188
76 #define VML_DSPCPOS 0x0007218C
77 #define VML_POS_YMASK 0x0FFF0000
78 #define VML_POS_YSHIFT 16
79 #define VML_POS_XMASK 0x00000FFF
80 #define VML_POS_XSHIFT 0
83 #define VML_DSPCSIZE 0x00072190
84 #define VML_SIZE_HMASK 0x0FFF0000
85 #define VML_SIZE_HSHIFT 16
86 #define VML_SISE_WMASK 0x00000FFF
87 #define VML_SIZE_WSHIFT 0
90 #define VML_DSPCGAMLUT 0x00072200
93 #define VML_PVOCONFIG 0x00061140
94 #define VML_CONFIG_BASE 0x80000000
95 #define VML_CONFIG_PIXEL_SWAP 0x04000000
96 #define VML_CONFIG_DE_INV 0x01000000
97 #define VML_CONFIG_HREF_INV 0x00400000
98 #define VML_CONFIG_VREF_INV 0x00100000
99 #define VML_CONFIG_CLK_INV 0x00040000
100 #define VML_CONFIG_CLK_DIV2 0x00010000
101 #define VML_CONFIG_ESTRB_INV 0x00008000
104 #define VML_HTOTAL_A 0x00060000
105 #define VML_HTOTAL_MASK 0x1FFF0000
106 #define VML_HTOTAL_SHIFT 16
107 #define VML_HTOTAL_VAL 8192
108 #define VML_HACTIVE_MASK 0x000007FF
109 #define VML_HACTIVE_SHIFT 0
110 #define VML_HACTIVE_VAL 4096
113 #define VML_HBLANK_A 0x00060004
114 #define VML_HBLANK_END_MASK 0x1FFF0000
115 #define VML_HBLANK_END_SHIFT 16
116 #define VML_HBLANK_END_VAL 8192
117 #define VML_HBLANK_START_MASK 0x00001FFF
118 #define VML_HBLANK_START_SHIFT 0
119 #define VML_HBLANK_START_VAL 8192
122 #define VML_HSYNC_A 0x00060008
123 #define VML_HSYNC_END_MASK 0x1FFF0000
124 #define VML_HSYNC_END_SHIFT 16
125 #define VML_HSYNC_END_VAL 8192
126 #define VML_HSYNC_START_MASK 0x00001FFF
127 #define VML_HSYNC_START_SHIFT 0
128 #define VML_HSYNC_START_VAL 8192
131 #define VML_VTOTAL_A 0x0006000C
132 #define VML_VTOTAL_MASK 0x1FFF0000
133 #define VML_VTOTAL_SHIFT 16
134 #define VML_VTOTAL_VAL 8192
135 #define VML_VACTIVE_MASK 0x000007FF
136 #define VML_VACTIVE_SHIFT 0
137 #define VML_VACTIVE_VAL 4096
140 #define VML_VBLANK_A 0x00060010
141 #define VML_VBLANK_END_MASK 0x1FFF0000
142 #define VML_VBLANK_END_SHIFT 16
143 #define VML_VBLANK_END_VAL 8192
144 #define VML_VBLANK_START_MASK 0x00001FFF
145 #define VML_VBLANK_START_SHIFT 0
146 #define VML_VBLANK_START_VAL 8192
149 #define VML_VSYNC_A 0x00060014
150 #define VML_VSYNC_END_MASK 0x1FFF0000
151 #define VML_VSYNC_END_SHIFT 16
152 #define VML_VSYNC_END_VAL 8192
153 #define VML_VSYNC_START_MASK 0x00001FFF
154 #define VML_VSYNC_START_SHIFT 0
155 #define VML_VSYNC_START_VAL 8192
160 #define VML_PIPEASRC 0x0006001C
161 #define VML_PIPEASRC_HMASK 0x0FFF0000
162 #define VML_PIPEASRC_HSHIFT 16
163 #define VML_PIPEASRC_VMASK 0x00000FFF
164 #define VML_PIPEASRC_VSHIFT 0
167 #define VML_BCLRPAT_A 0x00060020
170 #define VML_CANVSCLR_A 0x00060024
173 #define VML_PIPEACONF 0x00070008
174 #define VML_PIPE_BASE 0x00000000
175 #define VML_PIPE_ENABLE 0x80000000
176 #define VML_PIPE_FORCE_BORDER 0x02000000
177 #define VML_PIPE_PLANES_OFF 0x00080000
178 #define VML_PIPE_ARGB_OUTPUT_MODE 0x00040000
181 #define VML_DSPARB 0x00070030
182 #define VML_FIFO_DEFAULT 0x00001D9C
185 #define VML_RCOMPSTAT 0x00070048
186 #define VML_MDVO_VDC_I_RCOMP 0x80000000
187 #define VML_MDVO_POWERSAVE_OFF 0x00000008
188 #define VML_MDVO_PAD_ENABLE 0x00000004
189 #define VML_MDVO_PULLDOWN_ENABLE 0x00000001
254 #define VML_READ32(_par, _offset) \
255 (ioread32((_par)->vdc_mem + (_offset)))
256 #define VML_WRITE32(_par, _offset, _value) \
257 iowrite32(_value, (_par)->vdc_mem + (_offset))