vga_ts_write
vga_ts_write(vh, mode, vga_ts_read(vh, mode) | VGA_TS_MODE_BLANK);
vga_ts_write(vh, mode, vga_ts_read(vh, mode) & ~VGA_TS_MODE_BLANK);
vga_ts_write(&vc->hdl, syncreset, 0x01);
vga_ts_write(&vc->hdl, mode, val & ~VGA_TS_MODE_BLANK);
vga_ts_write(&vc->hdl, mode, val | VGA_TS_MODE_BLANK);
vga_ts_write(&vc->hdl, syncreset, 0x03);
vga_ts_write(vh, mode, vga_ts_read(vh, mode) | VGA_TS_MODE_BLANK);
vga_ts_write(vh, syncreset, 0x01);
vga_ts_write(vh, mode, regs->ts[1] | VGA_TS_MODE_BLANK);
vga_ts_write(vh, syncreset, 0x03);
vga_ts_write(vh, mode, vga_ts_read(vh, mode) & ~VGA_TS_MODE_BLANK);
vga_ts_write(&vc->hdl, syncreset, 0x01);
vga_ts_write(&vc->hdl, mode, val & ~VGA_TS_MODE_BLANK);
vga_ts_write(&vc->hdl, mode, val | VGA_TS_MODE_BLANK);
vga_ts_write(&vc->hdl, syncreset, 0x03);
vga_ts_write(vh, fontsel, cmap);
vga_ts_write(vh, mode, vga_ts[1] | VGA_TS_MODE_BLANK);
vga_ts_write(vh, syncreset, 0x01);
vga_ts_write(vh, syncreset, 0x03);
vga_ts_write(vh, mode, vga_ts[1] & ~VGA_TS_MODE_BLANK);
vga_ts_write(vh, syncreset, 0x01); /* synchronous reset */
vga_ts_write(vh, wrplmask, 0x04); /* write to map 2 */
vga_ts_write(vh, memmode, 0x07); /* sequential addressing */
vga_ts_write(vh, syncreset, 0x03); /* clear synchronous reset */
vga_ts_write(vh, syncreset, 0x01); /* synchronous reset */
vga_ts_write(vh, wrplmask, 0x03); /* write to map 0 & 1 */
vga_ts_write(vh, memmode, 0x03); /* odd-even addressing */
vga_ts_write(vh, syncreset, 0x03); /* clear synchronous reset */