Lines Matching refs:npregs
40 static struct newport_regs *npregs; variable
71 newport_wait(npregs); in newport_render_background()
72 npregs->set.wrmask = 0xffffffff; in newport_render_background()
73 npregs->set.drawmode0 = (NPORT_DMODE0_DRAW | NPORT_DMODE0_BLOCK | in newport_render_background()
76 npregs->set.colori = ci; in newport_render_background()
77 npregs->set.xystarti = in newport_render_background()
79 npregs->go.xyendi = in newport_render_background()
88 newport_bfwait(npregs); in newport_init_cmap()
89 newport_cmap_setaddr(npregs, color_table[i]); in newport_init_cmap()
90 newport_cmap_setrgb(npregs, in newport_init_cmap()
110 newport_bfwait(npregs); in newport_show_logo()
111 newport_cmap_setaddr(npregs, i + 0x20); in newport_show_logo()
112 newport_cmap_setrgb(npregs, clut[0], clut[1], clut[2]); in newport_show_logo()
116 newport_wait(npregs); in newport_show_logo()
117 npregs->set.drawmode0 = (NPORT_DMODE0_DRAW | NPORT_DMODE0_BLOCK | in newport_show_logo()
120 npregs->set.xystarti = ((newport_xsize - logo->width) << 16) | (0); in newport_show_logo()
121 npregs->set.xyendi = ((newport_xsize - 1) << 16); in newport_show_logo()
122 newport_wait(npregs); in newport_show_logo()
125 npregs->go.hostrw0 = *data++ << 24; in newport_show_logo()
139 newport_wait(npregs); in newport_clear_screen()
140 npregs->set.wrmask = 0xffffffff; in newport_clear_screen()
141 npregs->set.drawmode0 = (NPORT_DMODE0_DRAW | NPORT_DMODE0_BLOCK | in newport_clear_screen()
144 npregs->set.colori = ci; in newport_clear_screen()
145 npregs->set.xystarti = (xstart << 16) | ystart; in newport_clear_screen()
146 npregs->go.xyendi = (xend << 16) | yend; in newport_clear_screen()
161 newport_wait(npregs); in newport_reset()
162 treg = newport_vc2_get(npregs, VC2_IREG_CONTROL); in newport_reset()
163 newport_vc2_set(npregs, VC2_IREG_CONTROL, in newport_reset()
166 treg = newport_vc2_get(npregs, VC2_IREG_CENTRY); in newport_reset()
167 newport_vc2_set(npregs, VC2_IREG_RADDR, treg); in newport_reset()
168 npregs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_RAM | in newport_reset()
171 newport_bfwait(npregs); in newport_reset()
173 npregs->set.dcbdata0.byshort.s1 = 0xff00; in newport_reset()
175 npregs->set.dcbdata0.byshort.s1 = 0x0000; in newport_reset()
181 npregs->set.dcbmode = (DCB_XMAP0 | R_DCB_XMAP9_PROTOCOL | in newport_reset()
183 npregs->set.dcbdata0.bybytes.b3 &= ~XM9_PUPMODE; in newport_reset()
184 npregs->set.dcbmode = (DCB_XMAP1 | R_DCB_XMAP9_PROTOCOL | in newport_reset()
186 npregs->set.dcbdata0.bybytes.b3 &= ~XM9_PUPMODE; in newport_reset()
189 npregs->cset.topscan = 0x3ff; in newport_reset()
190 npregs->cset.xywin = (4096 << 16) | 4096; in newport_reset()
206 ventry = newport_vc2_get(npregs, VC2_IREG_VENTRY); in newport_get_screensize()
207 newport_vc2_set(npregs, VC2_IREG_RADDR, ventry); in newport_get_screensize()
208 npregs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_RAM | in newport_get_screensize()
211 newport_bfwait(npregs); in newport_get_screensize()
212 linetable[i] = npregs->set.dcbdata0.byshort.s1; in newport_get_screensize()
218 newport_vc2_set(npregs, VC2_IREG_RADDR, linetable[i]); in newport_get_screensize()
219 npregs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_RAM | in newport_get_screensize()
222 newport_bfwait(npregs); in newport_get_screensize()
223 treg = npregs->set.dcbdata0.byshort.s1; in newport_get_screensize()
227 newport_bfwait(npregs); in newport_get_screensize()
228 treg = npregs->set.dcbdata0.byshort.s1; in newport_get_screensize()
251 rex3_rev = npregs->cset.status & NPORT_STAT_VERS; in newport_get_revisions()
253 npregs->set.dcbmode = (DCB_CMAP0 | NCMAP_PROTOCOL | in newport_get_revisions()
255 tmp = npregs->set.dcbdata0.bybytes.b3; in newport_get_revisions()
260 npregs->set.dcbmode = (DCB_CMAP1 | NCMAP_PROTOCOL | in newport_get_revisions()
262 tmp = npregs->set.dcbdata0.bybytes.b3; in newport_get_revisions()
266 vc2_rev = (newport_vc2_get(npregs, VC2_IREG_CONFIG) >> 5) & 7; in newport_get_revisions()
268 npregs->set.dcbmode = (DCB_XMAP0 | R_DCB_XMAP9_PROTOCOL | in newport_get_revisions()
270 xmap9_rev = npregs->set.dcbdata0.bybytes.b3 & 7; in newport_get_revisions()
272 npregs->set.dcbmode = (DCB_BT445 | BT445_PROTOCOL | in newport_get_revisions()
274 npregs->set.dcbdata0.bybytes.b3 = BT445_REVISION_REG; in newport_get_revisions()
275 npregs->set.dcbmode = (DCB_BT445 | BT445_PROTOCOL | in newport_get_revisions()
277 bt445_rev = (npregs->set.dcbdata0.bybytes.b3 >> 4) - 0x0a; in newport_get_revisions()
304 npregs->cset.config = NPORT_CFG_GD0; in newport_startup()
306 if (newport_wait(npregs)) in newport_startup()
309 npregs->set.xstarti = TESTVAL; in newport_startup()
310 if (npregs->set._xstart.word != XSTI_TO_FXSTART(TESTVAL)) in newport_startup()
384 newport_wait(npregs); in newport_putc()
385 npregs->set.colori = charattr & 0xf; in newport_putc()
386 npregs->set.drawmode0 = (NPORT_DMODE0_DRAW | NPORT_DMODE0_BLOCK | in newport_putc()
391 npregs->set.xystarti = (xpos << 16) | ((ypos + topscan) & 0x3ff); in newport_putc()
392 npregs->set.xyendi = ((xpos + 7) << 16); in newport_putc()
393 newport_wait(npregs); in newport_putc()
396 RENDER(npregs, p); in newport_putc()
417 newport_wait(npregs); in newport_putcs()
420 npregs->set.colori = charattr & 0xf; in newport_putcs()
421 npregs->set.drawmode0 = (NPORT_DMODE0_DRAW | NPORT_DMODE0_BLOCK | in newport_putcs()
428 newport_wait(npregs); in newport_putcs()
431 npregs->set.xystarti = in newport_putcs()
433 npregs->set.xyendi = ((xpos + 7) << 16); in newport_putcs()
436 RENDER(npregs, p); in newport_putcs()
447 treg = newport_vc2_get(npregs, VC2_IREG_CONTROL); in newport_cursor()
448 newport_vc2_set(npregs, VC2_IREG_CONTROL, in newport_cursor()
454 treg = newport_vc2_get(npregs, VC2_IREG_CONTROL); in newport_cursor()
455 newport_vc2_set(npregs, VC2_IREG_CONTROL, in newport_cursor()
460 newport_vc2_set(npregs, VC2_IREG_CURSX, xcurs); in newport_cursor()
461 newport_vc2_set(npregs, VC2_IREG_CURSY, ycurs); in newport_cursor()
470 npregs->cset.topscan = 0x3ff; in newport_switch()
488 treg = newport_vc2_get(npregs, VC2_IREG_CONTROL); in newport_blank()
489 newport_vc2_set(npregs, VC2_IREG_CONTROL, in newport_blank()
493 treg = newport_vc2_get(npregs, VC2_IREG_CONTROL); in newport_blank()
494 newport_vc2_set(npregs, VC2_IREG_CONTROL, in newport_blank()
598 npregs->cset.topscan = (topscan - 1) & 0x3ff; in newport_scroll()
704 if (npregs) in newport_probe()
711 npregs = (struct newport_regs *)/* ioremap cannot fail */ in newport_probe()
718 iounmap((void *)npregs); in newport_probe()
727 iounmap((void *)npregs); in newport_remove()