SiS_GetRAMDAC2DATA(SiS_Private *SiS_Pr,USHORT ModeNo,USHORT ModeIdIndex, USHORT RefreshRateTableIndex,PSIS_HW_INFO HwInfo) 
SiS_GetRAMDAC2DATA(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, unsigned short RefreshRateTableIndex) 
SiS_GetRAMDAC2DATA(SiS_Private *SiS_Pr,USHORT ModeNo,USHORT ModeIdIndex,                   USHORT RefreshRateTableIndex,PSIS_HW_INFO HwInfo){  USHORT tempax=0,tempbx=0;  USHORT temp1=0,modeflag=0,tempcx=0;  USHORT index;  SiS_Pr->SiS_RVBHCMAX  = 1;  SiS_Pr->SiS_RVBHCFACT = 1;  if(ModeNo <= 0x13) {     modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag;     index = SiS_GetModePtr(SiS_Pr,ModeNo,ModeIdIndex);     tempax = SiS_Pr->SiS_StandTable[index].CRTC[0];     tempbx = SiS_Pr->SiS_StandTable[index].CRTC[6];     temp1 = SiS_Pr->SiS_StandTable[index].CRTC[7];  } else {     modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag;     index = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT1CRTC;     tempax = SiS_Pr->SiS_CRT1Table[index].CR[0];     tempax |= (SiS_Pr->SiS_CRT1Table[index].CR[14] << 8);     tempax &= 0x03FF;     tempbx = SiS_Pr->SiS_CRT1Table[index].CR[6];     tempcx = SiS_Pr->SiS_CRT1Table[index].CR[13] << 8;     tempcx &= 0x0100;     tempcx <<= 2;     tempbx |= tempcx;     temp1  = SiS_Pr->SiS_CRT1Table[index].CR[7];  }  if(temp1 & 0x01) tempbx |= 0x0100;  if(temp1 & 0x20) tempbx |= 0x0200;  tempax += 5;  /* Charx8Dot is no more used (and assumed), so we set it */  if(SiS_Pr->SiS_VBType & VB_SIS301BLV302BLV) {     modeflag |= Charx8Dot;  }  if(modeflag & Charx8Dot) tempax *= 8;  else                     tempax *= 9;  if(modeflag & HalfDCLK)  tempax <<= 1;  tempbx++;  SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax;  SiS_Pr->SiS_VGAVT = SiS_Pr->SiS_VT = tempbx;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init301.c/clean/drivers/video/sis/init301.c