Lines Matching refs:hdl
448 scr->pcs.hdl = (struct pcdisplay_handle *)&vc->hdl; in vga_init_screen()
460 cpos = vga_6845_read(&vc->hdl, cursorh) << 8; in vga_init_screen()
461 cpos |= vga_6845_read(&vc->hdl, cursorl); in vga_init_screen()
467 scr->pcs.dispoffset = vga_6845_read(&vc->hdl, startadrh) << 9; in vga_init_screen()
468 scr->pcs.dispoffset |= vga_6845_read(&vc->hdl, startadrl) << 1; in vga_init_screen()
476 vga_setscreentype(&vc->hdl, type); in vga_init_screen()
492 if (!vc->hdl.vh_mono) in vga_init_screen()
529 struct vga_handle *vh = &vc->hdl; in vga_init()
570 vga_loadchars(&vc->hdl, 0, wf->firstchar, wf->numchars, in vga_init()
643 vga_readoutchars(&vc->hdl, BUILTINFONTLOC, 0, 256, in vga_common_attach()
656 aa.scrdata = (vc->hdl.vh_mono ? &vga_screenlist_mono : &vga_screenlist); in vga_common_attach()
676 scr = wsdisplay_screentype_pick(vga_console_vc.hdl.vh_mono ? in vga_cnattach()
691 vga_copyfont01(&vga_console_vc.hdl); in vga_cnattach()
719 vh = &vc->hdl; in vga_cndetach()
742 bus_space_is_equal(iot, vga_console_vc.hdl.vh_iot) && in vga_is_console()
752 return (vga_ts_read(&vc->hdl, mode) & VGA_TS_MODE_BLANK) == 0; in vga_get_video()
760 vga_ts_write(&vc->hdl, syncreset, 0x01); in vga_set_video()
762 val = vga_ts_read(&vc->hdl, mode); in vga_set_video()
763 vga_ts_write(&vc->hdl, mode, val & ~VGA_TS_MODE_BLANK); in vga_set_video()
765 val = vga_6845_read(&vc->hdl, mode); in vga_set_video()
766 vga_6845_write(&vc->hdl, mode, val | 0x80); in vga_set_video()
769 val = vga_ts_read(&vc->hdl, mode); in vga_set_video()
770 vga_ts_write(&vc->hdl, mode, val | VGA_TS_MODE_BLANK); in vga_set_video()
772 val = vga_6845_read(&vc->hdl, mode); in vga_set_video()
773 vga_6845_write(&vc->hdl, mode, val & ~0x80); in vga_set_video()
776 vga_ts_write(&vc->hdl, syncreset, 0x03); in vga_set_video()
947 vga_loadchars(&vc->hdl, slot, f->wsfont->firstchar, in vga_usefont()
971 vga_setfontset(&vc->hdl, fontslot1, fontslot2); in vga_setfont()
1006 struct vga_handle *vh = &vc->hdl; in vga_doswitch()
1104 if (vc->hdl.vh_mono) { in vga_allocattr()
1134 bus_space_tag_t memt = scr->pcs.hdl->ph_memt; in vga_copyrows()
1135 bus_space_handle_t memh = scr->pcs.hdl->ph_memh; in vga_copyrows()
1161 vga_6845_write(&scr->cfg->hdl, startadrh, in vga_copyrows()
1163 vga_6845_write(&scr->cfg->hdl, startadrl, in vga_copyrows()
1461 struct vga_handle *vh = &vc->hdl; in vga_scroll()
1509 struct vga_handle *vh = &vc->hdl; in vga_getborder()
1529 struct vga_handle *vh = &vc->hdl; in vga_setborder()
1545 vga_initregs(&sc->sc_vc->hdl); in vga_resume()
1549 vga_6845_write(&sc->sc_vc->hdl, curstart, 0x20); in vga_resume()
1550 vga_6845_write(&sc->sc_vc->hdl, curend, 0x00); in vga_resume()
1557 struct vga_handle *vh = &vc->hdl; in vga_save_palette()
1575 struct vga_handle *vh = &vc->hdl; in vga_restore_palette()