for(i = 0; i <= 0x18; i++) { CRTCdata = SiS_Pr->SiS_StandTable[StandTableIndex].CRTC[i]; SiS_SetReg(SiS_Pr->SiS_P3d4,i,CRTCdata);                     /* Set CRTC(3d4) */ } if(HwInfo->jChipType >= SIS_661) { SiS_SetupCR5x(SiS_Pr, HwInfo); for(i = 0x13; i <= 0x14; i++) { CRTCdata = SiS_Pr->SiS_StandTable[StandTableIndex].CRTC[i]; SiS_SetReg(SiS_Pr->SiS_P3d4,i,CRTCdata); } } else if( ( (HwInfo->jChipType == SIS_630) || (HwInfo->jChipType == SIS_730) )  && (HwInfo->jChipRevision >= 0x30) ) {       	   /* for 630S0 */ if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToTV)) { SiS_SetReg(SiS_Pr->SiS_P3d4,0x18,0xFE); } } } 
for(i = 0; i <= 0x18; i++) { CRTCdata = SiS_Pr->SiS_StandTable[StandTableIndex].CRTC[i]; SiS_SetReg(SiS_Pr->SiS_P3d4,i,CRTCdata); }  if(SiS_Pr->ChipType >= SIS_661) { SiS_OpenCRTC(SiS_Pr); for(i = 0x13; i <= 0x14; i++) { CRTCdata = SiS_Pr->SiS_StandTable[StandTableIndex].CRTC[i]; SiS_SetReg(SiS_Pr->SiS_P3d4,i,CRTCdata); } } else if( ( (SiS_Pr->ChipType == SIS_630) || (SiS_Pr->ChipType == SIS_730) )  && (SiS_Pr->ChipRevision >= 0x30) ) { if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToTV)) { SiS_SetReg(SiS_Pr->SiS_P3d4,0x18,0xFE); } } } 
SiS_SetCRTCRegs(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo,                USHORT StandTableIndex){  UCHAR CRTCdata;  USHORT i;  SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x11,0x7f);                       /* Unlock CRTC */  for(i = 0; i <= 0x18; i++) {     CRTCdata = SiS_Pr->SiS_StandTable[StandTableIndex].CRTC[i];     SiS_SetReg(SiS_Pr->SiS_P3d4,i,CRTCdata);                     /* Set CRTC(3d4) */  }  if(HwInfo->jChipType >= SIS_661) {     SiS_SetupCR5x(SiS_Pr, HwInfo);     for(i = 0x13; i <= 0x14; i++) {        CRTCdata = SiS_Pr->SiS_StandTable[StandTableIndex].CRTC[i];        SiS_SetReg(SiS_Pr->SiS_P3d4,i,CRTCdata);     }  } else if( ( (HwInfo->jChipType == SIS_630) ||               (HwInfo->jChipType == SIS_730) )  &&             (HwInfo->jChipRevision >= 0x30) ) {       	   /* for 630S0 */     if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) {        if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToTV)) {           SiS_SetReg(SiS_Pr->SiS_P3d4,0x18,0xFE);        }     }  }}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init.c/clean/drivers/video/sis/init.c