vgaHWRestore(pScrn, &hwp->SavedReg, VGA_SR_MODE | VGA_SR_FONTS );
vgaHWRestore(pScrn, &hwp->SavedReg, VGA_SR_ALL );
static void RADEONRestore(ScrnInfoPtr pScrn){    RADEONInfoPtr info        = RADEONPTR(pScrn);    unsigned char *RADEONMMIO = info->MMIO;    RADEONSavePtr restore     = &info->SavedReg;    vgaHWPtr      hwp         = VGAHWPTR(pScrn);    RADEONTRACE(("RADEONRestore\n"));    if (info->FBDev) {	fbdevHWRestore(pScrn);	return;    }    RADEONBlank(pScrn);    OUTREG(RADEON_AMCGPIO_MASK,     restore->amcgpio_mask);    OUTREG(RADEON_AMCGPIO_EN_REG,   restore->amcgpio_en_reg);    OUTREG(RADEON_CLOCK_CNTL_INDEX, restore->clock_cntl_index);    OUTREG(RADEON_RBBM_SOFT_RESET,  restore->rbbm_soft_reset);    OUTREG(RADEON_DP_DATATYPE,      restore->dp_datatype);    /* M6 card has trouble restoring text mode for its CRT.       Needs this workaround.*/    if(xf86IsEntityShared(pScrn->entityList[0]) && info->IsM6)        OUTREG(RADEON_DAC_CNTL2, restore->dac2_cntl);    RADEONRestoreMode(pScrn, restore);    /* Temp fix to "solve" VT switch problems.  When switching VTs on       some systems, the console can either hang or the fonts can be       corrupted.  This hack solves the problem 99% of the time.  A       correct fix is being worked on. */    usleep(100000);    if(!info->IsSecondary)    {    vgaHWUnlock(hwp);#if defined(__powerpc__)    /* temporary hack to prevent crashing on PowerMacs when trying to     * write VGA fonts, will find a better solution in the future     */    vgaHWRestore(pScrn, &hwp->SavedReg, VGA_SR_MODE );#else    vgaHWRestore(pScrn, &hwp->SavedReg, VGA_SR_MODE | VGA_SR_FONTS );#endif    vgaHWLock(hwp);    }    else    {        DevUnion* pPriv;        RADEONEntPtr pRADEONEnt;        pPriv = xf86GetEntityPrivate(pScrn->entityList[0],             gRADEONEntityIndex);        pRADEONEnt = pPriv->ptr;        {            ScrnInfoPtr pScrn0 = pRADEONEnt->pPrimaryScrn;            vgaHWPtr      hwp0         = VGAHWPTR(pScrn0);            vgaHWUnlock(hwp0);            vgaHWRestore(pScrn0, &hwp0->SavedReg,                     VGA_SR_MODE | VGA_SR_FONTS );            vgaHWLock(hwp0);        }    }    RADEONUnblank(pScrn);#if 0    RADEONWaitForVerticalSync(pScrn);#endif}