Lines Matching refs:restore

133 				     NeoRegPtr restore);
2173 * routines will restore the proper values on server exit.
2176 neoProgramShadowRegs(ScrnInfoPtr pScrn, vgaRegPtr VgaReg, NeoRegPtr restore)
2204 if (restore->PanelDispCntlReg2 & 0x84) {
2225 if (restore->PanelDispCntlReg2 & 0x84) {
2419 neoRestore(ScrnInfoPtr pScrn, vgaRegPtr VgaReg, NeoRegPtr restore,
2433 neoProgramShadowRegs(pScrn, VgaReg, restore);
2437 VGAwGR(0x0A,restore->GeneralLockReg);
2451 temp |= (restore->ExtColorModeSelect & ~0xF0);
2462 temp |= (restore->ExtColorModeSelect & ~0x70);
2491 VGAwGR(0x0E, restore->ExtCRTDispAddr);
2492 VGAwGR(0x0F, restore->ExtCRTOffset);
2495 temp |= (restore->SysIfaceCntl1 & ~0x0F);
2498 VGAwGR(0x11, restore->SysIfaceCntl2);
2499 VGAwGR(0x15, restore->SingleAddrPage);
2500 VGAwGR(0x16, restore->DualAddrPage);
2506 temp |= (restore->PanelDispCntlReg1 & ~0xFC);
2513 temp |= (restore->PanelDispCntlReg1 & ~0xDC);
2520 temp |= (restore->PanelDispCntlReg1 & ~0x98);
2527 temp |= (restore->PanelDispCntlReg2 & ~0x38);
2533 temp |= (restore->PanelDispCntlReg3 & ~0xEF);
2537 VGAwGR(0x28, restore->PanelVertCenterReg1);
2538 VGAwGR(0x29, restore->PanelVertCenterReg2);
2539 VGAwGR(0x2a, restore->PanelVertCenterReg3);
2542 VGAwGR(0x32, restore->PanelVertCenterReg4);
2543 VGAwGR(0x33, restore->PanelHorizCenterReg1);
2544 VGAwGR(0x34, restore->PanelHorizCenterReg2);
2545 VGAwGR(0x35, restore->PanelHorizCenterReg3);
2549 VGAwGR(0x36, restore->PanelHorizCenterReg4);
2554 VGAwGR(0x36, restore->PanelHorizCenterReg4);
2555 VGAwGR(0x37, restore->PanelVertCenterReg5);
2556 VGAwGR(0x38, restore->PanelHorizCenterReg5);
2563 if (restore->ProgramVCLK
2564 && ((VGArGR(0x9B) != restore->VCLK3NumeratorLow)
2565 || (VGArGR(0x9F) != restore->VCLK3Denominator)
2567 != (restore->VCLK3NumeratorHigh & ~0x0F))))) {
2568 VGAwGR(0x9B, restore->VCLK3NumeratorLow);
2572 temp |= (restore->VCLK3NumeratorHigh & ~0x0F);
2575 VGAwGR(0x9F, restore->VCLK3Denominator);
2577 if (restore->biosMode)
2578 VGAwCR(0x23,restore->biosMode);
2580 if (restore->reg) {
2581 VGAwCR(0x23,restore->reg->CR[0x23]);
2582 VGAwCR(0x25,restore->reg->CR[0x25]);
2583 VGAwCR(0x2F,restore->reg->CR[0x2F]);
2585 VGAwCR(i, restore->reg->CR[i]);
2588 VGAwCR(i, restore->reg->CR[i]);
2591 VGAwCR(i, restore->reg->CR[i]);
2595 VGAwGR(i, restore->reg->GR[i]);
2598 VGAwGR(i, restore->reg->GR[i]);
2607 VGAwCR(0x70, restore->VerticalExt);