temp = SiS_Pr->SiS_CRT1Table[index].CR[16] & 0xE0; SiS_SetReg(SiS_Pr->SiS_P3c4,0x0E,temp); 
SiS_SetReg(SiS_Pr->SiS_P3c4,0x0E,crt1data[16] & 0xE0); 
SiS_SetCRT1CRTC(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex,                USHORT RefreshRateTableIndex,		PSIS_HW_INFO HwInfo){  UCHAR  index;  USHORT temp,i,j,modeflag;  SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x11,0x7f);		/* unlock cr0-7 */  if(SiS_Pr->UseCustomMode) {     modeflag = SiS_Pr->CModeFlag;     for(i=0,j=0;i<=7;i++,j++) {        SiS_SetReg(SiS_Pr->SiS_P3d4,j,SiS_Pr->CCRT1CRTC[i]);     }     for(j=0x10;i<=10;i++,j++) {        SiS_SetReg(SiS_Pr->SiS_P3d4,j,SiS_Pr->CCRT1CRTC[i]);     }     for(j=0x15;i<=12;i++,j++) {        SiS_SetReg(SiS_Pr->SiS_P3d4,j,SiS_Pr->CCRT1CRTC[i]);     }     for(j=0x0A;i<=15;i++,j++) {        SiS_SetReg(SiS_Pr->SiS_P3c4,j,SiS_Pr->CCRT1CRTC[i]);     }     temp = SiS_Pr->CCRT1CRTC[16] & 0xE0;     SiS_SetReg(SiS_Pr->SiS_P3c4,0x0E,temp);     temp = (SiS_Pr->CCRT1CRTC[16] & 0x01) << 5;     if(modeflag & DoubleScanMode) temp |= 0x80;     SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x09,0x5F,temp);  } else {     if(ModeNo <= 0x13) {        modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag;     } else {        modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag;     }     index = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT1CRTC;     for(i=0,j=0;i<=7;i++,j++) {        SiS_SetReg(SiS_Pr->SiS_P3d4,j,SiS_Pr->SiS_CRT1Table[index].CR[i]);     }     for(j=0x10;i<=10;i++,j++) {        SiS_SetReg(SiS_Pr->SiS_P3d4,j,SiS_Pr->SiS_CRT1Table[index].CR[i]);     }     for(j=0x15;i<=12;i++,j++) {        SiS_SetReg(SiS_Pr->SiS_P3d4,j,SiS_Pr->SiS_CRT1Table[index].CR[i]);     }     for(j=0x0A;i<=15;i++,j++) {        SiS_SetReg(SiS_Pr->SiS_P3c4,j,SiS_Pr->SiS_CRT1Table[index].CR[i]);     }     temp = SiS_Pr->SiS_CRT1Table[index].CR[16] & 0xE0;     SiS_SetReg(SiS_Pr->SiS_P3c4,0x0E,temp);     temp = ((SiS_Pr->SiS_CRT1Table[index].CR[16]) & 0x01) << 5;     if(modeflag & DoubleScanMode)  temp |= 0x80;     SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x09,0x5F,temp);  }  if(SiS_Pr->SiS_ModeType > ModeVGA) SiS_SetReg(SiS_Pr->SiS_P3d4,0x14,0x4F);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init.c/clean/drivers/video/sis/init.c