Home | History | Annotate | Download | only in dev

Lines Matching refs:ri

140 	struct rasops_info *ri;
209 ri = &sc->sc_console_screen.scr_ri;
220 sc->sc_defaultscreen_descr.textops = &ri->ri_ops;
221 sc->sc_defaultscreen_descr.capabilities = ri->ri_caps;
222 sc->sc_defaultscreen_descr.nrows = ri->ri_rows;
223 sc->sc_defaultscreen_descr.ncols = ri->ri_cols;
225 wsdisplay_cnattach(&sc->sc_defaultscreen_descr, ri, 0, 0,
233 (*ri->ri_ops.allocattr)(ri, 0, 0, 0, &defattr);
263 struct rasops_info *ri = &scr->scr_ri;
267 ri->ri_depth = sc->sc_bpp;
268 ri->ri_width = sc->sc_width;
269 ri->ri_height = sc->sc_height;
270 ri->ri_stride = sc->sc_linebytes;
271 ri->ri_flg = 0;
273 /*ri->ri_flg = RI_BSWAP;*/
275 ri->ri_bits = (char *) bus_space_vaddr(sc->sc_iot, sc->sc_fbh);
277 aprint_normal_dev(sc->sc_dev, "ri_bits: %p\n", ri->ri_bits);
282 rasops_init(ri, 0, 0);
283 ri->ri_caps = WSSCREEN_WSCOLORS;
284 rasops_reconfig(ri, sc->sc_height / ri->ri_font->fontheight,
285 sc->sc_width / ri->ri_font->fontwidth);
287 ri->ri_hw = scr;
289 ri->ri_ops.eraserows = mntva_eraserows;
290 ri->ri_ops.copyrows = mntva_copyrows;
291 ri->ri_ops.erasecols = mntva_erasecols;
292 ri->ri_ops.copycols = mntva_copycols;
294 ri->ri_ops.cursor = mntva_cursor;
389 struct rasops_info *ri;
393 ri = cookie;
394 scr = ri->ri_hw;
398 x = ri->ri_xorigin;
399 ys = ri->ri_yorigin + ri->ri_font->fontheight * srcrow;
400 yd = ri->ri_yorigin + ri->ri_font->fontheight * dstrow;
401 wi = ri->ri_emuwidth;
402 he = ri->ri_font->fontheight * nrows;
411 struct rasops_info *ri;
415 ri = cookie;
416 scr = ri->ri_hw;
421 if ((row == 0) && (nrows == ri->ri_rows))
422 mntva_rectfill(sc, 0, 0, ri->ri_width,
423 ri->ri_height, ri->ri_devcmap[bg]);
425 x = ri->ri_xorigin;
426 y = ri->ri_yorigin + ri->ri_font->fontheight * row;
427 wi = ri->ri_emuwidth;
428 he = ri->ri_font->fontheight * nrows;
429 mntva_rectfill(sc, x, y, wi, he, ri->ri_devcmap[bg]);
438 struct rasops_info *ri;
442 ri = cookie;
443 scr = ri->ri_hw;
447 xs = ri->ri_xorigin + ri->ri_font->fontwidth * srccol;
448 xd = ri->ri_xorigin + ri->ri_font->fontwidth * dstcol;
449 y = ri->ri_yorigin + ri->ri_font->fontheight * row;
450 w = ri->ri_font->fontwidth * ncols;
451 h = ri->ri_font->fontheight;
461 struct rasops_info *ri;
465 ri = cookie;
466 scr = ri->ri_hw;
470 x = ri->ri_xorigin + ri->ri_font->fontwidth * startcol;
471 y = ri->ri_yorigin + ri->ri_font->fontheight * row;
472 w = ri->ri_font->fontwidth * ncols;
473 h = ri->ri_font->fontheight;
475 mntva_rectfill(sc, x, y, w, h, ri->ri_devcmap[bg & 0xf]);
530 struct rasops_info *ri;
533 ri = &sc->vd.active->scr_ri;
534 ret = wsdisplayio_get_fbinfo(ri, fbi);
547 struct rasops_info *ri;
551 ri = cookie;
552 scr = ri->ri_hw;
555 wi = ri->ri_font->fontwidth;
556 he = ri->ri_font->fontheight;
559 x = ri->ri_ccol * wi + ri->ri_xorigin;
560 y = ri->ri_crow * he + ri->ri_yorigin;
561 if (ri->ri_flg & RI_CURSOR) {
563 ri->ri_flg &= ~RI_CURSOR;
565 ri->ri_crow = row;
566 ri->ri_ccol = col;
568 x = ri->ri_ccol * wi + ri->ri_xorigin;
569 y = ri->ri_crow * he + ri->ri_yorigin;
571 ri->ri_flg |= RI_CURSOR;
603 /*wsdisplay_preattach(sc->sc_defaultscreen, ri, 0, 0, defattr);*/