SiS_GetChReg(SiS_Private *SiS_Pr, USHORT myor) 
SiS_GetChReg(struct SiS_Private *SiS_Pr, unsigned short myor) 
SiS_GetChReg(SiS_Private *SiS_Pr, USHORT myor){  USHORT tempah,temp,i;  for(i=0; i<20; i++) {				/* Do 20 attempts to read */     if(i) {        SiS_SetStop(SiS_Pr);	SiS_DDC2Delay(SiS_Pr,SiS_I2CDELAYSHORT);     }     if(SiS_SetStart(SiS_Pr)) continue;		/* Set start condition */     tempah = SiS_Pr->SiS_DDC_DeviceAddr;     temp = SiS_WriteDDC2Data(SiS_Pr,tempah);	/* Write DAB (S0=0=write) */     if(temp) continue;				/*        (ERROR: no ack) */     tempah = SiS_Pr->SiS_DDC_ReadAddr | myor;	/* Write RAB (700x: | 0x80) */     temp = SiS_WriteDDC2Data(SiS_Pr,tempah);     if(temp) continue;				/*        (ERROR: no ack) */     if (SiS_SetStart(SiS_Pr)) continue;	/* Re-start */     tempah = SiS_Pr->SiS_DDC_DeviceAddr | 0x01;/* DAB | 0x01 = Read */     temp = SiS_WriteDDC2Data(SiS_Pr,tempah);	/* DAB (S0=1=read) */     if(temp) continue;				/*        (ERROR: no ack) */     tempah = SiS_ReadDDC2Data(SiS_Pr,tempah);	/* Read byte */     if(SiS_SetStop(SiS_Pr)) continue;		/* Stop condition */     SiS_Pr->SiS_ChrontelInit = 1;     return(tempah);  }  return 0xFFFF;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init301.c/clean/drivers/video/sis/init301.c