Lines Matching refs:temp
613 unsigned short modeflag,index,temp,backupindex; in SiS_GetRatePtr() local
652 temp = LCDRefreshIndex[SiS_GetBIOSLCDResInfo(SiS_Pr)]; in SiS_GetRatePtr()
653 if(index > temp) index = temp; in SiS_GetRatePtr()
679 temp = SiS_Pr->SiS_RefIndex[RRTI + i].Ext_InfoFlag; in SiS_GetRatePtr()
680 temp &= ModeTypeMask; in SiS_GetRatePtr()
681 if(temp < SiS_Pr->SiS_ModeType) break; in SiS_GetRatePtr()
688 temp = SiS_Pr->SiS_RefIndex[RRTI + i - 1].Ext_InfoFlag; in SiS_GetRatePtr()
689 if(temp & InterlaceMode) i++; in SiS_GetRatePtr()
730 unsigned short temp,temp1; in SiS_CR36BIOSWord23b() local
734 temp = 1 << ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) & 0x0f); in SiS_CR36BIOSWord23b()
736 if(temp1 & temp) return true; in SiS_CR36BIOSWord23b()
746 unsigned short temp,temp1; in SiS_CR36BIOSWord23d() local
750 temp = 1 << ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) & 0x0f); in SiS_CR36BIOSWord23d()
752 if(temp1 & temp) return true; in SiS_CR36BIOSWord23d()
973 unsigned short tempal,temp,i,j; in SiS_VBWait() local
975 temp = 0; in SiS_VBWait()
979 if(temp & 0x01) { in SiS_VBWait()
987 temp ^= 0x01; in SiS_VBWait()
1238 unsigned short temp; in SiS_SetChrontelGPIO() local
1245 temp = SiS_GetRegShort((acpibase + 0x3c)); /* ACPI register 0x3c: GP Event 1 I/O mode select */ in SiS_SetChrontelGPIO()
1246 temp &= 0xFEFF; in SiS_SetChrontelGPIO()
1247 SiS_SetRegShort((acpibase + 0x3c), temp); in SiS_SetChrontelGPIO()
1248 temp = SiS_GetRegShort((acpibase + 0x3c)); in SiS_SetChrontelGPIO()
1249 temp = SiS_GetRegShort((acpibase + 0x3a)); /* ACPI register 0x3a: GP Pin Level (low/high) */ in SiS_SetChrontelGPIO()
1250 temp &= 0xFEFF; in SiS_SetChrontelGPIO()
1251 if(!(myvbinfo & SetCRT2ToTV)) temp |= 0x0100; in SiS_SetChrontelGPIO()
1252 SiS_SetRegShort((acpibase + 0x3a), temp); in SiS_SetChrontelGPIO()
1253 temp = SiS_GetRegShort((acpibase + 0x3a)); in SiS_SetChrontelGPIO()
1261 unsigned short tempax, tempbx, temp; in SiS_GetVBInfo() local
1278 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); in SiS_GetVBInfo()
1279 tempbx |= temp; in SiS_GetVBInfo()
1304 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); in SiS_GetVBInfo()
1305 if((temp & (EnableDualEdge | SetToLCDA)) == (EnableDualEdge | SetToLCDA)) { in SiS_GetVBInfo()
1313 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x35) & 0xe0; in SiS_GetVBInfo()
1314 if(temp == 0x60) tempbx |= SetCRT2ToHiVision; in SiS_GetVBInfo()
1322 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); in SiS_GetVBInfo()
1323 if(temp & SetToLCDA) { in SiS_GetVBInfo()
1327 if(temp & EnableCHYPbPr) { in SiS_GetVBInfo()
1341 temp = SetCRT2ToSVIDEO | in SiS_GetVBInfo()
1352 temp = SetCRT2ToAVIDEO | in SiS_GetVBInfo()
1359 temp = SetCRT2ToLCDA | in SiS_GetVBInfo()
1364 temp = SetCRT2ToTV | SetCRT2ToLCD; in SiS_GetVBInfo()
1366 temp = SetCRT2ToLCD; in SiS_GetVBInfo()
1371 if(!(tempbx & temp)) { in SiS_GetVBInfo()
1489 unsigned char temp; in SiS_SetYPbPr() local
1510 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); in SiS_SetYPbPr()
1511 if(temp & 0x08) { in SiS_SetYPbPr()
1512 switch((temp >> 4)) { in SiS_SetYPbPr()
1532 unsigned short temp, temp1, resinfo = 0, romindex = 0; in SiS_SetTVMode() local
1549 temp = 0; in SiS_SetTVMode()
1552 temp = 0x35; in SiS_SetTVMode()
1555 temp = 0x38; in SiS_SetTVMode()
1561 if(temp) { in SiS_SetTVMode()
1565 SiS_SetRegAND(SiS_Pr->SiS_P3d4,temp,0x3F); in SiS_SetTVMode()
1568 temp1 = SiS_GetReg(SiS_Pr->SiS_P3d4,temp); in SiS_SetTVMode()
1598 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x35); in SiS_SetTVMode()
1599 if((temp & TVOverScan) || (SiS_Pr->SiS_CHOverScan == 1)) { in SiS_SetTVMode()
1603 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x79); in SiS_SetTVMode()
1604 if((temp & 0x80) || (SiS_Pr->SiS_CHOverScan == 1)) { in SiS_SetTVMode()
1613 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); in SiS_SetTVMode()
1615 if(temp & EnablePALM) SiS_Pr->SiS_TVMode |= TVSetPALM; in SiS_SetTVMode()
1616 else if(temp & EnablePALN) SiS_Pr->SiS_TVMode |= TVSetPALN; in SiS_SetTVMode()
1618 if(temp & EnableNTSCJ) { in SiS_SetTVMode()
1731 unsigned short temp = SiS_Pr->SiS_LCDResInfo; in SiS_GetBIOSLCDResInfo() local
1733 switch(temp) { in SiS_GetBIOSLCDResInfo()
1734 case Panel_1280x768_2: temp = Panel_1280x768; break; in SiS_GetBIOSLCDResInfo()
1735 case Panel_1280x800_2: temp = Panel_1280x800; break; in SiS_GetBIOSLCDResInfo()
1736 case Panel_1280x854: temp = Panel661_1280x854; break; in SiS_GetBIOSLCDResInfo()
1738 return temp; in SiS_GetBIOSLCDResInfo()
1746 unsigned short temp; in SiS_GetLCDInfoBIOS() local
1749 if((temp = SISGETROMW(6)) != SiS_Pr->PanelHT) { in SiS_GetLCDInfoBIOS()
1751 SiS_Pr->PanelHT = temp; in SiS_GetLCDInfoBIOS()
1753 if((temp = SISGETROMW(8)) != SiS_Pr->PanelVT) { in SiS_GetLCDInfoBIOS()
1755 SiS_Pr->PanelVT = temp; in SiS_GetLCDInfoBIOS()
1792 unsigned short temp,modeflag,resinfo=0,modexres=0,modeyres=0; in SiS_GetLCDResInfo() local
1826 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36); in SiS_GetLCDResInfo()
1829 if(temp == 0) temp = 0x02; in SiS_GetLCDResInfo()
1834 SiS_Pr->SiS_LCDTypeInfo = temp >> 4; in SiS_GetLCDResInfo()
1836 SiS_Pr->SiS_LCDTypeInfo = (temp & 0x0F) - 1; in SiS_GetLCDResInfo()
1838 temp &= 0x0f; in SiS_GetLCDResInfo()
1843 if(temp < 0x0f) temp &= 0x07; in SiS_GetLCDResInfo()
1846 temp = SiS300SeriesLCDRes[temp]; in SiS_GetLCDResInfo()
1853 if (temp == Panel310_1152x768) temp = Panel_320x240_2; /* Verified working */ in SiS_GetLCDResInfo()
1854 else if(temp == Panel310_320x240_2) temp = Panel_320x240_2; in SiS_GetLCDResInfo()
1855 else if(temp == Panel310_320x240_3) temp = Panel_320x240_3; in SiS_GetLCDResInfo()
1857 if(temp == Panel661_1280x854) temp = Panel_1280x854; in SiS_GetLCDResInfo()
1862 if(temp == Panel310_1280x768) { in SiS_GetLCDResInfo()
1863 temp = Panel_1280x768_2; in SiS_GetLCDResInfo()
1866 if(temp == Panel661_1280x800) { in SiS_GetLCDResInfo()
1867 temp = Panel_1280x800_2; in SiS_GetLCDResInfo()
1872 SiS_Pr->SiS_LCDResInfo = temp; in SiS_GetLCDResInfo()
1894 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x37); in SiS_GetLCDResInfo()
1895 SiS_Pr->SiS_LCDInfo = temp & ~0x000e; in SiS_GetLCDResInfo()
1919 if(temp & 0x08) SiS_Pr->SiS_LCDInfo |= LCDPass11; in SiS_GetLCDResInfo()
1923 if(temp & 0x02) SiS_Pr->SiS_LCDInfo |= LCDDualLink; in SiS_GetLCDResInfo()
1934 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x35); in SiS_GetLCDResInfo()
1935 if(temp & 0x01) SiS_Pr->SiS_LCDInfo |= LCDRGB18Bit; in SiS_GetLCDResInfo()
1937 if(temp & 0x02) SiS_Pr->SiS_LCDInfo |= LCDDualLink; in SiS_GetLCDResInfo()
4131 unsigned short temp; in SiS_HandlePWD() local
4141 temp = 0x00; in SiS_HandlePWD()
4143 temp = 0x80; in SiS_HandlePWD()
4146 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x27,0x7f,temp); in SiS_HandlePWD()
4163 unsigned short temp=0; in SiS_DisableBridge() local
4297 temp = SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00); in SiS_DisableBridge()
4300 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,temp); in SiS_DisableBridge()
4357 temp = SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00); in SiS_DisableBridge()
4360 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,temp); in SiS_DisableBridge()
4437 temp = SiS_GetCH701x(SiS_Pr,0x61); in SiS_DisableBridge()
4438 if(temp < 1) { in SiS_DisableBridge()
4559 unsigned short temp=0, tempah; in SiS_EnableBridge() local
4610 temp = SiS_GetReg(SiS_Pr->SiS_P3c4,0x32) & 0xDF; /* lock mode */ in SiS_EnableBridge()
4613 if(!(tempah & SetCRT2ToRAMDAC)) temp |= 0x20; in SiS_EnableBridge()
4615 SiS_SetReg(SiS_Pr->SiS_P3c4,0x32,temp); in SiS_EnableBridge()
4704 temp = SiS_GetReg(SiS_Pr->SiS_P3c4,0x32) & 0xDF; in SiS_EnableBridge()
4708 if(!(SiS_LCDAEnabled(SiS_Pr))) temp |= 0x20; in SiS_EnableBridge()
4711 SiS_SetReg(SiS_Pr->SiS_P3c4,0x32,temp); in SiS_EnableBridge()
4950 temp = SiS_GetReg(SiS_Pr->SiS_P3c4,0x32) & 0xDF; /* lock mode */ in SiS_EnableBridge()
4953 if(!(tempah & SetCRT2ToRAMDAC)) temp |= 0x20; in SiS_EnableBridge()
4955 SiS_SetReg(SiS_Pr->SiS_P3c4,0x32,temp); in SiS_EnableBridge()
4960 temp = SiS_GetReg(SiS_Pr->SiS_Part1Port,0x2E); in SiS_EnableBridge()
4961 if(!(temp & 0x80)) { in SiS_EnableBridge()
5057 temp = SiS_GetCH701x(SiS_Pr,0x66); in SiS_EnableBridge()
5058 temp &= 0x20; in SiS_EnableBridge()
5080 if(temp) { in SiS_EnableBridge()
5148 unsigned char temp; in SiS_SetCRT2Offset() local
5157 temp = (unsigned char)(((offset >> 3) & 0xFF) + 1); in SiS_SetCRT2Offset()
5158 if(offset & 0x07) temp++; in SiS_SetCRT2Offset()
5159 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x03,temp); in SiS_SetCRT2Offset()
5336 unsigned short temp, index, modeidindex, refreshratetableindex; in SiS_SetCRT2FIFO_300() local
5386 temp = ((SiS_GetReg(SiS_Pr->SiS_P3c4,0x14) >> 6) & 0x03) << 1; in SiS_SetCRT2FIFO_300()
5387 if(!temp) temp++; in SiS_SetCRT2FIFO_300()
5388 temp <<= 2; in SiS_SetCRT2FIFO_300()
5390 data2 = temp - ((colorth * VCLK) / MCLK); in SiS_SetCRT2FIFO_300()
5392 temp = (28 * 16) % data2; in SiS_SetCRT2FIFO_300()
5394 if(temp) data2++; in SiS_SetCRT2FIFO_300()
5470 temp = data % (MCLK << 4); in SiS_SetCRT2FIFO_300()
5472 if(temp) data++; in SiS_SetCRT2FIFO_300()
5478 temp = 0x16; in SiS_SetCRT2FIFO_300()
5480 temp = 0x13; in SiS_SetCRT2FIFO_300()
5482 temp = 0x16; in SiS_SetCRT2FIFO_300()
5486 temp = 0x1b; in SiS_SetCRT2FIFO_300()
5488 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x01,0xe0,temp); in SiS_SetCRT2FIFO_300()
5545 unsigned short temp, modeflag, i, j, xres=0, VGAVDE; in SiS_SetGroup1_301() local
5588 temp = SiS_Pr->SiS_VGAHT - 96; in SiS_SetGroup1_301()
5589 if(!(modeflag & HalfDCLK)) temp -= 32; in SiS_SetGroup1_301()
5591 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x04); in SiS_SetGroup1_301()
5592 temp |= ((SiS_GetReg(SiS_Pr->SiS_P3c4,0x0b) & 0xc0) << 2); in SiS_SetGroup1_301()
5593 temp -= 3; in SiS_SetGroup1_301()
5594 temp <<= 3; in SiS_SetGroup1_301()
5596 if(SiS_Pr->SiS_RVBHRS2) temp = SiS_Pr->SiS_RVBHRS2; in SiS_SetGroup1_301()
5598 SiS_Pr->CHSyncStart = temp; in SiS_SetGroup1_301()
5619 temp = (SiS_Pr->SiS_VGAVT - VGAVDE) >> 1; in SiS_SetGroup1_301()
5620 SiS_Pr->CVSyncStart = VGAVDE + temp; in SiS_SetGroup1_301()
5622 temp >>= 3; in SiS_SetGroup1_301()
5623 SiS_Pr->CVSyncEnd = SiS_Pr->CVSyncStart + temp; in SiS_SetGroup1_301()
5641 temp = SiS_Pr->CCRT1CRTC[16] & 0xE0; in SiS_SetGroup1_301()
5642 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,CRTranslation[0x0E],0x1F,temp); in SiS_SetGroup1_301()
5644 temp = (SiS_Pr->CCRT1CRTC[16] & 0x01) << 5; in SiS_SetGroup1_301()
5645 if(modeflag & DoubleScanMode) temp |= 0x80; in SiS_SetGroup1_301()
5646 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,CRTranslation[0x09],0x5F,temp); in SiS_SetGroup1_301()
5648 temp = 0; in SiS_SetGroup1_301()
5649 temp |= (SiS_GetReg(SiS_Pr->SiS_P3c4,0x01) & 0x01); in SiS_SetGroup1_301()
5650 if(modeflag & HalfDCLK) temp |= 0x08; in SiS_SetGroup1_301()
5651 …SiS_SetReg(SiS_Pr->SiS_Part1Port,0x16,temp); /* SR01: HalfDCLK[3], 8/9 div dotclock[… in SiS_SetGroup1_301()
5656 temp = 0; in SiS_SetGroup1_301()
5658 temp = (SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00) & 0x01) << 7; in SiS_SetGroup1_301()
5660 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1A,temp); /* SR0E, dither[7] */ in SiS_SetGroup1_301()
5662 temp = SiS_GetRegByte((SiS_Pr->SiS_P3ca+0x02)); in SiS_SetGroup1_301()
5663 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1b,temp); /* ? */ in SiS_SetGroup1_301()
5675 unsigned short push2, tempax, tempbx, tempcx, temp; in SiS_SetGroup1_LVDS() local
5759 temp = (tempax & 0x0007); in SiS_SetGroup1_LVDS()
5760 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1A,temp); /* BPLHDESKEW[2:0] */ in SiS_SetGroup1_LVDS()
5761 temp = (tempax >> 3) & 0x00FF; in SiS_SetGroup1_LVDS()
5762 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x16,temp); /* BPLHDESKEW[10:3] */ in SiS_SetGroup1_LVDS()
5779 temp = tempax; in SiS_SetGroup1_LVDS()
5780 if(temp & 0x07) temp += 8; in SiS_SetGroup1_LVDS()
5781 temp >>= 3; in SiS_SetGroup1_LVDS()
5782 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x17,temp); /* BPLHDEE */ in SiS_SetGroup1_LVDS()
5795 temp = (tempcx >> 3) & 0x00FF; in SiS_SetGroup1_LVDS()
5802 case 0x0d: temp = 0x56; break; in SiS_SetGroup1_LVDS()
5803 case 0x10: temp = 0x60; break; in SiS_SetGroup1_LVDS()
5804 case 0x13: temp = 0x5f; break; in SiS_SetGroup1_LVDS()
5814 case 0x5e: temp = 0x54; break; in SiS_SetGroup1_LVDS()
5819 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x14,temp); /* BPLHRS */ in SiS_SetGroup1_LVDS()
5822 temp += 2; in SiS_SetGroup1_LVDS()
5824 temp += 8; in SiS_SetGroup1_LVDS()
5826 temp = tempcx + SiS_Pr->PanelHRE; in SiS_SetGroup1_LVDS()
5827 if(temp >= SiS_Pr->SiS_HT) temp -= SiS_Pr->SiS_HT; in SiS_SetGroup1_LVDS()
5828 temp >>= 3; in SiS_SetGroup1_LVDS()
5832 temp += 10; in SiS_SetGroup1_LVDS()
5835 temp &= 0x1F; in SiS_SetGroup1_LVDS()
5836 temp |= ((tempcx & 0x07) << 5); in SiS_SetGroup1_LVDS()
5837 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x15,temp); /* BPLHRE */ in SiS_SetGroup1_LVDS()
5878 temp = tempbx & 0x00FF; in SiS_SetGroup1_LVDS()
5881 if(ModeNo == 0x10) temp = 0xa9; in SiS_SetGroup1_LVDS()
5884 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,temp); /* BPLVRS */ in SiS_SetGroup1_LVDS()
5896 temp = tempcx & 0x000F; in SiS_SetGroup1_LVDS()
5897 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0xF0,temp); /* BPLVRE */ in SiS_SetGroup1_LVDS()
5899 temp = ((tempbx >> 8) & 0x07) << 3; in SiS_SetGroup1_LVDS()
5902 if(SiS_Pr->SiS_VGAVDE != SiS_Pr->SiS_VDE) temp |= 0x40; in SiS_SetGroup1_LVDS()
5904 } else if(SiS_Pr->SiS_VGAVDE != SiS_Pr->SiS_VDE) temp |= 0x40; in SiS_SetGroup1_LVDS()
5905 if(SiS_Pr->SiS_SetFlag & EnableLVDSDDA) temp |= 0x40; in SiS_SetGroup1_LVDS()
5911 if(SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00) & 0x03) temp |= 0x80; in SiS_SetGroup1_LVDS()
5916 if(SiS_GetReg(SiS_Pr->SiS_P3c4,0x06) & 0x10) temp |= 0x80; in SiS_SetGroup1_LVDS()
5918 if(SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00) & 0x01) temp |= 0x80; in SiS_SetGroup1_LVDS()
5922 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x1A,tempbx,temp); in SiS_SetGroup1_LVDS()
5957 temp = ((tempbx >> 8) & 0x07) << 3; in SiS_SetGroup1_LVDS()
5958 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup1_LVDS()
5959 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1D,temp); in SiS_SetGroup1_LVDS()
5969 temp = (tempeax % (unsigned int)SiS_Pr->SiS_VDE); in SiS_SetGroup1_LVDS()
5971 if(temp) tempeax++; in SiS_SetGroup1_LVDS()
5975 temp = (unsigned short)(tempeax & 0x00FF); in SiS_SetGroup1_LVDS()
5976 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1E,temp); /* BPLVCFACT */ in SiS_SetGroup1_LVDS()
5977 tempvcfact = temp; in SiS_SetGroup1_LVDS()
5985 temp = (tempeax % tempebx); in SiS_SetGroup1_LVDS()
5987 if(temp) tempeax++; in SiS_SetGroup1_LVDS()
5990 temp = (unsigned short)(tempeax & 0x00FF); in SiS_SetGroup1_LVDS()
5991 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x37,temp); in SiS_SetGroup1_LVDS()
5992 temp = (unsigned short)((tempeax & 0x00FF00) >> 8); in SiS_SetGroup1_LVDS()
5993 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x36,temp); in SiS_SetGroup1_LVDS()
5994 temp = (unsigned short)((tempeax & 0x00030000) >> 16); in SiS_SetGroup1_LVDS()
5995 if(SiS_Pr->SiS_VDE == SiS_Pr->SiS_VGAVDE) temp |= 0x04; in SiS_SetGroup1_LVDS()
5996 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x35,temp); in SiS_SetGroup1_LVDS()
5999 temp = (unsigned short)(tempeax & 0x00FF); in SiS_SetGroup1_LVDS()
6000 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x3c,temp); in SiS_SetGroup1_LVDS()
6001 temp = (unsigned short)((tempeax & 0x00FF00) >> 8); in SiS_SetGroup1_LVDS()
6002 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x3b,temp); in SiS_SetGroup1_LVDS()
6003 temp = (unsigned short)(((tempeax & 0x00030000) >> 16) << 6); in SiS_SetGroup1_LVDS()
6004 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x3a,0x3f,temp); in SiS_SetGroup1_LVDS()
6005 temp = 0; in SiS_SetGroup1_LVDS()
6006 if(SiS_Pr->SiS_VDE != SiS_Pr->SiS_VGAVDE) temp |= 0x08; in SiS_SetGroup1_LVDS()
6007 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x30,0xf3,temp); in SiS_SetGroup1_LVDS()
6035 temp = (unsigned short)(tempecx & 0x00FF); in SiS_SetGroup1_LVDS()
6036 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1F,temp); in SiS_SetGroup1_LVDS()
6054 temp = ((tempbx >> 8) & 0x07) << 3; in SiS_SetGroup1_LVDS()
6055 temp = temp | ((tempecx >> 8) & 0x07); in SiS_SetGroup1_LVDS()
6056 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x20,temp); in SiS_SetGroup1_LVDS()
6063 temp = (unsigned short)((tempecx & 0xFF00) >> 8); in SiS_SetGroup1_LVDS()
6064 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x22,temp); in SiS_SetGroup1_LVDS()
6065 temp = (unsigned short)(tempecx & 0x00FF); in SiS_SetGroup1_LVDS()
6066 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x23,temp); in SiS_SetGroup1_LVDS()
6137 temp = (tempax >> 8) << 3; in SiS_SetGroup1_LVDS()
6138 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x35,~0x078,temp); in SiS_SetGroup1_LVDS()
6150 temp = (tempax >> 8) << 3; in SiS_SetGroup1_LVDS()
6151 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x3C,~0x038,temp); in SiS_SetGroup1_LVDS()
6158 temp = tempeax & 0x7f; in SiS_SetGroup1_LVDS()
6160 if(temp) tempeax++; in SiS_SetGroup1_LVDS()
6161 temp = tempeax & 0x3f; in SiS_SetGroup1_LVDS()
6162 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x45,temp); in SiS_SetGroup1_LVDS()
6174 temp = tempax & 0x00FF; in SiS_SetGroup1_LVDS()
6175 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x43,temp); in SiS_SetGroup1_LVDS()
6176 temp = ((tempax & 0xFF00) >> 8) << 3; in SiS_SetGroup1_LVDS()
6177 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port, 0x44, 0x07, temp); in SiS_SetGroup1_LVDS()
6184 temp = tempeax & 0xFF; in SiS_SetGroup1_LVDS()
6185 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x42,temp); in SiS_SetGroup1_LVDS()
6186 temp = (tempeax & 0xFF00) >> 8; in SiS_SetGroup1_LVDS()
6187 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x41,temp); in SiS_SetGroup1_LVDS()
6188 temp = ((tempeax & 0xFF0000) >> 16) | 0x10; in SiS_SetGroup1_LVDS()
6189 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x40,temp); in SiS_SetGroup1_LVDS()
6190 temp = ((tempeax & 0x01000000) >> 24) << 7; in SiS_SetGroup1_LVDS()
6191 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port, 0x3C, 0x7F, temp); in SiS_SetGroup1_LVDS()
6233 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; in SiS_SetGroup1() local
6276 temp = (SiS_Pr->SiS_VGAHT - 1) & 0x0FF; /* BTVGA2HT 0x08,0x09 */ in SiS_SetGroup1()
6277 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x08,temp); /* CRT2 Horizontal Total */ in SiS_SetGroup1()
6279 temp = (((SiS_Pr->SiS_VGAHT - 1) & 0xFF00) >> 8) << 4; in SiS_SetGroup1()
6280 …SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x09,0x0f,temp); /* CRT2 Horizontal Total Overflow [7:4] … in SiS_SetGroup1()
6282 temp = (SiS_Pr->SiS_VGAHDE + 12) & 0x0FF; /* BTVGA2HDEE 0x0A,0x0C */ in SiS_SetGroup1()
6283 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0A,temp); /* CRT2 Horizontal Display Enable End */ in SiS_SetGroup1()
6313 temp = (tempcx >> 4) & 0xF0; in SiS_SetGroup1()
6314 …SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x09,0x0F,temp); /* CRT2 Horizontal Total Overflow [7:4] … in SiS_SetGroup1()
6399 temp = ((tempbx >> 8) & 0x0F) | ((pushbx >> 4) & 0xF0); in SiS_SetGroup1()
6400 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0C,temp); /* Overflow */ in SiS_SetGroup1()
6405 temp = tempcx & 0x00FF; in SiS_SetGroup1()
6412 temp--; in SiS_SetGroup1()
6416 temp--; in SiS_SetGroup1()
6419 temp--; in SiS_SetGroup1()
6422 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0E,temp); /* CRT2 Vertical Total */ in SiS_SetGroup1()
6427 temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07); in SiS_SetGroup1()
6428 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x12,temp); /* Overflow */ in SiS_SetGroup1()
6472 temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F); in SiS_SetGroup1()
6473 …SiS_SetReg(SiS_Pr->SiS_Part1Port,0x11,temp); /* CRT2 Vert. Retrace End; Overflow */ in SiS_SetGroup1()
6482 temp = 0x20; in SiS_SetGroup1()
6484 temp = 0x10; in SiS_SetGroup1()
6485 if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) temp = 0x2c; in SiS_SetGroup1()
6486 if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) temp = 0x20; in SiS_SetGroup1()
6489 if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) temp = 0x20; in SiS_SetGroup1()
6491 if(SiS_Pr->SiS_LCDResInfo == Panel_1280x960) temp = 0x24; in SiS_SetGroup1()
6492 if(SiS_Pr->SiS_LCDResInfo == Panel_Custom) temp = 0x2c; in SiS_SetGroup1()
6493 if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) temp = 0x08; in SiS_SetGroup1()
6495 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) temp = 0x2c; in SiS_SetGroup1()
6496 else temp = 0x20; in SiS_SetGroup1()
6501 temp = ROMAddr[0x221]; in SiS_SetGroup1()
6503 temp = ROMAddr[0x222]; in SiS_SetGroup1()
6505 temp = ROMAddr[0x223]; in SiS_SetGroup1()
6507 temp = ROMAddr[0x224]; in SiS_SetGroup1()
6511 if(SiS_Pr->PDC != -1) temp = SiS_Pr->PDC; in SiS_SetGroup1()
6515 temp = 0x20; in SiS_SetGroup1()
6517 if(SiS_Pr->SiS_LCDResInfo == Panel_640x480) temp = 0x04; in SiS_SetGroup1()
6521 temp = ROMAddr[0x220]; in SiS_SetGroup1()
6525 if(SiS_Pr->PDC != -1) temp = SiS_Pr->PDC; in SiS_SetGroup1()
6529 temp &= 0x3c; in SiS_SetGroup1()
6531 …SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,~0x3C,temp); /* Panel Link Delay Compensation; (Softw… in SiS_SetGroup1()
6543 if(SiS_Pr->ChipType == SIS_740) temp = 0x03; in SiS_SetGroup1()
6544 else temp = 0x00; in SiS_SetGroup1()
6546 if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) temp = 0x0a; in SiS_SetGroup1()
6555 temp = 0x08; in SiS_SetGroup1()
6562 … SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2D,tempbl,temp); /* Panel Link Delay Compensation */ in SiS_SetGroup1()
6650 unsigned char temp; in SiS_SetGroup2_C_ELV() local
6665 temp = 0x10; in SiS_SetGroup2_C_ELV()
6666 if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) temp |= 0x04; in SiS_SetGroup2_C_ELV()
6667 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x4e,0xeb,temp); in SiS_SetGroup2_C_ELV()
6848 unsigned short temp; in SiS_SetGroup2_Tail() local
6852 temp = 0xc3; in SiS_SetGroup2_Tail()
6854 temp++; in SiS_SetGroup2_Tail()
6855 if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) temp += 2; in SiS_SetGroup2_Tail()
6857 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2f,temp); in SiS_SetGroup2_Tail()
6860 temp = 0x4d; in SiS_SetGroup2_Tail()
6862 temp++; in SiS_SetGroup2_Tail()
6863 if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) temp++; in SiS_SetGroup2_Tail()
6865 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2f,temp); in SiS_SetGroup2_Tail()
6875 temp = 1; in SiS_SetGroup2_Tail()
6876 if(ModeNo <= 0x13) temp = 3; in SiS_SetGroup2_Tail()
6877 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x0b,temp); in SiS_SetGroup2_Tail()
6908 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; in SiS_SetGroup2() local
6931 temp = 0; in SiS_SetGroup2()
6932 if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToAVIDEO)) temp |= 0x08; in SiS_SetGroup2()
6933 if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToSVIDEO)) temp |= 0x04; in SiS_SetGroup2()
6934 if(SiS_Pr->SiS_VBInfo & SetCRT2ToSCART) temp |= 0x02; in SiS_SetGroup2()
6935 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) temp |= 0x01; in SiS_SetGroup2()
6937 if(!(SiS_Pr->SiS_TVMode & TVSetPAL)) temp |= 0x10; in SiS_SetGroup2()
6939 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x00,temp); in SiS_SetGroup2()
7038 temp = tempax + (unsigned short)TimingPoint[0]; in SiS_SetGroup2()
7039 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,temp); in SiS_SetGroup2()
7041 temp = tempax + (unsigned short)TimingPoint[1]; in SiS_SetGroup2()
7042 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x02,temp); in SiS_SetGroup2()
7131 temp = (tempcx >> 8) & 0x0F; in SiS_SetGroup2()
7132 temp |= ((tempbx >> 2) & 0xC0); in SiS_SetGroup2()
7134 temp |= 0x10; in SiS_SetGroup2()
7135 if(SiS_Pr->SiS_VBInfo & SetCRT2ToAVIDEO) temp |= 0x20; in SiS_SetGroup2()
7137 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x30,temp); in SiS_SetGroup2()
7150 temp = ((tempbx >> 3) & 0x60) | 0x18; in SiS_SetGroup2()
7151 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x46,temp); in SiS_SetGroup2()
7210 temp = (tempcx & 0x0300) >> 6; in SiS_SetGroup2()
7211 temp |= ((tempbx >> 8) & 0x03); in SiS_SetGroup2()
7213 temp |= 0x10; in SiS_SetGroup2()
7214 if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) temp |= 0x20; in SiS_SetGroup2()
7215 else if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) temp |= 0x40; in SiS_SetGroup2()
7217 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4D,temp); in SiS_SetGroup2()
7219 temp = SiS_GetReg(SiS_Pr->SiS_Part2Port,0x43); in SiS_SetGroup2()
7220 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x43,(temp - 3)); in SiS_SetGroup2()
7225 temp = 0; in SiS_SetGroup2()
7226 if(SiS_Pr->SiS_TVMode & TVSetPALM) temp = 8; in SiS_SetGroup2()
7227 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x4e,0xf7,temp); in SiS_SetGroup2()
7234 temp = SiS_GetReg(SiS_Pr->SiS_Part2Port,0x01); in SiS_SetGroup2()
7235 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,(temp - 1)); in SiS_SetGroup2()
7256 temp = 0x01; in SiS_SetGroup2()
7260 temp = 0x02; in SiS_SetGroup2()
7262 temp = 0x01; in SiS_SetGroup2()
7267 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x0B,temp); in SiS_SetGroup2()
7275 temp = (tempcx >> 3) & 0xE0; in SiS_SetGroup2()
7279 temp |= 0x10; in SiS_SetGroup2()
7282 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1A,0x0f,temp); in SiS_SetGroup2()
7354 temp = (tempbx >> 5) & 0x38; in SiS_SetGroup2()
7355 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup2()
7356 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x02,temp); in SiS_SetGroup2()
7401 temp = (tempbx >> 4) & 0xF0; in SiS_SetGroup2()
7403 temp |= (tempbx & 0x0F); in SiS_SetGroup2()
7406 temp &= 0xf0; in SiS_SetGroup2()
7407 temp |= (SiS_Pr->CVSyncEnd & 0x0f); in SiS_SetGroup2()
7410 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,temp); in SiS_SetGroup2()
7423 temp = 0; in SiS_SetGroup2()
7426 temp = SiS_Pr->SiS_HT - ((SiS_Pr->PanelXRes - SiS_Pr->SiS_HDE) / 2); in SiS_SetGroup2()
7427 if(SiS_IsDualLink(SiS_Pr)) temp >>= 1; in SiS_SetGroup2()
7430 temp += bridgeoffset; in SiS_SetGroup2()
7431 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1F,temp); /* lcdhdes */ in SiS_SetGroup2()
7432 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x20,0x0F,((temp >> 4) & 0xf0)); in SiS_SetGroup2()
7572 unsigned short temp, temp1, temp2;
7576 temp = (unsigned short)((int)((temp1 | ((temp2 & 0xf0) << 4))) + shift);
7577 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1f,temp);
7578 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x20,0x0f,((temp >> 4) & 0xf0));
7579 temp = SiS_GetReg(SiS_Pr->SiS_Part2Port,0x2b) & 0x0f;
7580 temp = (unsigned short)((int)(temp) + shift);
7581 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2b,0xf0,(temp & 0x0f));
7584 temp = (unsigned short)((int)((temp1 | ((temp2 & 0xf0) << 4))) + shift);
7585 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x43,temp);
7586 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x42,0x0f,((temp >> 4) & 0xf0));
7593 unsigned short temp, temp1; in SiS_SetGroup4_C_ELV() local
7606 temp = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x3a); in SiS_SetGroup4_C_ELV()
7607 if(!(temp & 0x01)) { in SiS_SetGroup4_C_ELV()
7614 if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) temp = 0x0000; in SiS_SetGroup4_C_ELV()
7615 else if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) temp = 0x0002; in SiS_SetGroup4_C_ELV()
7616 else if(SiS_Pr->SiS_TVMode & TVSetHiVision) temp = 0x0400; in SiS_SetGroup4_C_ELV()
7617 else temp = 0x0402; in SiS_SetGroup4_C_ELV()
7622 if(SiS_Pr->SiS_TVMode & TVAspect43LB) temp |= 0x01; in SiS_SetGroup4_C_ELV()
7623 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x26,0x7c,(temp & 0xff)); in SiS_SetGroup4_C_ELV()
7624 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x3a,0xfb,(temp >> 8)); in SiS_SetGroup4_C_ELV()
7630 if(temp1 == 0x01) temp |= 0x01; in SiS_SetGroup4_C_ELV()
7631 if(temp1 == 0x03) temp |= 0x04; /* ? why not 0x10? */ in SiS_SetGroup4_C_ELV()
7632 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x26,0xf8,(temp & 0xff)); in SiS_SetGroup4_C_ELV()
7633 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x3a,0xfb,(temp >> 8)); in SiS_SetGroup4_C_ELV()
7664 unsigned short vclkindex, temp, reg1, reg2; in SiS_SetCRT2VCLK() local
7690 temp = 0x08; in SiS_SetCRT2VCLK()
7691 if(SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC) temp |= 0x20; in SiS_SetCRT2VCLK()
7692 SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x12,temp); in SiS_SetCRT2VCLK()
7723 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; in SiS_SetGroup4() local
7763 temp = (tempbx >> 1) & 0x80; in SiS_SetGroup4()
7768 temp |= ((tempcx >> 5) & 0x78); in SiS_SetGroup4()
7774 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup4()
7775 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x15,temp); in SiS_SetGroup4()
7782 temp = 0; in SiS_SetGroup4()
7783 if(tempbx > 800) temp = 0x60; in SiS_SetGroup4()
7785 temp = 0; in SiS_SetGroup4()
7786 if(tempbx > 1024) temp = 0xC0; in SiS_SetGroup4()
7787 else if(tempbx >= 960) temp = 0xA0; in SiS_SetGroup4()
7789 temp = 0; in SiS_SetGroup4()
7790 if(tempbx >= 1280) temp = 0x40; in SiS_SetGroup4()
7791 else if(tempbx >= 1024) temp = 0x20; in SiS_SetGroup4()
7793 temp = 0x80; in SiS_SetGroup4()
7794 if(tempbx >= 1024) temp = 0xA0; in SiS_SetGroup4()
7797 temp |= SiS_Pr->Init_P4_0E; in SiS_SetGroup4()
7801 temp &= 0xf0; in SiS_SetGroup4()
7802 temp |= 0x0A; in SiS_SetGroup4()
7806 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x0E,0x10,temp); in SiS_SetGroup4()
7811 if(!(temp & 0xE0)) tempebx >>=1; in SiS_SetGroup4()
7830 temp = (unsigned short)(tempeax & 0x000000FF); in SiS_SetGroup4()
7831 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1B,temp); in SiS_SetGroup4()
7832 temp = (unsigned short)((tempeax & 0x0000FF00) >> 8); in SiS_SetGroup4()
7833 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1A,temp); in SiS_SetGroup4()
7834 temp = (unsigned short)((tempeax >> 12) & 0x70); /* sic! */ in SiS_SetGroup4()
7835 temp |= (tempcx & 0x4F); in SiS_SetGroup4()
7836 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x19,temp); in SiS_SetGroup4()
7856 temp = tempax % 32; in SiS_SetGroup4()
7858 if(temp) tempax++; in SiS_SetGroup4()
7872 temp = ((tempax >> 4) & 0x30) | tempbx; in SiS_SetGroup4()
7874 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1E,temp); in SiS_SetGroup4()
7876 temp = 0x0036; tempbx = 0xD0; in SiS_SetGroup4()
7878 temp = 0x0026; tempbx = 0xC0; /* See En/DisableBridge() */ in SiS_SetGroup4()
7882 temp |= 0x01; in SiS_SetGroup4()
7885 temp &= ~0x01; in SiS_SetGroup4()
7890 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x1F,tempbx,temp); in SiS_SetGroup4()
7896 temp = (tempbx >> 5) & 0x38; in SiS_SetGroup4()
7897 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x21,0xC0,temp); in SiS_SetGroup4()
8302 unsigned short temp; in SiS_SetCHTVReg() local
8307 temp = CHTVRegData[resindex].Reg[0]; in SiS_SetCHTVReg()
8308 if(SiS_Pr->SiS_TVMode & TVSetNTSCJ) temp |= 0x10; in SiS_SetCHTVReg()
8309 SiS_SetCH701x(SiS_Pr,0x00,temp); in SiS_SetCHTVReg()
8318 temp = CHTVRegData[resindex].Reg[7]; in SiS_SetCHTVReg()
8319 if(SiS_Pr->SiS_TVMode & TVSetNTSCJ) temp = 0x66; in SiS_SetCHTVReg()
8320 SiS_SetCH701x(SiS_Pr,0x07,temp); in SiS_SetCHTVReg()
8331 temp = SiS_GetCH701x(SiS_Pr,0x21) & ~0x02; in SiS_SetCHTVReg()
8338 if(SiS_Pr->SiS_TVMode & (TVSetPALN | TVSetNTSCJ)) temp |= 0x02; in SiS_SetCHTVReg()
8339 SiS_SetCH701x(SiS_Pr,0x21,temp); in SiS_SetCHTVReg()
8356 unsigned short temp; in SiS_Chrontel701xBLOn() local
8363 temp = SiS_GetCH701x(SiS_Pr,0x66); in SiS_Chrontel701xBLOn()
8364 temp |= 0x20; in SiS_Chrontel701xBLOn()
8365 SiS_SetCH701x(SiS_Pr,0x66,temp); in SiS_Chrontel701xBLOn()
8373 unsigned short temp; in SiS_Chrontel701xBLOff() local
8377 temp = SiS_GetCH701x(SiS_Pr,0x66); in SiS_Chrontel701xBLOff()
8378 temp &= 0xDF; in SiS_Chrontel701xBLOff()
8379 SiS_SetCH701x(SiS_Pr,0x66,temp); in SiS_Chrontel701xBLOff()
8521 unsigned char temp, temp1; in SiS_ChrontelResetVSync() local
8525 temp = SiS_GetCH701x(SiS_Pr,0x47); in SiS_ChrontelResetVSync()
8526 temp &= 0x7f; /* Use external VSYNC */ in SiS_ChrontelResetVSync()
8527 SiS_SetCH701x(SiS_Pr,0x47,temp); in SiS_ChrontelResetVSync()
8529 temp = SiS_GetCH701x(SiS_Pr,0x47); in SiS_ChrontelResetVSync()
8530 temp |= 0x80; /* Use internal VSYNC */ in SiS_ChrontelResetVSync()
8531 SiS_SetCH701x(SiS_Pr,0x47,temp); in SiS_ChrontelResetVSync()
8538 unsigned short temp; in SiS_Chrontel701xOn() local
8542 temp = SiS_GetCH701x(SiS_Pr,0x1c); in SiS_Chrontel701xOn()
8543 temp |= 0x04; /* Invert XCLK phase */ in SiS_Chrontel701xOn()
8544 SiS_SetCH701x(SiS_Pr,0x1c,temp); in SiS_Chrontel701xOn()
8547 temp = SiS_GetCH701x(SiS_Pr,0x01); in SiS_Chrontel701xOn()
8548 temp &= 0x3f; in SiS_Chrontel701xOn()
8549 temp |= 0x80; /* Enable YPrPb (HDTV) */ in SiS_Chrontel701xOn()
8550 SiS_SetCH701x(SiS_Pr,0x01,temp); in SiS_Chrontel701xOn()
8553 temp = SiS_GetCH701x(SiS_Pr,0x01); in SiS_Chrontel701xOn()
8554 temp &= 0x3f; in SiS_Chrontel701xOn()
8555 temp |= 0xc0; /* Enable SCART + CVBS */ in SiS_Chrontel701xOn()
8556 SiS_SetCH701x(SiS_Pr,0x01,temp); in SiS_Chrontel701xOn()
8563 temp = SiS_GetCH701x(SiS_Pr,0x49); in SiS_Chrontel701xOn()
8565 temp = SiS_GetCH701x(SiS_Pr,0x73); in SiS_Chrontel701xOn()
8566 temp |= 0x60; in SiS_Chrontel701xOn()
8567 SiS_SetCH701x(SiS_Pr,0x73,temp); in SiS_Chrontel701xOn()
8569 temp = SiS_GetCH701x(SiS_Pr,0x47); in SiS_Chrontel701xOn()
8570 temp &= 0x7f; in SiS_Chrontel701xOn()
8571 SiS_SetCH701x(SiS_Pr,0x47,temp); in SiS_Chrontel701xOn()
8573 temp = SiS_GetCH701x(SiS_Pr,0x47); in SiS_Chrontel701xOn()
8574 temp |= 0x80; in SiS_Chrontel701xOn()
8575 SiS_SetCH701x(SiS_Pr,0x47,temp); in SiS_Chrontel701xOn()
8583 unsigned short temp; in SiS_Chrontel701xOff() local
8594 temp = SiS_GetCH701x(SiS_Pr,0x76); in SiS_Chrontel701xOff()
8595 temp &= 0xfc; in SiS_Chrontel701xOff()
8596 SiS_SetCH701x(SiS_Pr,0x76,temp); in SiS_Chrontel701xOff()
8605 unsigned short temp; in SiS_ChrontelResetDB() local
8609 temp = SiS_GetCH701x(SiS_Pr,0x4a); /* Version ID */ in SiS_ChrontelResetDB()
8610 temp &= 0x01; in SiS_ChrontelResetDB()
8611 if(!temp) { in SiS_ChrontelResetDB()
8614 temp = SiS_GetCH701x(SiS_Pr,0x49); in SiS_ChrontelResetDB()
8625 SiS_SetCH701x(SiS_Pr,0x49,temp); in SiS_ChrontelResetDB()
8631 temp = SiS_GetCH701x(SiS_Pr,0x5c); in SiS_ChrontelResetDB()
8632 temp &= 0xef; in SiS_ChrontelResetDB()
8633 SiS_SetCH701x(SiS_Pr,0x5c,temp); in SiS_ChrontelResetDB()
8634 temp = SiS_GetCH701x(SiS_Pr,0x5c); in SiS_ChrontelResetDB()
8635 temp |= 0x10; in SiS_ChrontelResetDB()
8636 SiS_SetCH701x(SiS_Pr,0x5c,temp); in SiS_ChrontelResetDB()
8637 temp = SiS_GetCH701x(SiS_Pr,0x5c); in SiS_ChrontelResetDB()
8638 temp &= 0xef; in SiS_ChrontelResetDB()
8639 SiS_SetCH701x(SiS_Pr,0x5c,temp); in SiS_ChrontelResetDB()
8640 temp = SiS_GetCH701x(SiS_Pr,0x61); in SiS_ChrontelResetDB()
8641 if(!temp) { in SiS_ChrontelResetDB()
8657 unsigned short temp; in SiS_ChrontelInitTVVSync() local
8668 temp = SiS_GetCH701x(SiS_Pr,0x49); in SiS_ChrontelInitTVVSync()
8669 temp &= 1; in SiS_ChrontelInitTVVSync()
8670 if(temp != 1) { /* TV block powered? (0 = yes, 1 = no) */ in SiS_ChrontelInitTVVSync()
8671 temp = SiS_GetCH701x(SiS_Pr,0x47); in SiS_ChrontelInitTVVSync()
8672 temp &= 0x70; in SiS_ChrontelInitTVVSync()
8673 SiS_SetCH701x(SiS_Pr,0x47,temp); /* enable VSYNC */ in SiS_ChrontelInitTVVSync()
8675 temp = SiS_GetCH701x(SiS_Pr,0x47); in SiS_ChrontelInitTVVSync()
8676 temp |= 0x80; in SiS_ChrontelInitTVVSync()
8677 SiS_SetCH701x(SiS_Pr,0x47,temp); /* disable VSYNC */ in SiS_ChrontelInitTVVSync()
8686 unsigned short temp,temp1; in SiS_ChrontelDoSomething3() local
8690 temp = SiS_GetCH701x(SiS_Pr,0x61); in SiS_ChrontelDoSomething3()
8691 if(temp < 1) { in SiS_ChrontelDoSomething3()
8692 temp++; in SiS_ChrontelDoSomething3()
8693 SiS_SetCH701x(SiS_Pr,0x61,temp); in SiS_ChrontelDoSomething3()
8703 temp = SiS_GetCH701x(SiS_Pr,0x61); in SiS_ChrontelDoSomething3()
8704 if(temp < 2) { in SiS_ChrontelDoSomething3()
8705 temp++; in SiS_ChrontelDoSomething3()
8706 SiS_SetCH701x(SiS_Pr,0x61,temp); in SiS_ChrontelDoSomething3()
8710 temp = SiS_GetCH701x(SiS_Pr,0x66); in SiS_ChrontelDoSomething3()
8711 temp |= 0x5f; in SiS_ChrontelDoSomething3()
8712 SiS_SetCH701x(SiS_Pr,0x66,temp); in SiS_ChrontelDoSomething3()
8723 temp = SiS_GetCH701x(SiS_Pr,0x76); in SiS_ChrontelDoSomething3()
8724 temp |= 0x03; in SiS_ChrontelDoSomething3()
8725 SiS_SetCH701x(SiS_Pr,0x76,temp); in SiS_ChrontelDoSomething3()
8726 temp = SiS_GetCH701x(SiS_Pr,0x66); in SiS_ChrontelDoSomething3()
8727 temp &= 0x7f; in SiS_ChrontelDoSomething3()
8728 SiS_SetCH701x(SiS_Pr,0x66,temp); in SiS_ChrontelDoSomething3()
8737 unsigned short temp; in SiS_ChrontelDoSomething2() local
8742 temp = SiS_GetCH701x(SiS_Pr,0x66); in SiS_ChrontelDoSomething2()
8743 temp &= 0x04; /* PLL stable? -> bail out */ in SiS_ChrontelDoSomething2()
8744 if(temp == 0x04) break; in SiS_ChrontelDoSomething2()
8753 temp = SiS_GetCH701x(SiS_Pr,0x76); in SiS_ChrontelDoSomething2()
8754 temp &= 0xfb; /* Reset PLL */ in SiS_ChrontelDoSomething2()
8755 SiS_SetCH701x(SiS_Pr,0x76,temp); in SiS_ChrontelDoSomething2()
8757 temp = SiS_GetCH701x(SiS_Pr,0x76); in SiS_ChrontelDoSomething2()
8758 temp |= 0x04; /* PLL normal operation */ in SiS_ChrontelDoSomething2()
8759 SiS_SetCH701x(SiS_Pr,0x76,temp); in SiS_ChrontelDoSomething2()
8774 unsigned short temp; in SiS_ChrontelDoSomething1() local
8776 temp = SiS_GetCH701x(SiS_Pr,0x03); in SiS_ChrontelDoSomething1()
8777 temp |= 0x80; /* Set datapath 1 to TV */ in SiS_ChrontelDoSomething1()
8778 temp &= 0xbf; /* Set datapath 2 to LVDS */ in SiS_ChrontelDoSomething1()
8779 SiS_SetCH701x(SiS_Pr,0x03,temp); in SiS_ChrontelDoSomething1()
8783 temp = SiS_GetCH701x(SiS_Pr,0x1c); in SiS_ChrontelDoSomething1()
8784 temp &= 0xfb; /* Normal XCLK phase */ in SiS_ChrontelDoSomething1()
8785 SiS_SetCH701x(SiS_Pr,0x1c,temp); in SiS_ChrontelDoSomething1()
8789 temp = SiS_GetCH701x(SiS_Pr,0x64); in SiS_ChrontelDoSomething1()
8790 temp |= 0x40; /* ? Bit not defined */ in SiS_ChrontelDoSomething1()
8791 SiS_SetCH701x(SiS_Pr,0x64,temp); in SiS_ChrontelDoSomething1()
8793 temp = SiS_GetCH701x(SiS_Pr,0x03); in SiS_ChrontelDoSomething1()
8794 temp &= 0x3f; /* D1 input to both LVDS and TV */ in SiS_ChrontelDoSomething1()
8795 SiS_SetCH701x(SiS_Pr,0x03,temp); in SiS_ChrontelDoSomething1()
8805 temp = SiS_GetCH701x(SiS_Pr,0x66); in SiS_ChrontelDoSomething1()
8806 if(temp != 0x45) { in SiS_ChrontelDoSomething1()
8817 temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x34); in SiS_ChrontelDoSomething1()
8818 SiS_ChrontelDoSomething3(SiS_Pr,temp); in SiS_ChrontelDoSomething1()
9044 unsigned short tempah,temp; in SiS_SetTrumpBlockLoop() local
9057 temp = SiS_WriteDDC2Data(SiS_Pr,tempah); /* Write DAB (S0=0=write) */ in SiS_SetTrumpBlockLoop()
9058 if(temp) continue; /* (ERROR: no ack) */ in SiS_SetTrumpBlockLoop()
9060 temp = SiS_WriteDDC2Data(SiS_Pr,tempah); /* Write register number */ in SiS_SetTrumpBlockLoop()
9061 if(temp) continue; /* (ERROR: no ack) */ in SiS_SetTrumpBlockLoop()
9064 temp = SiS_WriteDDC2Data(SiS_Pr,tempah);/* Write DAB (S0=0=write) */ in SiS_SetTrumpBlockLoop()
9065 if(temp) break; in SiS_SetTrumpBlockLoop()
9067 if(temp) continue; in SiS_SetTrumpBlockLoop()
9103 unsigned short temp, i; in SiS_SetChReg() local
9111 temp = SiS_WriteDDC2Data(SiS_Pr, SiS_Pr->SiS_DDC_DeviceAddr); /* Write DAB (S0=0=write) */ in SiS_SetChReg()
9112 if(temp) continue; /* (ERROR: no ack) */ in SiS_SetChReg()
9113 … temp = SiS_WriteDDC2Data(SiS_Pr, (reg | myor)); /* Write RAB (700x: set bit 7, see datasheet) */ in SiS_SetChReg()
9114 if(temp) continue; /* (ERROR: no ack) */ in SiS_SetChReg()
9115 temp = SiS_WriteDDC2Data(SiS_Pr, val); /* Write data */ in SiS_SetChReg()
9116 if(temp) continue; /* (ERROR: no ack) */ in SiS_SetChReg()
9176 unsigned short tempah, temp, i; in SiS_GetChReg() local
9184 temp = SiS_WriteDDC2Data(SiS_Pr,SiS_Pr->SiS_DDC_DeviceAddr); /* Write DAB (S0=0=write) */ in SiS_GetChReg()
9185 if(temp) continue; /* (ERROR: no ack) */ in SiS_GetChReg()
9186 … temp = SiS_WriteDDC2Data(SiS_Pr,SiS_Pr->SiS_DDC_ReadAddr | myor); /* Write RAB (700x: | 0x80) */ in SiS_GetChReg()
9187 if(temp) continue; /* (ERROR: no ack) */ in SiS_GetChReg()
9189 temp = SiS_WriteDDC2Data(SiS_Pr,SiS_Pr->SiS_DDC_DeviceAddr | 0x01);/* DAB (S0=1=read) */ in SiS_GetChReg()
9190 if(temp) continue; /* (ERROR: no ack) */ in SiS_GetChReg()
9279 unsigned short temp = 0, myadaptnum = adaptnum; in SiS_InitDDCRegs() local
9335 temp = 4 - (myadaptnum * 2); in SiS_InitDDCRegs()
9336 if(flag) temp = 0; in SiS_InitDDCRegs()
9365 temp = myadaptnum; in SiS_InitDDCRegs()
9367 temp = 0; in SiS_InitDDCRegs()
9371 if(flag) temp = 0; in SiS_InitDDCRegs()
9374 SiS_Pr->SiS_DDC_Data = 0x02 << temp; in SiS_InitDDCRegs()
9375 SiS_Pr->SiS_DDC_Clk = 0x01 << temp; in SiS_InitDDCRegs()
9435 unsigned short temp, ret=0; in SiS_DoProbeDDC() local
9446 temp = (unsigned char)SiS_ReadDDC2Data(SiS_Pr); in SiS_DoProbeDDC()
9448 if(temp == 0) { in SiS_DoProbeDDC()
9457 temp = (unsigned char)SiS_ReadDDC2Data(SiS_Pr); in SiS_DoProbeDDC()
9459 temp &= mask; in SiS_DoProbeDDC()
9460 if(temp == value) ret = 0; in SiS_DoProbeDDC()
9464 if(temp == 0x30) ret = 0; in SiS_DoProbeDDC()
9669 unsigned short i,flag,temp; in SiS_WriteDDC2Data() local
9688 temp = SiS_CheckACK(SiS_Pr); /* Check acknowledge */ in SiS_WriteDDC2Data()
9689 return temp; in SiS_WriteDDC2Data()
9695 unsigned short i, temp, getdata; in SiS_ReadDDC2Data() local
9706 temp = SiS_GetReg(SiS_Pr->SiS_DDC_Port,SiS_Pr->SiS_DDC_Index); in SiS_ReadDDC2Data()
9707 if(temp & SiS_Pr->SiS_DDC_Data) getdata |= 0x01; in SiS_ReadDDC2Data()
9726 unsigned short temp, watchdog=1000; in SiS_SetSCLKHigh() local
9733 temp = SiS_GetReg(SiS_Pr->SiS_DDC_Port,SiS_Pr->SiS_DDC_Index); in SiS_SetSCLKHigh()
9734 } while((!(temp & SiS_Pr->SiS_DDC_Clk)) && --watchdog); in SiS_SetSCLKHigh()
9889 unsigned short index = 0, temp = 0; in GetOEMTVPtr661_2_GEN() local
9905 temp++; in GetOEMTVPtr661_2_GEN()
9907 temp += 0x0100; in GetOEMTVPtr661_2_GEN()
9909 return (unsigned int)(index | (temp << 16)); in GetOEMTVPtr661_2_GEN()
9953 unsigned short delay=0,index,myindex,temp,romptr=0; in SetDelayComp() local
10219 temp = (SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) & 0xf0) >> 4; in SetDelayComp()
10220 if(temp == 8) { /* 1400x1050 BIOS (COMPAL) */ in SetDelayComp()
10223 } else if(temp == 6) { in SetDelayComp()
10226 } else if(temp > 7) { /* 1280x1024 BIOS (which one?) */ in SetDelayComp()
10258 unsigned short index,temp,temp1,romptr=0; in SetAntiFlicker() local
10267 temp = GetTVPtrIndex(SiS_Pr); in SetAntiFlicker()
10268 temp >>= 1; /* 0: NTSC/YPbPr, 1: PAL, 2: HiTV */ in SetAntiFlicker()
10269 temp1 = temp; in SetAntiFlicker()
10288 temp = ROMAddr[romptr + temp1 + index]; in SetAntiFlicker()
10290 temp = SiS310_TVAntiFlick1[temp][index]; in SetAntiFlicker()
10292 temp <<= 4; in SetAntiFlicker()
10294 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x0A,0x8f,temp); /* index 0A D[6:4] */ in SetAntiFlicker()
10301 unsigned short index,temp,temp1,romptr=0; in SetEdgeEnhance() local
10303 temp = temp1 = GetTVPtrIndex(SiS_Pr) >> 1; /* 0: NTSC/YPbPr, 1: PAL, 2: HiTV */ in SetEdgeEnhance()
10327 temp = ROMAddr[romptr + temp1 + index]; in SetEdgeEnhance()
10329 temp = SiS310_TVEdge1[temp][index]; in SetEdgeEnhance()
10331 temp <<= 5; in SetEdgeEnhance()
10332 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x3A,0x1F,temp); /* index 0A D[7:5] */ in SetEdgeEnhance()
10338 unsigned short index, temp, i, j; in SetYFilter() local
10346 temp = GetTVPtrIndex(SiS_Pr) >> 1; /* 0: NTSC/YPbPr, 1: PAL, 2: HiTV */ in SetYFilter()
10348 if(SiS_Pr->SiS_TVMode & TVSetNTSCJ) temp = 1; /* NTSC-J uses PAL */ in SetYFilter()
10349 else if(SiS_Pr->SiS_TVMode & TVSetPALM) temp = 3; /* PAL-M */ in SetYFilter()
10350 else if(SiS_Pr->SiS_TVMode & TVSetPALN) temp = 4; /* PAL-N */ in SetYFilter()
10351 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) temp = 1; /* HiVision uses PAL */ in SetYFilter()
10355 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVYFilter2[temp][index][j]); in SetYFilter()
10358 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVYFilter2[temp][index][j]); in SetYFilter()
10362 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVYFilter1[temp][index][j]); in SetYFilter()
10371 unsigned short index,temp,i,j,resinfo,romptr=0; in SetPhaseIncr() local
10397 temp = GetTVPtrIndex(SiS_Pr); in SetPhaseIncr()
10420 romptr += (temp << 2); in SetPhaseIncr()
10425 index = temp % 2; in SetPhaseIncr()
10426 temp >>= 1; /* 0:NTSC, 1:PAL, 2:HiTV */ in SetPhaseIncr()
10429 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVPhaseIncr1[temp][index][j]); in SetPhaseIncr()
10431 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVPhaseIncr2[temp][index][j]); in SetPhaseIncr()
10433 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVPhaseIncr1[temp][index][j]); in SetPhaseIncr()
10619 unsigned char temp; in SetCRT2SyncDither661() local
10638 temp = (infoflag >> 6) | 0x0c; in SetCRT2SyncDither661()
10640 temp ^= 0x04; in SetCRT2SyncDither661()
10641 if(SiS_Pr->SiS_ModeType >= Mode24Bpp) temp |= 0x10; in SetCRT2SyncDither661()
10643 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1a,0xe0,temp); in SetCRT2SyncDither661()
10645 temp = 0x30; in SetCRT2SyncDither661()
10646 if(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit) temp = 0x20; in SetCRT2SyncDither661()
10647 temp |= infoflag; in SetCRT2SyncDither661()
10648 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0f,temp); in SetCRT2SyncDither661()
10649 temp = 0; in SetCRT2SyncDither661()
10651 if(SiS_Pr->SiS_ModeType >= Mode24Bpp) temp |= 0x80; in SetCRT2SyncDither661()
10653 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x1a,0x7f,temp); in SetCRT2SyncDither661()
10753 unsigned short tempcl,tempch,tempbl,tempbh,tempbx,tempax,temp; in SiS_FinalizeLCD() local
10876 temp = tempbx & 0xff; in SiS_FinalizeLCD()
10877 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1b,temp); in SiS_FinalizeLCD()
10878 temp = (tempbx >> 8) & 0x03; in SiS_FinalizeLCD()
10879 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x1d,0xf8,temp); in SiS_FinalizeLCD()
10940 temp = tempbx & 0xff; in SiS_FinalizeLCD()
10941 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,temp); in SiS_FinalizeLCD()
10942 temp = ((tempbx & 0xff00) >> 4) | tempcl; in SiS_FinalizeLCD()
10943 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x01,0x80,temp); in SiS_FinalizeLCD()
10959 unsigned char temp; in SetOEMLCDData2() local
10989 temp = SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00); in SetOEMLCDData2()
10990 if(temp & 0x80) { in SetOEMLCDData2()
10991 temp = SiS_GetReg(SiS_Pr->SiS_Part1Port,0x18); in SetOEMLCDData2()
10992 temp++; in SetOEMLCDData2()
10993 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,temp); in SetOEMLCDData2()
11064 unsigned short index,temp,romptr=0; in SetOEMLCDDelay() local
11083 temp = GetOEMLCDPtr(SiS_Pr, 0); in SetOEMLCDDelay()
11092 romptr += (temp * 2); in SetOEMLCDDelay()
11095 temp = ROMAddr[romptr]; in SetOEMLCDDelay()
11098 temp = SiS300_OEMLCDDelay2[temp][index]; in SetOEMLCDDelay()
11100 temp = SiS300_OEMLCDDelay3[temp][index]; in SetOEMLCDDelay()
11106 romptr += (temp * 2); in SetOEMLCDDelay()
11109 temp = ROMAddr[romptr]; in SetOEMLCDDelay()
11111 temp = SiS300_OEMLCDDelay5[temp][index]; in SetOEMLCDDelay()
11117 romptr += (temp * 2); in SetOEMLCDDelay()
11120 temp = ROMAddr[romptr]; in SetOEMLCDDelay()
11122 temp = SiS300_OEMLCDDelay4[temp][index]; in SetOEMLCDDelay()
11125 temp = SiS300_OEMLCDDelay4[temp][index]; in SetOEMLCDDelay()
11129 temp &= 0x3c; in SetOEMLCDDelay()
11130 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,~0x3C,temp); /* index 0A D[6:4] */ in SetOEMLCDDelay()
11138 unsigned short index,temp; in SetOEMLCDData()
11146 temp = GetOEMLCDPtr(SiS_Pr, 1); in SetOEMLCDData()
11147 if(temp == 0xFFFF) return; in SetOEMLCDData()
11151 SiS_SetReg(SiS_Pr->SiS_Part1Port,i,SiS300_LCDHData[temp][index][j]); in SetOEMLCDData()
11153 SiS_SetRegANDOR(SiS_SiS_Part1Port,0x1a, 0xf8, (SiS300_LCDHData[temp][index][j] & 0x07)); in SetOEMLCDData()
11156 SiS_SetReg(SiS_SiS_Part1Port,0x18, SiS300_LCDVData[temp][index][0]); in SetOEMLCDData()
11157 SiS_SetRegANDOR(SiS_SiS_Part1Port,0x19, 0xF0, SiS300_LCDVData[temp][index][1]); in SetOEMLCDData()
11158 SiS_SetRegANDOR(SiS_SiS_Part1Port,0x1A, 0xC7, (SiS300_LCDVData[temp][index][2] & 0x38)); in SetOEMLCDData()
11160 SiS_SetReg(SiS_Pr->SiS_Part1Port,i,SiS300_LCDVData[temp][index][j]); in SetOEMLCDData()
11187 unsigned short index,temp,romptr=0; in SetOEMTVDelay() local
11195 temp = GetOEMTVPtr(SiS_Pr); in SetOEMTVDelay()
11200 romptr += (temp * 2); in SetOEMTVDelay()
11203 temp = ROMAddr[romptr]; in SetOEMTVDelay()
11206 temp = SiS300_OEMTVDelay301[temp][index]; in SetOEMTVDelay()
11208 temp = SiS300_OEMTVDelayLVDS[temp][index]; in SetOEMTVDelay()
11211 temp &= 0x3c; in SetOEMTVDelay()
11212 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,~0x3C,temp); in SetOEMTVDelay()
11219 unsigned short index,temp,romptr=0; in SetOEMAntiFlicker() local
11227 temp = GetOEMTVPtr(SiS_Pr); in SetOEMAntiFlicker()
11232 romptr += (temp * 2); in SetOEMAntiFlicker()
11235 temp = ROMAddr[romptr]; in SetOEMAntiFlicker()
11237 temp = SiS300_OEMTVFlicker[temp][index]; in SetOEMAntiFlicker()
11239 temp &= 0x70; in SetOEMAntiFlicker()
11240 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x0A,0x8F,temp); in SetOEMAntiFlicker()
11247 unsigned short index,i,j,temp,romptr=0; in SetOEMPhaseIncr() local
11259 temp = GetOEMTVPtr(SiS_Pr); in SetOEMPhaseIncr()
11265 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Phase2[temp][index][j]); in SetOEMPhaseIncr()
11269 romptr += (temp * 2); in SetOEMPhaseIncr()
11277 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Phase1[temp][index][j]); in SetOEMPhaseIncr()
11287 unsigned short index,temp,i,j,romptr=0; in SetOEMYFilter() local
11297 temp = GetOEMTVPtr(SiS_Pr); in SetOEMYFilter()
11299 if(SiS_Pr->SiS_TVMode & TVSetPALM) temp = 8; in SetOEMYFilter()
11300 else if(SiS_Pr->SiS_TVMode & TVSetPALN) temp = 9; in SetOEMYFilter()
11307 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Filter2[temp][index][j]); in SetOEMYFilter()
11310 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Filter2[temp][index][j]); in SetOEMYFilter()
11314 romptr += (temp * 2); in SetOEMYFilter()
11322 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Filter1[temp][index][j]); in SetOEMYFilter()