cfxga_write_2
cfxga_write_2(sc, CFREG_BITBLT_ROP, 0 | (OP_SOLID_FILL << 8));
cfxga_write_2(sc, CFREG_BITBLT_SRC_LOW, pos);
cfxga_write_2(sc, CFREG_BITBLT_SRC_HIGH, pos >> 16);
cfxga_write_2(sc, CFREG_BITBLT_DST_LOW, pos);
cfxga_write_2(sc, CFREG_BITBLT_DST_HIGH, pos >> 16);
cfxga_write_2(sc, CFREG_BITBLT_OFFSET,
cfxga_write_2(sc, CFREG_BITBLT_WIDTH, cx - 1);
cfxga_write_2(sc, CFREG_BITBLT_HEIGHT, cy - 1);
cfxga_write_2(sc, CFREG_BITBLT_FG, (u_int16_t)srccolor);
cfxga_write_2(sc, CFREG_BITBLT_CONTROL, BITBLT_ACTIVE |
cfxga_write_2(sc, CFREG_BITBLT_ROP, opcode);
cfxga_write_2(sc, CFREG_BITBLT_SRC_LOW, srcpos);
cfxga_write_2(sc, CFREG_BITBLT_SRC_HIGH, srcpos >> 16);
cfxga_write_2(sc, CFREG_BITBLT_DST_LOW, dstpos);
cfxga_write_2(sc, CFREG_BITBLT_DST_HIGH, dstpos >> 16);
cfxga_write_2(sc, CFREG_BITBLT_OFFSET,
cfxga_write_2(sc, CFREG_BITBLT_WIDTH, cx - 1);
cfxga_write_2(sc, CFREG_BITBLT_HEIGHT, cy - 1);
cfxga_write_2(sc, CFREG_BITBLT_CONTROL, BITBLT_ACTIVE |
cfxga_write_2(sc, CFREG_REV, 0x80 | (CM_REGSEL << 8));
cfxga_write_2(sc, CFREG_REV, 0 | (CM_MEMSEL << 8));
cfxga_write_2(sc, CFREG_BITBLT_CONTROL, 0);
cfxga_write_2(sc, CFREG_MEMCLK, MEMCLK_SRC_CLK3);
cfxga_write_2(sc, CFREG_CRTTV_PCLK, CRT_PCLK_SRC_CLKI | CRT_PCLK_DIV_1);
cfxga_write_2(sc, CFREG_WSTATE, WSTATE_MCLK);
cfxga_write_2(sc, CFREG_MEMCNF,
cfxga_write_2(sc, CFREG_DRAM_TIMING, DRAM_TIMING_50MHZ);
cfxga_write_2(sc, CFREG_CRT_HNDISP, 23 | (2 << 8));
cfxga_write_2(sc, CFREG_CRT_VHEIGHT, 480 - 1);
cfxga_write_2(sc, CFREG_CRT_VNDISP, 39 | (8 << 8));
cfxga_write_2(sc, CFREG_CRT_HNDISP, 27 | (2 << 8));
cfxga_write_2(sc, CFREG_CRT_VHEIGHT, 600 - 1);
cfxga_write_2(sc, CFREG_CRT_VNDISP, 25 | (8 << 8));
cfxga_write_2(sc, CFREG_CRT_START_LOW, 0);
cfxga_write_2(sc, CFREG_CRT_MEMORY, ri->ri_width * ri->ri_depth / 16);
cfxga_write_2(sc, CFREG_COLOR_EXPANSION,
cfxga_write_2(sc, CFREG_BITBLT_SRC_LOW, font->fontwidth <= 8 ? 0 : 1);
cfxga_write_2(sc, CFREG_BITBLT_SRC_HIGH, 0);
cfxga_write_2(sc, CFREG_BITBLT_DST_LOW, pos);
cfxga_write_2(sc, CFREG_BITBLT_DST_HIGH, pos >> 16);
cfxga_write_2(sc, CFREG_BITBLT_OFFSET,
cfxga_write_2(sc, CFREG_BITBLT_WIDTH, font->fontwidth - 1);
cfxga_write_2(sc, CFREG_BITBLT_HEIGHT, font->fontheight - 1);
cfxga_write_2(sc, CFREG_BITBLT_FG, ri->ri_devcmap[fg]);
cfxga_write_2(sc, CFREG_BITBLT_BG, ri->ri_devcmap[bg]);
cfxga_write_2(sc, CFREG_BITBLT_CONTROL, BITBLT_ACTIVE |
cfxga_write_2(sc, CFREG_BITBLT_DATA, chunk);
cfxga_write_2(sc, CFREG_BITBLT_CONTROL, 0);