temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, realcrtno, 0, &buffer[0]); if((!temp) || (temp == 0xffff)) { printk(KERN_INFO "sisfb: CRT%d DDC probing failed\n", crtno + 1); 
temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, realcrtno, 0, &buffer[0], ivideo->vbflags2); if((!temp) || (temp == 0xffff)) { printk(KERN_INFO "sisfb: CRT%d DDC probing failed\n", crtno + 1); 
sisfb_handle_ddc(struct sis_video_info *ivideo, struct sisfb_monitor *monitor, int crtno){	USHORT  temp, i, realcrtno = crtno;   	u8      buffer[256];	monitor->datavalid = FALSE;	if(crtno) {       	   if(ivideo->vbflags & CRT2_LCD)      realcrtno = 1;      	   else if(ivideo->vbflags & CRT2_VGA) realcrtno = 2;      	   else return;   	}	if((ivideo->sisfb_crt1off) && (!crtno)) return;    	temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine,				realcrtno, 0, &buffer[0]);   	if((!temp) || (temp == 0xffff)) {      	   printk(KERN_INFO "sisfb: CRT%d DDC probing failed\n", crtno + 1);	   return;   	} else {      	   printk(KERN_INFO "sisfb: CRT%d DDC supported\n", crtno + 1);      	   printk(KERN_INFO "sisfb: CRT%d DDC level: %s%s%s%s\n",	   	crtno + 1,	   	(temp & 0x1a) ? "" : "[none of the supported]",	   	(temp & 0x02) ? "2 " : "",	   	(temp & 0x08) ? "D&P" : "",           	(temp & 0x10) ? "FPDI-2" : "");      	   if(temp & 0x02) {	      i = 3;  /* Number of retrys */	      do {	    	 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine,				     realcrtno, 1, &buffer[0]);	      } while((temp) && i--);              if(!temp) {	    	 if(sisfb_interpret_edid(monitor, &buffer[0])) {		    printk(KERN_INFO "sisfb: Monitor range H %d-%dKHz, V %d-%dHz, Max. dotclock %dMHz\n",		    	monitor->hmin, monitor->hmax, monitor->vmin, monitor->vmax,			monitor->dclockmax / 1000);		 } else {	       	    printk(KERN_INFO "sisfb: CRT%d DDC EDID corrupt\n", crtno + 1);	    	 }	      } else {            	 printk(KERN_INFO "sisfb: CRT%d DDC reading failed\n", crtno + 1);	      }	   } else {	      printk(KERN_INFO "sisfb: VESA D&P and FPDI-2 not supported yet\n");	   }	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/sis_main.c/clean/drivers/video/sis/sis_main.c