p2_1f = ivideo->p2_1f; p2_20 = ivideo->p2_20; p2_2b = ivideo->p2_2b; p2_42 = ivideo->p2_42; p2_43 = ivideo->p2_43; 
p2_1f = ivideo->p2_1f; p2_20 = ivideo->p2_20; p2_2b = ivideo->p2_2b; p2_42 = ivideo->p2_42; p2_43 = ivideo->p2_43; 
static void sisfb_set_TVxposoffset(struct sis_video_info *ivideo, int val){   if(val > 32) val = 32;   if(val < -32) val = -32;   ivideo->tvxpos = val;   if(ivideo->sisfblocked) return;   if(!ivideo->modechanged) return;   if(ivideo->currentvbflags & CRT2_TV) {      if(ivideo->vbflags & VB_CHRONTEL) {	 int x = ivideo->tvx;	 switch(ivideo->chronteltype) {	 case 1:	     x += val;	     if(x < 0) x = 0;	     outSISIDXREG(SISSR,0x05,0x86);	     SiS_SetCH700x(&ivideo->SiS_Pr, (((x & 0xff) << 8) | 0x0a));	     SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, (((x & 0x0100) << 1) | 0x08),0xFD);	     break;	 case 2:	     /* Not supported by hardware */	     break;	 }      } else if(ivideo->vbflags & VB_SISBRIDGE) {	 u8 p2_1f,p2_20,p2_2b,p2_42,p2_43;	 unsigned short temp;	 p2_1f = ivideo->p2_1f;	 p2_20 = ivideo->p2_20;	 p2_2b = ivideo->p2_2b;	 p2_42 = ivideo->p2_42;	 p2_43 = ivideo->p2_43;	 temp = p2_1f | ((p2_20 & 0xf0) << 4);	 temp += (val * 2);	 p2_1f = temp & 0xff;	 p2_20 = (temp & 0xf00) >> 4;	 p2_2b = ((p2_2b & 0x0f) + (val * 2)) & 0x0f;	 temp = p2_43 | ((p2_42 & 0xf0) << 4);	 temp += (val * 2);	 p2_43 = temp & 0xff;	 p2_42 = (temp & 0xf00) >> 4;	 outSISIDXREG(SISPART2,0x1f,p2_1f);	 setSISIDXREG(SISPART2,0x20,0x0F,p2_20);	 setSISIDXREG(SISPART2,0x2b,0xF0,p2_2b);	 setSISIDXREG(SISPART2,0x42,0x0F,p2_42);	 outSISIDXREG(SISPART2,0x43,p2_43);      }   }}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/sis_main.c/clean/drivers/video/sis/sis_main.c