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);
217 fb_regs = virt_base;
218 fboff = (in_8(fb_regs + HPFB_FBOMSB) << 8) | in_8(fb_regs + HPFB_FBOLSB);
220 fb_info.fix.smem_start = (in_8(fb_regs + fboff) << 16);
226 if (DIO_SECID(fb_regs) != DIO_ID2_TOPCAT) {
228 while (in_be16(fb_regs+0x4800) & 1)
230 out_be16(fb_regs+0x4800, 0); /* Catseye status */
231 out_be16(fb_regs+0x4510, 0); /* VB */
232 out_be16(fb_regs+0x4512, 0); /* TCNTRL */
233 out_be16(fb_regs+0x4514, 0); /* ACNTRL */
234 out_be16(fb_regs+0x4516, 0); /* PNCNTRL */
235 out_be16(fb_regs+0x4206, 0x90); /* RUG Command/Status */
236 out_be16(fb_regs+0x60a2, 0); /* Overlay Mask */
237 out_be16(fb_regs+0x60bc, 0); /* Ram Select */
243 fb_width = (in_8(fb_regs + HPFB_FBWMSB) << 8) | in_8(fb_regs + HPFB_FBWLSB);
245 fb_height = (in_8(fb_regs + HPFB_FBHMSB) << 8) | in_8(fb_regs + HPFB_FBHLSB);
249 hpfb_defined.xres = (in_8(fb_regs + HPFB_DWMSB) << 8) | in_8(fb_regs + HPFB_DWLSB);
250 hpfb_defined.yres = (in_8(fb_regs + HPFB_DHMSB) << 8) | in_8(fb_regs + HPFB_DHLSB);
253 hpfb_defined.bits_per_pixel = in_8(fb_regs + HPFB_NUMPLANES);
264 out_8(fb_regs + TC_WEN, 0xff);
265 out_8(fb_regs + TC_PRR, RR_COPY);
266 out_8(fb_regs + TC_FBEN, 0xff);
274 out_8(fb_regs + TC_WEN, fb_bitmask);
275 out_8(fb_regs + TC_PRR, RR_COPY);
276 out_8(fb_regs + TC_REN, fb_bitmask);
277 out_8(fb_regs + TC_FBEN, fb_bitmask);
287 if (DIO_SECID(fb_regs) == DIO_ID2_TOPCAT)
357 iounmap((void *)fb_regs);