checkmask |= SupportTV; if(SiS_Pr->SiS_VBType & VB_SIS301BLV302BLV) { checkmask |= SupportTV1024; if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) { checkmask |= SupportYPbPr750p; } } } 
checkmask |= SupportTV; if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { checkmask |= SupportTV1024; if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) { checkmask |= SupportYPbPr750p; } } } 
SiS_AdjustCRT2Rate(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex,                   USHORT RRTI, USHORT *i, PSIS_HW_INFO HwInfo){  USHORT checkmask=0,modeid,infoflag;  modeid = SiS_Pr->SiS_RefIndex[RRTI + (*i)].ModeID;  if(SiS_Pr->SiS_VBType & VB_SISVB) {     if(SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC) {      	checkmask |= SupportRAMDAC2;	if(HwInfo->jChipType >= SIS_315H) {	   checkmask |= SupportRAMDAC2_135;	   if(SiS_Pr->SiS_VBType & VB_SIS301BLV302BLV) {	      checkmask |= SupportRAMDAC2_162;	      if(SiS_Pr->SiS_VBType & VB_SIS301C) {		 checkmask |= SupportRAMDAC2_202;	      }	   }	}     } else if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) {     	checkmask |= SupportLCD;	if(HwInfo->jChipType >= SIS_315H) {	   if(SiS_Pr->SiS_VBType & VB_SISVB) {	      if((SiS_Pr->SiS_LCDInfo & DontExpandLCD) && (SiS_Pr->SiS_LCDInfo & LCDPass11)) {	         if(modeid == 0x2e) checkmask |= Support64048060Hz;	      }	   }	}     } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) {      	checkmask |= SupportHiVision;     } else if(SiS_Pr->SiS_VBInfo & (SetCRT2ToYPbPr525750|SetCRT2ToAVIDEO|SetCRT2ToSVIDEO|SetCRT2ToSCART)) {        checkmask |= SupportTV;	if(SiS_Pr->SiS_VBType & VB_SIS301BLV302BLV) {	   checkmask |= SupportTV1024;	   if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) {	      if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) {	         checkmask |= SupportYPbPr750p;	      }	   }	}     }  } else {	/* LVDS */     if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) {     	if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) {           checkmask |= SupportCHTV;      	}     }     if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) {     	checkmask |= SupportLCD;     }  }  /* Look backwards in table for matching CRT2 mode */  for(; SiS_Pr->SiS_RefIndex[RRTI + (*i)].ModeID == modeid; (*i)--) {     infoflag = SiS_Pr->SiS_RefIndex[RRTI + (*i)].Ext_InfoFlag;     if(infoflag & checkmask) return TRUE;     if((*i) == 0) break;  }  /* Look through the whole mode-section of the table from the beginning   * for a matching CRT2 mode if no mode was found yet.   */  for((*i) = 0; ; (*i)++) {     if(SiS_Pr->SiS_RefIndex[RRTI + (*i)].ModeID != modeid) break;     infoflag = SiS_Pr->SiS_RefIndex[RRTI + (*i)].Ext_InfoFlag;     if(infoflag & checkmask) return TRUE;  }  return FALSE;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init301.c/clean/drivers/video/sis/init301.c