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 GE20 (GEBase+0x20) // engine status, p 113
157 #define GE24 (GEBase+0x24) // reset all GE pointers
158 #define GE44 (GEBase+0x44) // command register, p 126
159 #define GE48 (GEBase+0x48) // raster operation, p 127
160 #define GE60 (GEBase+0x60) // foreground color, p 128
161 #define GE64 (GEBase+0x64) // background color, p 128
162 #define GE6C (GEBase+0x6C) // Pattern and Style, p 129, ok
163 #define GE9C (GEBase+0x9C) // pixel engine data port, p 125
164 #define GEB8 (GEBase+0xB8) // Destination Stride / Buffer Base 0, p 133
165 #define GEBC (GEBase+0xBC) // Destination Stride / Buffer Base 1, p 133
166 #define GEC0 (GEBase+0xC0) // Destination Stride / Buffer Base 2, p 133
167 #define GEC4 (GEBase+0xC4) // Destination Stride / Buffer Base 3, p 133
168 #define GEC8 (GEBase+0xC8) // Source Stride / Buffer Base 0, p 133
169 #define GECC (GEBase+0xCC) // Source Stride / Buffer Base 1, p 133
170 #define GED0 (GEBase+0xD0) // Source Stride / Buffer Base 2, p 133
171 #define GED4 (GEBase+0xD4) // Source Stride / Buffer Base 3, p 133