Home | History | Annotate | Download | only in ic

Lines Matching defs:vh

529 	struct vga_handle *vh = &vc->hdl;
533 vh->vh_iot = iot;
534 vh->vh_memt = memt;
536 if (bus_space_map(vh->vh_iot, 0x3c0, 0x10, 0, &vh->vh_ioh_vga))
540 mor = vga_raw_read(vh, VGA_MISC_DATAR);
541 vh->vh_mono = !(mor & 1);
543 if (bus_space_map(vh->vh_iot, (vh->vh_mono ? 0x3b0 : 0x3d0), 0x10, 0,
544 &vh->vh_ioh_6845))
547 if (bus_space_map(vh->vh_memt, 0xa0000, 0x20000,
548 BUS_SPACE_MAP_CACHEABLE, &vh->vh_allmemh))
551 if (bus_space_subregion(vh->vh_memt, vh->vh_allmemh,
552 (vh->vh_mono ? 0x10000 : 0x18000), 0x8000, &vh->vh_memh))
558 vc->currenttype = vh->vh_mono ? &vga_25lscreen_mono : &vga_25lscreen;
584 if (!vh->vh_mono && (u_int)WSDISPLAY_BORDER_COLOR < sizeof(fgansitopc))
585 _vga_attr_write(vh, VGA_ATC_OVERSCAN,
716 struct vga_handle *vh;
719 vh = &vc->hdl;
724 bus_space_unmap(vh->vh_iot, vh->vh_ioh_vga, 0x10);
725 bus_space_unmap(vh->vh_iot, vh->vh_ioh_6845, 0x10);
726 bus_space_unmap(vh->vh_memt, vh->vh_allmemh, 0x20000);
1006 struct vga_handle *vh = &vc->hdl;
1037 bus_space_read_region_2(vh->vh_memt, vh->vh_memh,
1043 vga_setscreentype(vh, type);
1052 vga_6845_write(vh, startadrh, scr->pcs.dispoffset >> 9);
1053 vga_6845_write(vh, startadrl, scr->pcs.dispoffset >> 1);
1056 bus_space_write_region_2(vh->vh_memt, vh->vh_memh,
1461 struct vga_handle *vh = &vc->hdl;
1493 vga_6845_write(vh, startadrh, scr->pcs.visibleoffset >> 9);
1494 vga_6845_write(vh, startadrl, scr->pcs.visibleoffset >> 1);
1509 struct vga_handle *vh = &vc->hdl;
1513 if (vh->vh_mono)
1516 value = _vga_attr_read(vh, VGA_ATC_OVERSCAN);
1529 struct vga_handle *vh = &vc->hdl;
1531 if (vh->vh_mono)
1536 _vga_attr_write(vh, VGA_ATC_OVERSCAN, fgansitopc[value]);
1557 struct vga_handle *vh = &vc->hdl;
1561 if (vh->vh_mono)
1564 vga_raw_write(vh, VGA_DAC_PELMASK, 0xff);
1565 vga_raw_write(vh, VGA_DAC_ADDRR, 0x00);
1567 *palette++ = vga_raw_read(vh, VGA_DAC_PALETTE);
1569 vga_reset_state(vh); /* reset flip/flop */
1575 struct vga_handle *vh = &vc->hdl;
1579 if (vh->vh_mono)
1582 vga_raw_write(vh, VGA_DAC_PELMASK, 0xff);
1583 vga_raw_write(vh, VGA_DAC_ADDRW, 0x00);
1585 vga_raw_write(vh, VGA_DAC_PALETTE, *palette++);
1587 vga_reset_state(vh); /* reset flip/flop */
1588 vga_enable(vh);