CRT
case CRT:
case CRT:
case CRT:
case CRT:
Write32(CRT, regs->grphControl, fbFormat);
Write32(CRT, regs->grphSwapControl, fbSwap);
Write32(CRT, regs->grphSurfaceOffsetX, 0);
Write32(CRT, regs->grphSurfaceOffsetY, 0);
Write32(CRT, regs->grphXStart, 0);
Write32(CRT, regs->grphYStart, 0);
Write32(CRT, regs->grphXEnd, mode->virtual_width);
Write32(CRT, regs->grphYEnd, mode->virtual_height);
Write32(CRT, regs->grphPitch, widthAligned);
Write32(CRT, regs->grphEnable, 1);
Write32(CRT, regs->modeDesktopHeight, mode->virtual_height);
Write32(CRT, regs->viewportStart, 0);
Write32(CRT, regs->viewportSize,
Read32(CRT, AVIVO_D1CRTC_STATUS));
Read32(CRT, AVIVO_D2CRTC_STATUS));
Read32(CRT, AVIVO_D1CRTC_CONTROL));
Read32(CRT, AVIVO_D2CRTC_CONTROL));
Read32(CRT, AVIVO_D1GRPH_ENABLE));
Read32(CRT, AVIVO_D2GRPH_ENABLE));
Read32(CRT, AVIVO_D1SCL_SCALER_ENABLE));
Read32(CRT, AVIVO_D2SCL_SCALER_ENABLE));
Read32(CRT, AVIVO_D1CRTC_BLANK_CONTROL));
Read32(CRT, AVIVO_D1CRTC_BLANK_CONTROL));