Home | History | Annotate | Download | only in isa

Lines Matching defs:pcs

66 	struct pcdisplayscreen pcs;
289 const struct wsscreen_descr *type = scr->pcs.type;
342 scr->pcs.hdl = (struct pcdisplay_handle *)&vc->hdl;
343 scr->pcs.type = type;
344 scr->pcs.active = 0;
356 scr->pcs.dispoffset = vga_6845_read(&vc->hdl, startadrh) << 9;
357 scr->pcs.dispoffset |= vga_6845_read(&vc->hdl, startadrl) << 1;
360 if (scr->pcs.dispoffset < scr->mindispoffset ||
361 scr->pcs.dispoffset > scr->maxdispoffset)
362 scr->pcs.dispoffset = scr->mindispoffset;
365 scr->pcs.dispoffset = scr->mindispoffset;
368 scr->pcs.cursorrow = cpos / type->ncols;
369 scr->pcs.cursorcol = cpos % type->ncols;
370 pcdisplay_cursor_init(&scr->pcs, existing);
378 scr->pcs.mem = NULL;
545 ega_console_screen.pcs.active = 1;
549 ega_console_screen.pcs.cursorcol,
550 ega_console_screen.pcs.cursorrow,
594 vc->screens.lh_first->pcs.mem =
602 scr->pcs.active = 1;
606 scr->pcs.mem = malloc(type->ncols * type->nrows * 2,
608 pcdisplay_eraserows(&scr->pcs, 0, type->nrows, *defattrp);
612 *curxp = scr->pcs.cursorcol;
613 *curyp = scr->pcs.cursorrow;
685 type = scr->pcs.type;
689 if (!oldscr->pcs.active)
691 if (oldscr->pcs.type != vc->currenttype)
699 if (scr->pcs.active)
704 const struct wsscreen_descr *oldtype = oldscr->pcs.type;
706 oldscr->pcs.active = 0;
708 oldscr->pcs.dispoffset, oldscr->pcs.mem,
720 scr->pcs.dispoffset = scr->mindispoffset;
721 if (!oldscr || (scr->pcs.dispoffset != oldscr->pcs.dispoffset)) {
722 vga_6845_write(vh, startadrh, scr->pcs.dispoffset >> 9);
723 vga_6845_write(vh, startadrl, scr->pcs.dispoffset >> 1);
727 scr->pcs.dispoffset, scr->pcs.mem,
729 scr->pcs.active = 1;
733 pcdisplay_cursor(&scr->pcs, scr->pcs.cursoron,
734 scr->pcs.cursorrow, scr->pcs.cursorcol);
836 bus_space_tag_t memt = scr->pcs.hdl->ph_memt;
837 bus_space_handle_t memh = scr->pcs.hdl->ph_memh;
838 int ncols = scr->pcs.type->ncols;
844 if (scr->pcs.active) {
845 if (dstrow == 0 && (srcrow + nrows == scr->pcs.type->nrows)) {
847 int cursoron = scr->pcs.cursoron;
850 pcdisplay_cursor(&scr->pcs, 0,
851 scr->pcs.cursorrow, scr->pcs.cursorcol);
854 if ((scr->pcs.dispoffset + srcrow * ncols * 2)
856 scr->pcs.dispoffset += srcrow * ncols * 2;
859 scr->pcs.dispoffset + srcoff * 2,
862 scr->pcs.dispoffset = scr->mindispoffset;
865 scr->pcs.dispoffset >> 9);
867 scr->pcs.dispoffset >> 1);
870 pcdisplay_cursor(&scr->pcs, 1,
871 scr->pcs.cursorrow, scr->pcs.cursorcol);
875 scr->pcs.dispoffset + srcoff * 2,
876 memh, scr->pcs.dispoffset + dstoff * 2,
880 memcpy(&scr->pcs.mem[dstoff], &scr->pcs.mem[srcoff],