outb(vgaCRReg, 0xa5);
outb(vgaCRReg, 0xa0); #if 0
S3SAVEnterLeave(enter)Bool enter;{   static int enterCalled = FALSE;   unsigned char tmp;#ifdef XFreeXDGA	if (vga256InfoRec.directMode&XF86DGADirectGraphics && !enter)		return;#endif   if (enter){      xf86ClearIOPortList(vga256InfoRec.scrnIndex);      xf86AddIOPorts(vga256InfoRec.scrnIndex, Num_VGA_IOPorts, VGA_IOPorts);      xf86EnableIOPorts(vga256InfoRec.scrnIndex);      /* Init the vgaIOBase reg index, depends on mono/color operation */      vgaIOBase = (inb(0x3CC) & 0x01) ? 0x3D0 : 0x3B0;      vgaCRIndex = vgaIOBase + 4;      vgaCRReg = vgaIOBase + 5;      /* Unprotect CRTC[0-7]  */      outb(vgaCRIndex, 0x11);      /* for register CR11 */      tmp = inb(vgaCRReg);         /* enable CR0-7 and disable interrupts */      outb(vgaCRReg, tmp & 0x7f);      /* And unlock extended regs */      outb(vgaCRIndex, 0x38);      /* for register CR38, (REG_LOCK1) */      outb(vgaCRReg, 0x48);        /* unlock S3 register set for read/write */      outb(vgaCRIndex, 0x39);          outb(vgaCRReg, 0xa5);      outb(vgaCRIndex, 0x40);      tmp = inb(vgaCRReg);      outb(vgaCRReg, tmp & ~0x01);   /* avoid lockups when reading I/O port 0x92e8 */      enterCalled = TRUE;      }   else {      if (s3savMmioMem) {	 unsigned char cr3a, cr53, cr66;	 outb(vgaCRIndex, 0x53);	 cr53 = inb(vgaCRReg);	 outb(vgaCRReg, cr53 | 0x08);  /* Enable NEWMMIO temporarily */	 outb(vgaCRIndex, 0x66);	 cr66 = inb(vgaCRReg);	 outb(vgaCRReg, cr66 | 0x80);	 outb(vgaCRIndex, 0x3a);	 cr3a = inb(vgaCRReg);	 outb(vgaCRReg, cr3a | 0x80);         WaitIdle();           /* DOn't know if these map properly ? */         WaitCommandEmpty();   /* We should probably do a DMAEmpty() as well */	 outb(vgaCRIndex, 0x53);	 outb(vgaCRReg, cr53);   /* Restore CR53 to original for MMIO */	 outb(vgaCRIndex, 0x66);	 outb(vgaCRReg, cr66);	 outb(vgaCRIndex, 0x3a);             	 outb(vgaCRReg, cr3a);         }      if (enterCalled){         /* Protect CR[0-7] */         outb(vgaCRIndex, 0x11);      /* for register CR11 */         tmp = inb(vgaCRReg);         /* disable CR0-7 */         outb(vgaCRReg, (tmp & 0x7f) | 0x80);               /* Relock extended regs-> To DO */               xf86DisableIOPorts(vga256InfoRec.scrnIndex);         enterCalled = FALSE;         }     }}