if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr->SiS_SetFlag |= ProgrammingCRT2; } 
if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr->SiS_SetFlag |= ProgrammingCRT2; } 
SiS_SetCRT1Group(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo,                 USHORT ModeNo, USHORT ModeIdIndex){  USHORT  StandTableIndex,RefreshRateTableIndex;  SiS_Pr->SiS_CRT1Mode = ModeNo;  StandTableIndex = SiS_GetModePtr(SiS_Pr, ModeNo, ModeIdIndex);  if(SiS_Pr->SiS_SetFlag & LowModeTests) {     if(SiS_Pr->SiS_VBInfo & (SetSimuScanMode | SwitchCRT2)) {        SiS_DisableBridge(SiS_Pr, HwInfo);     }  }  SiS_ResetSegmentRegisters(SiS_Pr, HwInfo);  SiS_SetSeqRegs(SiS_Pr, StandTableIndex, HwInfo);  SiS_SetMiscRegs(SiS_Pr, StandTableIndex, HwInfo);  SiS_SetCRTCRegs(SiS_Pr, HwInfo, StandTableIndex);  SiS_SetATTRegs(SiS_Pr, StandTableIndex, HwInfo);  SiS_SetGRCRegs(SiS_Pr, StandTableIndex);  SiS_ClearExt1Regs(SiS_Pr, HwInfo, ModeNo);  SiS_ResetCRT1VCLK(SiS_Pr, HwInfo);  SiS_Pr->SiS_SelectCRT2Rate = 0;  SiS_Pr->SiS_SetFlag &= (~ProgrammingCRT2);#ifdef LINUX_XF86  xf86DrvMsgVerb(0, X_PROBED, 4, "(init: VBType=0x%04x, VBInfo=0x%04x)\n",                    SiS_Pr->SiS_VBType, SiS_Pr->SiS_VBInfo);#endif  if(SiS_Pr->SiS_VBInfo & SetSimuScanMode) {     if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) {        SiS_Pr->SiS_SetFlag |= ProgrammingCRT2;     }  }  if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) {     SiS_Pr->SiS_SetFlag |= ProgrammingCRT2;  }  RefreshRateTableIndex = SiS_GetRatePtr(SiS_Pr, ModeNo, ModeIdIndex, HwInfo);  if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) {     SiS_Pr->SiS_SetFlag &= ~ProgrammingCRT2;  }  if(RefreshRateTableIndex != 0xFFFF) {     SiS_SetCRT1Sync(SiS_Pr, RefreshRateTableIndex);     SiS_SetCRT1CRTC(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex, HwInfo);     SiS_SetCRT1Offset(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex, HwInfo);     SiS_SetCRT1VCLK(SiS_Pr, ModeNo, ModeIdIndex, HwInfo, RefreshRateTableIndex);  }#ifdef SIS300  if(HwInfo->jChipType == SIS_300) {     SiS_SetCRT1FIFO_300(SiS_Pr, ModeNo,HwInfo,RefreshRateTableIndex);  } else if((HwInfo->jChipType == SIS_630) ||            (HwInfo->jChipType == SIS_730) ||            (HwInfo->jChipType == SIS_540)) {     SiS_SetCRT1FIFO_630(SiS_Pr, ModeNo, HwInfo, RefreshRateTableIndex);  }#endif#ifdef SIS315H  if(HwInfo->jChipType >= SIS_315H) {     SiS_SetCRT1FIFO_310(SiS_Pr, ModeNo, ModeIdIndex, HwInfo);  }#endif  SiS_SetCRT1ModeRegs(SiS_Pr, HwInfo, ModeNo, ModeIdIndex, RefreshRateTableIndex);  SiS_LoadDAC(SiS_Pr, HwInfo, ModeNo, ModeIdIndex);#ifdef LINUX_KERNEL  if(SiS_Pr->SiS_flag_clearbuffer) {     SiS_ClearBuffer(SiS_Pr,HwInfo,ModeNo);  }#endif  if(!(SiS_Pr->SiS_VBInfo & (SetSimuScanMode | SwitchCRT2 | SetCRT2ToLCDA))) {     SiS_WaitRetrace1(SiS_Pr);     SiS_DisplayOn(SiS_Pr);  }}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init.c/clean/drivers/video/sis/init.c