tempah           2688 drivers/video/fbdev/sis/init301.c   unsigned short i, j, modeflag, tempah=0;
tempah           2733 drivers/video/fbdev/sis/init301.c 	      tempah = ((0x10 >> tempcl) | 0x80);
tempah           2735 drivers/video/fbdev/sis/init301.c 	} else tempah = 0x80;
tempah           2737 drivers/video/fbdev/sis/init301.c 	if(SiS_Pr->SiS_VBInfo & SetInSlaveMode)  tempah ^= 0xA0;
tempah           2748 drivers/video/fbdev/sis/init301.c 	      tempah = (0x08 >> tempcl);
tempah           2749 drivers/video/fbdev/sis/init301.c 	      if (tempah == 0) tempah = 1;
tempah           2750 drivers/video/fbdev/sis/init301.c 	      tempah |= 0x40;
tempah           2752 drivers/video/fbdev/sis/init301.c 	} else tempah = 0x40;
tempah           2754 drivers/video/fbdev/sis/init301.c 	if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempah ^= 0x50;
tempah           2760 drivers/video/fbdev/sis/init301.c      if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0;
tempah           2763 drivers/video/fbdev/sis/init301.c 	SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,tempah);
tempah           2767 drivers/video/fbdev/sis/init301.c 	   SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xa0,tempah);
tempah           2770 drivers/video/fbdev/sis/init301.c 	      SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,tempah);
tempah           2772 drivers/video/fbdev/sis/init301.c 	      SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xa0,tempah);
tempah           2780 drivers/video/fbdev/sis/init301.c 	tempah = 0x01;
tempah           2782 drivers/video/fbdev/sis/init301.c 	   tempah |= 0x02;
tempah           2785 drivers/video/fbdev/sis/init301.c 	   tempah ^= 0x05;
tempah           2787 drivers/video/fbdev/sis/init301.c 	      tempah ^= 0x01;
tempah           2793 drivers/video/fbdev/sis/init301.c 	   if(SiS_Pr->SiS_VBInfo & DisableCRT2Display)  tempah = 0;
tempah           2795 drivers/video/fbdev/sis/init301.c 	   tempah = (tempah << 5) & 0xFF;
tempah           2796 drivers/video/fbdev/sis/init301.c 	   SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,tempah);
tempah           2797 drivers/video/fbdev/sis/init301.c 	   tempah = (tempah >> 5) & 0xFF;
tempah           2801 drivers/video/fbdev/sis/init301.c 	   if(SiS_Pr->SiS_VBInfo & DisableCRT2Display)  tempah = 0x08;
tempah           2802 drivers/video/fbdev/sis/init301.c 	   else if(!(SiS_IsDualEdge(SiS_Pr)))           tempah |= 0x08;
tempah           2803 drivers/video/fbdev/sis/init301.c 	   SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2E,0xF0,tempah);
tempah           2804 drivers/video/fbdev/sis/init301.c 	   tempah &= ~0x08;
tempah           2809 drivers/video/fbdev/sis/init301.c 	   tempah |= 0x10;
tempah           2812 drivers/video/fbdev/sis/init301.c 	tempah |= 0x80;
tempah           2814 drivers/video/fbdev/sis/init301.c 	   if(SiS_Pr->PanelXRes < 1280 && SiS_Pr->PanelYRes < 960) tempah &= ~0x80;
tempah           2820 drivers/video/fbdev/sis/init301.c 		 tempah |= 0x20;
tempah           2825 drivers/video/fbdev/sis/init301.c 	SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x0D,0x40,tempah);
tempah           2827 drivers/video/fbdev/sis/init301.c 	tempah = 0x80;
tempah           2829 drivers/video/fbdev/sis/init301.c 	   if(SiS_Pr->PanelXRes < 1280 && SiS_Pr->PanelYRes < 960) tempah = 0;
tempah           2832 drivers/video/fbdev/sis/init301.c 	if(SiS_IsDualLink(SiS_Pr)) tempah |= 0x40;
tempah           2836 drivers/video/fbdev/sis/init301.c 	      tempah |= 0x40;
tempah           2840 drivers/video/fbdev/sis/init301.c 	SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0C,tempah);
tempah           2848 drivers/video/fbdev/sis/init301.c 	   tempah = 0x80;
tempah           2851 drivers/video/fbdev/sis/init301.c 	         tempah |= 0x02;
tempah           2855 drivers/video/fbdev/sis/init301.c 	   if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode))  tempah |= 0x02;
tempah           2857 drivers/video/fbdev/sis/init301.c 	   if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)        tempah ^= 0x01;
tempah           2859 drivers/video/fbdev/sis/init301.c 	   if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 1;
tempah           2861 drivers/video/fbdev/sis/init301.c 	   SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2e,0xF0,tempah);
tempah           2867 drivers/video/fbdev/sis/init301.c 	   tempah = 0;
tempah           2869 drivers/video/fbdev/sis/init301.c 	      tempah |= 0x02;
tempah           2871 drivers/video/fbdev/sis/init301.c 	   tempah <<= 5;
tempah           2873 drivers/video/fbdev/sis/init301.c 	   if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0;
tempah           2875 drivers/video/fbdev/sis/init301.c 	   SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,tempah);
tempah           2903 drivers/video/fbdev/sis/init301.c 	   tempah = 0x04;						   /* For all bridges */
tempah           2906 drivers/video/fbdev/sis/init301.c 	      tempah = 0x00;
tempah           2911 drivers/video/fbdev/sis/init301.c 	   SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,tempbl,tempah);
tempah           2924 drivers/video/fbdev/sis/init301.c 	   tempah = 0x30;
tempah           2928 drivers/video/fbdev/sis/init301.c 	      tempah = 0x00;
tempah           2931 drivers/video/fbdev/sis/init301.c 	   SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,0xcf,tempah);
tempah           2941 drivers/video/fbdev/sis/init301.c 	   tempah = 0x30; tempah2 = 0xc0;
tempah           2944 drivers/video/fbdev/sis/init301.c 	         tempah = tempah2 = 0x00;
tempah           2948 drivers/video/fbdev/sis/init301.c 	         tempah = tempah2 = 0x00;
tempah           2951 drivers/video/fbdev/sis/init301.c 	   SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,tempbl,tempah);
tempah           2954 drivers/video/fbdev/sis/init301.c 	   tempah = 0x30; tempah2 = 0xc0;		       /* For 30xB, 301C */
tempah           2957 drivers/video/fbdev/sis/init301.c 	      tempah = tempah2 = 0x00;
tempah           2962 drivers/video/fbdev/sis/init301.c 	   SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,tempbl,tempah);
tempah           2967 drivers/video/fbdev/sis/init301.c 	   tempah = 0x80;
tempah           2968 drivers/video/fbdev/sis/init301.c 	   if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0x00;
tempah           2969 drivers/video/fbdev/sis/init301.c 	   SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x23,0x7f,tempah);
tempah           2971 drivers/video/fbdev/sis/init301.c 	   tempah = 0x00;
tempah           2975 drivers/video/fbdev/sis/init301.c 	      if(!(SiS_IsDualEdge(SiS_Pr))) tempah = 0x80;
tempah           2977 drivers/video/fbdev/sis/init301.c 	   SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x23,tempbl,tempah);
tempah           3012 drivers/video/fbdev/sis/init301.c 	   tempah = 0x04;
tempah           3015 drivers/video/fbdev/sis/init301.c 	      tempah = 0x00;
tempah           3018 drivers/video/fbdev/sis/init301.c 	   SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,tempbl,tempah);
tempah           4161 drivers/video/fbdev/sis/init301.c   unsigned short tempah, pushax=0, modenum;
tempah           4254 drivers/video/fbdev/sis/init301.c 		 tempah = 0xef;
tempah           4255 drivers/video/fbdev/sis/init301.c 		 if(SiS_IsVAMode(SiS_Pr)) tempah = 0xf7;
tempah           4256 drivers/video/fbdev/sis/init301.c 		 SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x4c,tempah);
tempah           4264 drivers/video/fbdev/sis/init301.c 	   tempah = 0x3f;
tempah           4266 drivers/video/fbdev/sis/init301.c 	      tempah = 0x7f;
tempah           4267 drivers/video/fbdev/sis/init301.c 	      if(!(SiS_IsVAMode(SiS_Pr))) tempah = 0xbf;
tempah           4269 drivers/video/fbdev/sis/init301.c 	   SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x1F,tempah);
tempah           4559 drivers/video/fbdev/sis/init301.c   unsigned short temp=0, tempah;
tempah           4612 drivers/video/fbdev/sis/init301.c 	       tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30);
tempah           4613 drivers/video/fbdev/sis/init301.c 	       if(!(tempah & SetCRT2ToRAMDAC)) temp |= 0x20;
tempah           4657 drivers/video/fbdev/sis/init301.c 	       tempah = 0x10;
tempah           4659 drivers/video/fbdev/sis/init301.c 		  if(SiS_TVEnabled(SiS_Pr)) tempah = 0x18;
tempah           4660 drivers/video/fbdev/sis/init301.c 		  else			    tempah = 0x08;
tempah           4662 drivers/video/fbdev/sis/init301.c 	       SiS_SetReg(SiS_Pr->SiS_Part1Port,0x4c,tempah);
tempah           4706 drivers/video/fbdev/sis/init301.c 	       tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30);
tempah           4707 drivers/video/fbdev/sis/init301.c 	       if(!(tempah & SetCRT2ToRAMDAC)) {
tempah           4741 drivers/video/fbdev/sis/init301.c 	 tempah = 0xc0;
tempah           4743 drivers/video/fbdev/sis/init301.c 	    tempah = 0x80;
tempah           4744 drivers/video/fbdev/sis/init301.c 	    if(!(SiS_IsVAMode(SiS_Pr))) tempah = 0x40;
tempah           4746 drivers/video/fbdev/sis/init301.c 	 SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x1F,tempah);
tempah           4952 drivers/video/fbdev/sis/init301.c 	  tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30);
tempah           4953 drivers/video/fbdev/sis/init301.c 	  if(!(tempah & SetCRT2ToRAMDAC)) temp |= 0x20;
tempah           5166 drivers/video/fbdev/sis/init301.c    unsigned short tempah=0, tempbl, infoflag;
tempah           5179 drivers/video/fbdev/sis/init301.c 	 tempah = 0;
tempah           5181 drivers/video/fbdev/sis/init301.c 	 tempah = SiS_Pr->SiS_LCDInfo;
tempah           5182 drivers/video/fbdev/sis/init301.c       } else tempah = infoflag >> 8;
tempah           5183 drivers/video/fbdev/sis/init301.c       tempah &= 0xC0;
tempah           5184 drivers/video/fbdev/sis/init301.c       tempah |= 0x20;
tempah           5185 drivers/video/fbdev/sis/init301.c       if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10;
tempah           5189 drivers/video/fbdev/sis/init301.c 	    tempah |= 0xf0;
tempah           5196 drivers/video/fbdev/sis/init301.c 	    tempah |= 0x30;
tempah           5200 drivers/video/fbdev/sis/init301.c 	    tempah &= ~0xc0;
tempah           5205 drivers/video/fbdev/sis/init301.c 	    tempah >>= 3;
tempah           5206 drivers/video/fbdev/sis/init301.c 	    tempah &= 0x18;
tempah           5207 drivers/video/fbdev/sis/init301.c 	    SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xE7,tempah);
tempah           5213 drivers/video/fbdev/sis/init301.c 	 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah);
tempah           5224 drivers/video/fbdev/sis/init301.c 	    tempah = infoflag >> 8;
tempah           5228 drivers/video/fbdev/sis/init301.c 		  tempah = SiS_Pr->SiS_LCDInfo;
tempah           5229 drivers/video/fbdev/sis/init301.c 		  tempbl = (tempah >> 6) & 0x03;
tempah           5232 drivers/video/fbdev/sis/init301.c 	    tempah &= 0xC0;
tempah           5233 drivers/video/fbdev/sis/init301.c 	    tempah |= 0x20;
tempah           5234 drivers/video/fbdev/sis/init301.c 	    if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10;
tempah           5235 drivers/video/fbdev/sis/init301.c 	    tempah |= 0xc0;
tempah           5236 drivers/video/fbdev/sis/init301.c 	    SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah);
tempah           5243 drivers/video/fbdev/sis/init301.c 	    tempah = ((infoflag >> 8) & 0xc0) | 0x20;
tempah           5244 drivers/video/fbdev/sis/init301.c 	    if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10;
tempah           5245 drivers/video/fbdev/sis/init301.c 	    SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah);
tempah           5260 drivers/video/fbdev/sis/init301.c 	       tempah = infoflag >> 8;
tempah           5266 drivers/video/fbdev/sis/init301.c 	       tempah = infoflag >> 8;
tempah           5269 drivers/video/fbdev/sis/init301.c 	       tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x37);
tempah           5270 drivers/video/fbdev/sis/init301.c 	       tempbl = (tempah >> 6) & 0x03;
tempah           5274 drivers/video/fbdev/sis/init301.c 	    tempah &= 0xC0;
tempah           5275 drivers/video/fbdev/sis/init301.c 	    tempah |= 0x20;
tempah           5276 drivers/video/fbdev/sis/init301.c 	    if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10;
tempah           5277 drivers/video/fbdev/sis/init301.c 	    if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)   tempah |= 0xc0;
tempah           5278 drivers/video/fbdev/sis/init301.c 	    SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah);
tempah           5287 drivers/video/fbdev/sis/init301.c 	    tempah = tempbl = infoflag >> 8;
tempah           5292 drivers/video/fbdev/sis/init301.c 		     tempah = SiS_GetRegByte((SiS_Pr->SiS_P3ca+0x02));
tempah           5298 drivers/video/fbdev/sis/init301.c 		       tempah = SiS_Pr->SiS_LCDInfo;
tempah           5299 drivers/video/fbdev/sis/init301.c 		       tempbl = (tempah >> 6) & 0x03;
tempah           5304 drivers/video/fbdev/sis/init301.c 	    tempah &= 0xC0;
tempah           5305 drivers/video/fbdev/sis/init301.c 	    tempah |= 0x20;
tempah           5306 drivers/video/fbdev/sis/init301.c 	    if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10;
tempah           5309 drivers/video/fbdev/sis/init301.c 	       if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)  tempah |= 0xc0;
tempah           5312 drivers/video/fbdev/sis/init301.c 	       tempah >>= 3;
tempah           5313 drivers/video/fbdev/sis/init301.c 	       tempah &= 0x18;
tempah           5314 drivers/video/fbdev/sis/init301.c 	       SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xe7,tempah);
tempah           5316 drivers/video/fbdev/sis/init301.c 	       SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah);
tempah           8003 drivers/video/fbdev/sis/init301.c   unsigned short tempah, i, modeflag, j, ResIndex, DisplayType;
tempah           8061 drivers/video/fbdev/sis/init301.c         tempah = (LVDSCRT1Ptr + ResIndex)->CR[i];
tempah           8062 drivers/video/fbdev/sis/init301.c         SiS_SetReg(SiS_Pr->SiS_P3d4,CRIdx[i],tempah);
tempah           8066 drivers/video/fbdev/sis/init301.c         tempah = (LVDSCRT1Ptr + ResIndex)->CR[j];
tempah           8067 drivers/video/fbdev/sis/init301.c         SiS_SetReg(SiS_Pr->SiS_P3c4,i,tempah);
tempah           8070 drivers/video/fbdev/sis/init301.c      tempah = (LVDSCRT1Ptr + ResIndex)->CR[14] & 0xE0;
tempah           8071 drivers/video/fbdev/sis/init301.c      SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0E,0x1f,tempah);
tempah           8076 drivers/video/fbdev/sis/init301.c      tempah = ((LVDSCRT1Ptr + ResIndex)->CR[14] & 0x01) << 5;
tempah           8077 drivers/video/fbdev/sis/init301.c      if(modeflag & DoubleScanMode) tempah |= 0x80;
tempah           8078 drivers/video/fbdev/sis/init301.c      SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x09,~0x020,tempah);
tempah           9044 drivers/video/fbdev/sis/init301.c   unsigned short tempah,temp;
tempah           9056 drivers/video/fbdev/sis/init301.c      tempah = SiS_Pr->SiS_DDC_DeviceAddr;
tempah           9057 drivers/video/fbdev/sis/init301.c      temp = SiS_WriteDDC2Data(SiS_Pr,tempah);	/* Write DAB (S0=0=write) */
tempah           9059 drivers/video/fbdev/sis/init301.c      tempah = *mydataptr++;
tempah           9060 drivers/video/fbdev/sis/init301.c      temp = SiS_WriteDDC2Data(SiS_Pr,tempah);	/* Write register number */
tempah           9063 drivers/video/fbdev/sis/init301.c         tempah = *mydataptr++;
tempah           9064 drivers/video/fbdev/sis/init301.c         temp = SiS_WriteDDC2Data(SiS_Pr,tempah);/* Write DAB (S0=0=write) */
tempah           9176 drivers/video/fbdev/sis/init301.c   unsigned short tempah, temp, i;
tempah           9191 drivers/video/fbdev/sis/init301.c      tempah = SiS_ReadDDC2Data(SiS_Pr);					/* Read byte */
tempah           9194 drivers/video/fbdev/sis/init301.c      return tempah;
tempah           9747 drivers/video/fbdev/sis/init301.c   unsigned short tempah;
tempah           9755 drivers/video/fbdev/sis/init301.c   tempah = SiS_GetReg(SiS_Pr->SiS_DDC_Port,SiS_Pr->SiS_DDC_Index); /* Read SD */
tempah           9757 drivers/video/fbdev/sis/init301.c   if(tempah & SiS_Pr->SiS_DDC_Data) return 1;			   /* Ack OK if bit = 0 */