wreg_crt
wreg_crt(cirrus, 0x0c, (u8)((addr >> 8) & 0xff));
wreg_crt(cirrus, 0x0d, (u8)(addr & 0xff));
wreg_crt(cirrus, 0x1b, tmp);
wreg_crt(cirrus, 0x1d, tmp);
wreg_crt(cirrus, VGA_CRTC_V_SYNC_END, 0x20);
wreg_crt(cirrus, VGA_CRTC_H_TOTAL, htotal);
wreg_crt(cirrus, VGA_CRTC_H_DISP, hdispend);
wreg_crt(cirrus, VGA_CRTC_H_SYNC_START, hsyncstart);
wreg_crt(cirrus, VGA_CRTC_H_SYNC_END, hsyncend);
wreg_crt(cirrus, VGA_CRTC_V_TOTAL, vtotal & 0xff);
wreg_crt(cirrus, VGA_CRTC_V_DISP_END, vdispend & 0xff);
wreg_crt(cirrus, VGA_CRTC_MAX_SCAN, tmp);
wreg_crt(cirrus, VGA_CRTC_OVERFLOW, tmp);
wreg_crt(cirrus, CL_CRT1A, tmp);
wreg_crt(cirrus, VGA_CRTC_MODE, 0x03);
wreg_crt(cirrus, VGA_CRTC_OFFSET, cr13);
wreg_crt(cirrus, 0x1b, cr1b);