if(ivideo->currentvbflags & CRT2_TV) { 
if(ivideo->currentvbflags & CRT2_TV) { 
static void sisfb_set_TVyposoffset(struct sis_video_info *ivideo, int val){   if(val > 32) val = 32;   if(val < -32) val = -32;   ivideo->tvypos = val;   if(ivideo->sisfblocked) return;   if(!ivideo->modechanged) return;   if(ivideo->currentvbflags & CRT2_TV) {      if(ivideo->vbflags & VB_CHRONTEL) {	 int y = ivideo->tvy;	 switch(ivideo->chronteltype) {	 case 1:	    y -= val;	    if(y < 0) y = 0;	    outSISIDXREG(SISSR,0x05,0x86);	    SiS_SetCH700x(&ivideo->SiS_Pr, (((y & 0xff) << 8) | 0x0b));	    SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, ((y & 0x0100) | 0x08),0xFE);	    break;	 case 2:	    /* Not supported by hardware */	    break;	 }      } else if(ivideo->vbflags & VB_SISBRIDGE) {	 char p2_01, p2_02;	 val /= 2;	 p2_01 = ivideo->p2_01;	 p2_02 = ivideo->p2_02;	 p2_01 += val;	 p2_02 += val;	 while((p2_01 <= 0) || (p2_02 <= 0)) {	    p2_01 += 2;	    p2_02 += 2;	 }	 outSISIDXREG(SISPART2,0x01,p2_01);	 outSISIDXREG(SISPART2,0x02,p2_02);      }   }}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/sis_main.c/clean/drivers/video/sis/sis_main.c