Lines Matching refs:romptr
172 unsigned short romptr = 0; in GetLCDStructPtr661_2() local
183 romptr = SISGETROMW(0x102); in GetLCDStructPtr661_2()
184 romptr += ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) * SiS_Pr->SiS661LCD2TableSize); in GetLCDStructPtr661_2()
187 return romptr; in GetLCDStructPtr661_2()
3206 unsigned short tempax, tempbx, modeflag, romptr=0; in SiS_GetCRT2Data301() local
3230 if((romptr = (SISGETROMW(21)))) { in SiS_GetCRT2Data301()
3231 romptr += (resinfo661 * 10); in SiS_GetCRT2Data301()
3398 } else if( (!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) && (romptr) && (ROMAddr) ) { in SiS_GetCRT2Data301()
3401 SiS_Pr->SiS_RVBHCMAX = ROMAddr[romptr]; in SiS_GetCRT2Data301()
3402 SiS_Pr->SiS_RVBHCFACT = ROMAddr[romptr+1]; in SiS_GetCRT2Data301()
3403 SiS_Pr->SiS_VGAHT = ROMAddr[romptr+2] | ((ROMAddr[romptr+3] & 0x0f) << 8); in SiS_GetCRT2Data301()
3404 SiS_Pr->SiS_VGAVT = (ROMAddr[romptr+4] << 4) | ((ROMAddr[romptr+3] & 0xf0) >> 4); in SiS_GetCRT2Data301()
3405 SiS_Pr->SiS_HT = ROMAddr[romptr+5] | ((ROMAddr[romptr+6] & 0x0f) << 8); in SiS_GetCRT2Data301()
3406 SiS_Pr->SiS_VT = (ROMAddr[romptr+7] << 4) | ((ROMAddr[romptr+6] & 0xf0) >> 4); in SiS_GetCRT2Data301()
3407 SiS_Pr->SiS_RVBHRS2 = ROMAddr[romptr+8] | ((ROMAddr[romptr+9] & 0x0f) << 8); in SiS_GetCRT2Data301()
3410 tempax = (ROMAddr[romptr+9] >> 4) & 0x07; in SiS_GetCRT2Data301()
3411 if(ROMAddr[romptr+9] & 0x80) SiS_Pr->SiS_RVBHRS2 -= tempax; in SiS_GetCRT2Data301()
3807 unsigned short romptr = GetLCDStructPtr661_2(SiS_Pr); in SiS_HandlePWD() local
3812 (romptr) && in SiS_HandlePWD()
3814 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2b,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 0]); in SiS_HandlePWD()
3815 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2c,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 1]); in SiS_HandlePWD()
3816 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2d,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 2]); in SiS_HandlePWD()
3817 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2e,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 3]); in SiS_HandlePWD()
3818 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2f,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 4]); in SiS_HandlePWD()
3820 if((ROMAddr[romptr + 2] & (0x06 << 1)) && !drivermode) { in SiS_HandlePWD()
4448 unsigned short romptr = GetLCDStructPtr661_2(SiS_Pr); in SiS_EnableBridge() local
4449 if(romptr) { in SiS_EnableBridge()
4452 SiS_Pr->EMI_31 = ROMAddr[romptr + SiS_Pr->SiS_EMIOffset + 0]; in SiS_EnableBridge()
4453 SiS_Pr->EMI_32 = ROMAddr[romptr + SiS_Pr->SiS_EMIOffset + 1]; in SiS_EnableBridge()
4454 SiS_Pr->EMI_33 = ROMAddr[romptr + SiS_Pr->SiS_EMIOffset + 2]; in SiS_EnableBridge()
4455 if(ROMAddr[romptr + 1] & 0x10) SiS_Pr->EMI_30 = 0x40; in SiS_EnableBridge()
9461 unsigned short romptr; in GetRAMDACromptr() local
9464 romptr = SISGETROMW(0x128); in GetRAMDACromptr()
9466 romptr = SISGETROMW(0x12a); in GetRAMDACromptr()
9468 romptr = SISGETROMW(0x1a8); in GetRAMDACromptr()
9470 romptr = SISGETROMW(0x1aa); in GetRAMDACromptr()
9472 return romptr; in GetRAMDACromptr()
9479 unsigned short romptr; in GetLCDromptr() local
9482 romptr = SISGETROMW(0x120); in GetLCDromptr()
9484 romptr = SISGETROMW(0x122); in GetLCDromptr()
9486 romptr = SISGETROMW(0x1a0); in GetLCDromptr()
9488 romptr = SISGETROMW(0x1a2); in GetLCDromptr()
9490 return romptr; in GetLCDromptr()
9497 unsigned short romptr; in GetTVromptr() local
9500 romptr = SISGETROMW(0x114); in GetTVromptr()
9502 romptr = SISGETROMW(0x11a); in GetTVromptr()
9504 romptr = SISGETROMW(0x194); in GetTVromptr()
9506 romptr = SISGETROMW(0x19a); in GetTVromptr()
9508 return romptr; in GetTVromptr()
9642 unsigned short delay=0,index,myindex,temp,romptr=0; in SetDelayComp() local
9656 romptr = GetRAMDACromptr(SiS_Pr); in SetDelayComp()
9658 if(romptr) delay = ROMAddr[romptr]; in SetDelayComp()
9769 romptr = SISGETROMW(0x122); in SetDelayComp()
9770 if(!romptr) return; in SetDelayComp()
9771 delay = ROMAddr[(romptr + index)]; in SetDelayComp()
9790 ((romptr = GetLCDromptr(SiS_Pr)))) { in SetDelayComp()
9794 delay = ROMAddr[(romptr + index)]; in SetDelayComp()
9839 romptr = SISGETROMW(0x11a); in SetDelayComp()
9840 if(!romptr) return; in SetDelayComp()
9841 delay = ROMAddr[romptr + index]; in SetDelayComp()
9874 romptr = GetTVromptr(SiS_Pr); in SetDelayComp()
9875 if(!romptr) return; in SetDelayComp()
9876 delay = ROMAddr[romptr + index]; in SetDelayComp()
9949 unsigned short index,temp,temp1,romptr=0; in SetAntiFlicker() local
9966 romptr = SISGETROMW(0x260); in SetAntiFlicker()
9968 romptr = SISGETROMW(0x360); in SetAntiFlicker()
9971 romptr = SISGETROMW(0x192); in SetAntiFlicker()
9973 romptr = SISGETROMW(0x112); in SetAntiFlicker()
9977 if(romptr) { in SetAntiFlicker()
9979 temp = ROMAddr[romptr + temp1 + index]; in SetAntiFlicker()
9992 unsigned short index,temp,temp1,romptr=0; in SetEdgeEnhance() local
10003 romptr = SISGETROMW(0x26c); in SetEdgeEnhance()
10005 romptr = SISGETROMW(0x36c); in SetEdgeEnhance()
10010 romptr = SISGETROMW(0x1a4); in SetEdgeEnhance()
10012 romptr = SISGETROMW(0x124); in SetEdgeEnhance()
10016 if(romptr) { in SetEdgeEnhance()
10018 temp = ROMAddr[romptr + temp1 + index]; in SetEdgeEnhance()
10062 unsigned short index,temp,i,j,resinfo,romptr=0; in SetPhaseIncr() local
10093 romptr = SISGETROMW(0x116); in SetPhaseIncr()
10095 romptr = SISGETROMW(0x196); in SetPhaseIncr()
10098 romptr = SISGETROMW(0x11c); in SetPhaseIncr()
10100 romptr = SISGETROMW(0x19c); in SetPhaseIncr()
10103 romptr = SISGETROMW(0x116); in SetPhaseIncr()
10105 romptr = SISGETROMW(0x196); in SetPhaseIncr()
10110 if(romptr) { in SetPhaseIncr()
10111 romptr += (temp << 2); in SetPhaseIncr()
10113 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); in SetPhaseIncr()
10150 unsigned short delay = 0, romptr = 0, index, lcdpdcindex; in SetDelayComp661() local
10175 romptr = SISGETROMW(0x104); in SetDelayComp661()
10176 delay = ROMAddr[romptr + index]; in SetDelayComp661()
10203 if((romptr = SISGETROMW(0x35e))) { in SetDelayComp661()
10204 delay = (ROMAddr[romptr + index] & 0x0f) << 1; in SetDelayComp661()
10230 romptr = SISGETROMW(0x106); in SetDelayComp661()
10231 if(SiS_Pr->SiS_VBType & VB_UMC) romptr += 12; in SetDelayComp661()
10232 delay = ROMAddr[romptr + index]; in SetDelayComp661()
10243 ((romptr = GetLCDStructPtr661_2(SiS_Pr))) ) { in SetDelayComp661()
10248 delay = ROMAddr[romptr + lcdpdcindex + 1]; /* LCD */ in SetDelayComp661()
10249 delay |= (ROMAddr[romptr + lcdpdcindex] << 8); /* LCDA */ in SetDelayComp661()
10354 unsigned short romptr, temp1, temp2; in SetPanelParms661() local
10368 if((romptr = GetLCDStructPtr661_2(SiS_Pr))) { in SetPanelParms661()
10370 temp1 = (ROMAddr[romptr] & 0x03) | 0x0c; in SetPanelParms661()
10379 temp1 = (ROMAddr[romptr + 1] & 0x80) >> 1; in SetPanelParms661()
10693 unsigned short tempbx=0,romptr=0; in GetOEMLCDPtr() local
10716 romptr = SISGETROMW(0x255); in GetOEMLCDPtr()
10717 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
10730 romptr = SISGETROMW(0x255); in GetOEMLCDPtr()
10731 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
10755 unsigned short index,temp,romptr=0; in SetOEMLCDDelay() local
10762 romptr = SISGETROMW(0x24b); in SetOEMLCDDelay()
10782 if(romptr) { in SetOEMLCDDelay()
10783 romptr += (temp * 2); in SetOEMLCDDelay()
10784 romptr = SISGETROMW(romptr); in SetOEMLCDDelay()
10785 romptr += index; in SetOEMLCDDelay()
10786 temp = ROMAddr[romptr]; in SetOEMLCDDelay()
10796 if(romptr) { in SetOEMLCDDelay()
10797 romptr += (temp * 2); in SetOEMLCDDelay()
10798 romptr = SISGETROMW(romptr); in SetOEMLCDDelay()
10799 romptr += index; in SetOEMLCDDelay()
10800 temp = ROMAddr[romptr]; in SetOEMLCDDelay()
10806 romptr = ROMAddr[0x249] | (ROMAddr[0x24a] << 8); in SetOEMLCDDelay()
10807 if(romptr) { in SetOEMLCDDelay()
10808 romptr += (temp * 2); in SetOEMLCDDelay()
10809 romptr = SISGETROMW(romptr); in SetOEMLCDDelay()
10810 romptr += index; in SetOEMLCDDelay()
10811 temp = ROMAddr[romptr]; in SetOEMLCDDelay()
10878 unsigned short index,temp,romptr=0; in SetOEMTVDelay() local
10883 romptr = SISGETROMW(0x241); in SetOEMTVDelay()
10890 if(romptr) { in SetOEMTVDelay()
10891 romptr += (temp * 2); in SetOEMTVDelay()
10892 romptr = SISGETROMW(romptr); in SetOEMTVDelay()
10893 romptr += index; in SetOEMTVDelay()
10894 temp = ROMAddr[romptr]; in SetOEMTVDelay()
10910 unsigned short index,temp,romptr=0; in SetOEMAntiFlicker() local
10915 romptr = SISGETROMW(0x243); in SetOEMAntiFlicker()
10922 if(romptr) { in SetOEMAntiFlicker()
10923 romptr += (temp * 2); in SetOEMAntiFlicker()
10924 romptr = SISGETROMW(romptr); in SetOEMAntiFlicker()
10925 romptr += index; in SetOEMAntiFlicker()
10926 temp = ROMAddr[romptr]; in SetOEMAntiFlicker()
10938 unsigned short index,i,j,temp,romptr=0; in SetOEMPhaseIncr() local
10947 romptr = SISGETROMW(0x245); in SetOEMPhaseIncr()
10959 if(romptr) { in SetOEMPhaseIncr()
10960 romptr += (temp * 2); in SetOEMPhaseIncr()
10961 romptr = SISGETROMW(romptr); in SetOEMPhaseIncr()
10962 romptr += (index * 4); in SetOEMPhaseIncr()
10964 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); in SetOEMPhaseIncr()
10978 unsigned short index,temp,i,j,romptr=0; in SetOEMYFilter() local
10985 romptr = SISGETROMW(0x247); in SetOEMYFilter()
11004 if((romptr) && (!(SiS_Pr->SiS_TVMode & (TVSetPALM|TVSetPALN)))) { in SetOEMYFilter()
11005 romptr += (temp * 2); in SetOEMYFilter()
11006 romptr = SISGETROMW(romptr); in SetOEMYFilter()
11007 romptr += (index * 4); in SetOEMYFilter()
11009 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); in SetOEMYFilter()