if((SiS_Pr->SiS_LCDResInfo == Panel_640x480) || (SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr->SiS_SetFlag &= (~ProgrammingCRT2); if((SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRTVCLK & 0x3f) == 2) { RefreshRateTableIndex--; } vclkindex = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex, HwInfo); SiS_Pr->SiS_SetFlag |= ProgrammingCRT2; 
if(SiS_Pr->SiS_LCDInfo & LCDPass11) { SiS_Pr->SiS_SetFlag &= (~ProgrammingCRT2); if(SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRTVCLK == 2) { RefreshRateTableIndex--; } vclkindex = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr->SiS_SetFlag |= ProgrammingCRT2; 
SiS_SetCRT2ECLK(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex,           USHORT RefreshRateTableIndex, PSIS_HW_INFO HwInfo){  UCHAR  *ROMAddr = HwInfo->pjVirtualRomBase;  USHORT clkbase, vclkindex=0;  UCHAR  sr2b, sr2c;  if((SiS_Pr->SiS_LCDResInfo == Panel_640x480) || (SiS_Pr->SiS_LCDInfo & LCDPass11)) {	SiS_Pr->SiS_SetFlag &= (~ProgrammingCRT2);        if((SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRTVCLK & 0x3f) == 2) {	   RefreshRateTableIndex--;	}	vclkindex = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex,                                    RefreshRateTableIndex, HwInfo);	SiS_Pr->SiS_SetFlag |= ProgrammingCRT2;  } else {        vclkindex = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex,                                    RefreshRateTableIndex, HwInfo);  }  sr2b = SiS_Pr->SiS_VCLKData[vclkindex].SR2B;  sr2c = SiS_Pr->SiS_VCLKData[vclkindex].SR2C;  if((SiS_Pr->SiS_CustomT == CUT_BARCO1366) || (SiS_Pr->SiS_CustomT == CUT_BARCO1024)) {     if(SiS_Pr->SiS_UseROM) {	if(ROMAddr[0x220] & 0x01) {           sr2b = ROMAddr[0x227];	   sr2c = ROMAddr[0x228];	}     }  }  clkbase = 0x02B;  if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) {     if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) {    	clkbase += 3;     }  }  SiS_SetReg(SiS_Pr->SiS_P3c4,0x31,0x20);  SiS_SetReg(SiS_Pr->SiS_P3c4,clkbase,sr2b);  SiS_SetReg(SiS_Pr->SiS_P3c4,clkbase+1,sr2c);  SiS_SetReg(SiS_Pr->SiS_P3c4,0x31,0x10);  SiS_SetReg(SiS_Pr->SiS_P3c4,clkbase,sr2b);  SiS_SetReg(SiS_Pr->SiS_P3c4,clkbase+1,sr2c);  SiS_SetReg(SiS_Pr->SiS_P3c4,0x31,0x00);  SiS_SetReg(SiS_Pr->SiS_P3c4,clkbase,sr2b);  SiS_SetReg(SiS_Pr->SiS_P3c4,clkbase+1,sr2c);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init301.c/clean/drivers/video/sis/init301.c