3 #define CYBLAFB_DEBUG 0
7 #define debug(f,a...) printk("%s:" f, __FUNCTION__ , ## a);
12 #define output(f, a...) printk("cyblafb: " f, ## a)
17 /* PCI IDS of supported cards temporarily here */
19 #define CYBERBLADEi1 0x8500
21 /* these defines are for 'lcd' variable */
32 #define point(x,y) ((y)<<16|(x))
35 // Attribute Regs, ARxx, 3c0/3c1
58 // Sequencer Regs, SRxx, 3c4/3c5
151 #define GEBase 0x2100 // could be mapped elsewhere if we like it
152 #define GE00 (GEBase+0x00) // source 1, p 111
153 #define GE04 (GEBase+0x04) // source 2, p 111
154 #define GE08 (GEBase+0x08) // destination 1, p 111
155 #define GE0C (GEBase+0x0C) // destination 2, p 112
156 #define GE10 (GEBase+0x10) // right view base & enable, p 112
157 #define GE13 (GEBase+0x13) // left view base & enable, p 112
158 #define GE18 (GEBase+0x18) // block write start address, p 112
159 #define GE1C (GEBase+0x1C) // block write end address, p 112
160 #define GE20 (GEBase+0x20) // engine status, p 113
161 #define GE24 (GEBase+0x24) // reset all GE pointers
162 #define GE44 (GEBase+0x44) // command register, p 126
163 #define GE48 (GEBase+0x48) // raster operation, p 127
164 #define GE60 (GEBase+0x60) // foreground color, p 128
165 #define GE64 (GEBase+0x64) // background color, p 128
166 #define GE6C (GEBase+0x6C) // Pattern and Style, p 129, ok
167 #define GE9C (GEBase+0x9C) // pixel engine data port, p 125
168 #define GEB8 (GEBase+0xB8) // Destination Stride / Buffer Base 0, p 133
169 #define GEBC (GEBase+0xBC) // Destination Stride / Buffer Base 1, p 133
170 #define GEC0 (GEBase+0xC0) // Destination Stride / Buffer Base 2, p 133
171 #define GEC4 (GEBase+0xC4) // Destination Stride / Buffer Base 3, p 133
172 #define GEC8 (GEBase+0xC8) // Source Stride / Buffer Base 0, p 133
173 #define GECC (GEBase+0xCC) // Source Stride / Buffer Base 1, p 133
174 #define GED0 (GEBase+0xD0) // Source Stride / Buffer Base 2, p 133
175 #define GED4 (GEBase+0xD4) // Source Stride / Buffer Base 3, p 133