Lines Matching refs:fb_regs
31 static unsigned long fb_regs;
96 while (in_be16(fb_regs + 0x6002) & 0x4) udelay(1);
98 out_be16(fb_regs + 0x60ba, 0xff);
100 out_be16(fb_regs + 0x60b2, _red);
101 out_be16(fb_regs + 0x60b4, _green);
102 out_be16(fb_regs + 0x60b6, _blue);
103 out_be16(fb_regs + 0x60b8, ~_regno);
104 out_be16(fb_regs + 0x60f0, 0xff);
108 while (in_be16(fb_regs + 0x6002) & 0x4) udelay(1);
109 out_be16(fb_regs + 0x60b2, 0);
110 out_be16(fb_regs + 0x60b4, 0);
111 out_be16(fb_regs + 0x60b6, 0);
112 out_be16(fb_regs + 0x60b8, 0);
121 out_8(fb_regs + TC_NBLANK, (blank ? 0x00 : fb_bitmask));
129 while (in_8(fb_regs + BUSY) & fb_bitmask)
132 out_8(fb_regs + TC_FBEN, fb_bitmask);
134 out_8(fb_regs + TC_WEN, fb_bitmask);
135 out_8(fb_regs + WMRR, rr);
137 out_be16(fb_regs + SOURCE_X, x0);
138 out_be16(fb_regs + SOURCE_Y, y0);
139 out_be16(fb_regs + DEST_X, x1);
140 out_be16(fb_regs + DEST_Y, y1);
141 out_be16(fb_regs + WWIDTH, w);
142 out_be16(fb_regs + WHEIGHT, h);
143 out_8(fb_regs + WMOVE, fb_bitmask);
157 while (in_8(fb_regs + BUSY) & fb_bitmask)
161 out_8(fb_regs + TC_WEN, fb_bitmask & clr);
162 out_8(fb_regs + WMRR, (region->rop == ROP_COPY ? RR_SET : RR_INVERT));
165 out_8(fb_regs + TC_WEN, fb_bitmask & ~clr);
166 out_8(fb_regs + WMRR, (region->rop == ROP_COPY ? RR_CLEAR : RR_NOOP));
177 while (in_8(fb_regs + BUSY) & fb_bitmask)
180 out_8(fb_regs + TC_WEN, fb_bitmask);
181 out_8(fb_regs + TC_PRR, RR_COPY);
182 out_8(fb_regs + TC_FBEN, fb_bitmask);
215 fb_regs = virt_base;
216 fboff = (in_8(fb_regs + HPFB_FBOMSB) << 8) | in_8(fb_regs + HPFB_FBOLSB);
218 fb_info.fix.smem_start = (in_8(fb_regs + fboff) << 16);
224 if (DIO_SECID(fb_regs) != DIO_ID2_TOPCAT) {
226 while (in_be16(fb_regs+0x4800) & 1)
228 out_be16(fb_regs+0x4800, 0); /* Catseye status */
229 out_be16(fb_regs+0x4510, 0); /* VB */
230 out_be16(fb_regs+0x4512, 0); /* TCNTRL */
231 out_be16(fb_regs+0x4514, 0); /* ACNTRL */
232 out_be16(fb_regs+0x4516, 0); /* PNCNTRL */
233 out_be16(fb_regs+0x4206, 0x90); /* RUG Command/Status */
234 out_be16(fb_regs+0x60a2, 0); /* Overlay Mask */
235 out_be16(fb_regs+0x60bc, 0); /* Ram Select */
241 fb_width = (in_8(fb_regs + HPFB_FBWMSB) << 8) | in_8(fb_regs + HPFB_FBWLSB);
243 fb_height = (in_8(fb_regs + HPFB_FBHMSB) << 8) | in_8(fb_regs + HPFB_FBHLSB);
247 hpfb_defined.xres = (in_8(fb_regs + HPFB_DWMSB) << 8) | in_8(fb_regs + HPFB_DWLSB);
248 hpfb_defined.yres = (in_8(fb_regs + HPFB_DHMSB) << 8) | in_8(fb_regs + HPFB_DHLSB);
251 hpfb_defined.bits_per_pixel = in_8(fb_regs + HPFB_NUMPLANES);
262 out_8(fb_regs + TC_WEN, 0xff);
263 out_8(fb_regs + TC_PRR, RR_COPY);
264 out_8(fb_regs + TC_FBEN, 0xff);
272 out_8(fb_regs + TC_WEN, fb_bitmask);
273 out_8(fb_regs + TC_PRR, RR_COPY);
274 out_8(fb_regs + TC_REN, fb_bitmask);
275 out_8(fb_regs + TC_FBEN, fb_bitmask);
285 if (DIO_SECID(fb_regs) == DIO_ID2_TOPCAT)
355 iounmap((void *)fb_regs);