SiS_SetReg(SiS_Pr->SiS_Part1Port,0x07,(offset & 0xFF)); SiS_SetReg(SiS_Pr->SiS_Part1Port,0x09,(offset >> 8)); temp = (UCHAR)(((offset >> 3) & 0xFF) + 1); if(offset % 8) temp++; SiS_SetReg(SiS_Pr->SiS_Part1Port,0x03,temp); 
temp = (unsigned char)(((offset >> 3) & 0xFF) + 1); if(offset & 0x07) temp++; SiS_SetReg(SiS_Pr->SiS_Part1Port,0x03,temp); 
SiS_SetCRT2Offset(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex,	          USHORT RRTI, PSIS_HW_INFO HwInfo){  USHORT offset;  UCHAR temp;  if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) return;  offset = SiS_GetOffset(SiS_Pr,ModeNo,ModeIdIndex,RRTI,HwInfo);  if((SiS_Pr->SiS_LCDResInfo == Panel_640x480_2) ||     (SiS_Pr->SiS_LCDResInfo == Panel_640x480_3)) {     offset >>= 1;  }  SiS_SetReg(SiS_Pr->SiS_Part1Port,0x07,(offset & 0xFF));  SiS_SetReg(SiS_Pr->SiS_Part1Port,0x09,(offset >> 8));  temp = (UCHAR)(((offset >> 3) & 0xFF) + 1);  if(offset % 8) temp++;  SiS_SetReg(SiS_Pr->SiS_Part1Port,0x03,temp);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init301.c/clean/drivers/video/sis/init301.c