Lines Matching refs:romptr
498 unsigned short romptr = 0; in GetLCDStructPtr661_2() local
509 romptr = SISGETROMW(0x102); in GetLCDStructPtr661_2()
510 romptr += ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) * SiS_Pr->SiS661LCD2TableSize); in GetLCDStructPtr661_2()
513 return romptr; in GetLCDStructPtr661_2()
3528 unsigned short tempax, tempbx, modeflag, romptr=0; in SiS_GetCRT2Data301() local
3552 if((romptr = (SISGETROMW(21)))) { in SiS_GetCRT2Data301()
3553 romptr += (resinfo661 * 10); in SiS_GetCRT2Data301()
3720 } else if( (!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) && (romptr) && (ROMAddr) ) { in SiS_GetCRT2Data301()
3723 SiS_Pr->SiS_RVBHCMAX = ROMAddr[romptr]; in SiS_GetCRT2Data301()
3724 SiS_Pr->SiS_RVBHCFACT = ROMAddr[romptr+1]; in SiS_GetCRT2Data301()
3725 SiS_Pr->SiS_VGAHT = ROMAddr[romptr+2] | ((ROMAddr[romptr+3] & 0x0f) << 8); in SiS_GetCRT2Data301()
3726 SiS_Pr->SiS_VGAVT = (ROMAddr[romptr+4] << 4) | ((ROMAddr[romptr+3] & 0xf0) >> 4); in SiS_GetCRT2Data301()
3727 SiS_Pr->SiS_HT = ROMAddr[romptr+5] | ((ROMAddr[romptr+6] & 0x0f) << 8); in SiS_GetCRT2Data301()
3728 SiS_Pr->SiS_VT = (ROMAddr[romptr+7] << 4) | ((ROMAddr[romptr+6] & 0xf0) >> 4); in SiS_GetCRT2Data301()
3729 SiS_Pr->SiS_RVBHRS2 = ROMAddr[romptr+8] | ((ROMAddr[romptr+9] & 0x0f) << 8); in SiS_GetCRT2Data301()
3732 tempax = (ROMAddr[romptr+9] >> 4) & 0x07; in SiS_GetCRT2Data301()
3733 if(ROMAddr[romptr+9] & 0x80) SiS_Pr->SiS_RVBHRS2 -= tempax; in SiS_GetCRT2Data301()
4129 unsigned short romptr = GetLCDStructPtr661_2(SiS_Pr); in SiS_HandlePWD() local
4134 (romptr) && in SiS_HandlePWD()
4136 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2b,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 0]); in SiS_HandlePWD()
4137 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2c,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 1]); in SiS_HandlePWD()
4138 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2d,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 2]); in SiS_HandlePWD()
4139 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2e,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 3]); in SiS_HandlePWD()
4140 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2f,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 4]); in SiS_HandlePWD()
4142 if((ROMAddr[romptr + 2] & (0x06 << 1)) && !drivermode) { in SiS_HandlePWD()
4770 unsigned short romptr = GetLCDStructPtr661_2(SiS_Pr); in SiS_EnableBridge() local
4771 if(romptr) { in SiS_EnableBridge()
4774 SiS_Pr->EMI_31 = ROMAddr[romptr + SiS_Pr->SiS_EMIOffset + 0]; in SiS_EnableBridge()
4775 SiS_Pr->EMI_32 = ROMAddr[romptr + SiS_Pr->SiS_EMIOffset + 1]; in SiS_EnableBridge()
4776 SiS_Pr->EMI_33 = ROMAddr[romptr + SiS_Pr->SiS_EMIOffset + 2]; in SiS_EnableBridge()
4777 if(ROMAddr[romptr + 1] & 0x10) SiS_Pr->EMI_30 = 0x40; in SiS_EnableBridge()
9772 unsigned short romptr; in GetRAMDACromptr() local
9775 romptr = SISGETROMW(0x128); in GetRAMDACromptr()
9777 romptr = SISGETROMW(0x12a); in GetRAMDACromptr()
9779 romptr = SISGETROMW(0x1a8); in GetRAMDACromptr()
9781 romptr = SISGETROMW(0x1aa); in GetRAMDACromptr()
9783 return romptr; in GetRAMDACromptr()
9790 unsigned short romptr; in GetLCDromptr() local
9793 romptr = SISGETROMW(0x120); in GetLCDromptr()
9795 romptr = SISGETROMW(0x122); in GetLCDromptr()
9797 romptr = SISGETROMW(0x1a0); in GetLCDromptr()
9799 romptr = SISGETROMW(0x1a2); in GetLCDromptr()
9801 return romptr; in GetLCDromptr()
9808 unsigned short romptr; in GetTVromptr() local
9811 romptr = SISGETROMW(0x114); in GetTVromptr()
9813 romptr = SISGETROMW(0x11a); in GetTVromptr()
9815 romptr = SISGETROMW(0x194); in GetTVromptr()
9817 romptr = SISGETROMW(0x19a); in GetTVromptr()
9819 return romptr; in GetTVromptr()
9953 unsigned short delay=0,index,myindex,temp,romptr=0; in SetDelayComp() local
9967 romptr = GetRAMDACromptr(SiS_Pr); in SetDelayComp()
9969 if(romptr) delay = ROMAddr[romptr]; in SetDelayComp()
10078 romptr = SISGETROMW(0x122); in SetDelayComp()
10079 if(!romptr) return; in SetDelayComp()
10080 delay = ROMAddr[(romptr + index)]; in SetDelayComp()
10099 ((romptr = GetLCDromptr(SiS_Pr)))) { in SetDelayComp()
10103 delay = ROMAddr[(romptr + index)]; in SetDelayComp()
10148 romptr = SISGETROMW(0x11a); in SetDelayComp()
10149 if(!romptr) return; in SetDelayComp()
10150 delay = ROMAddr[romptr + index]; in SetDelayComp()
10183 romptr = GetTVromptr(SiS_Pr); in SetDelayComp()
10184 if(!romptr) return; in SetDelayComp()
10185 delay = ROMAddr[romptr + index]; in SetDelayComp()
10258 unsigned short index,temp,temp1,romptr=0; in SetAntiFlicker() local
10275 romptr = SISGETROMW(0x260); in SetAntiFlicker()
10277 romptr = SISGETROMW(0x360); in SetAntiFlicker()
10280 romptr = SISGETROMW(0x192); in SetAntiFlicker()
10282 romptr = SISGETROMW(0x112); in SetAntiFlicker()
10286 if(romptr) { in SetAntiFlicker()
10288 temp = ROMAddr[romptr + temp1 + index]; in SetAntiFlicker()
10301 unsigned short index,temp,temp1,romptr=0; in SetEdgeEnhance() local
10312 romptr = SISGETROMW(0x26c); in SetEdgeEnhance()
10314 romptr = SISGETROMW(0x36c); in SetEdgeEnhance()
10319 romptr = SISGETROMW(0x1a4); in SetEdgeEnhance()
10321 romptr = SISGETROMW(0x124); in SetEdgeEnhance()
10325 if(romptr) { in SetEdgeEnhance()
10327 temp = ROMAddr[romptr + temp1 + index]; in SetEdgeEnhance()
10371 unsigned short index,temp,i,j,resinfo,romptr=0; in SetPhaseIncr() local
10402 romptr = SISGETROMW(0x116); in SetPhaseIncr()
10404 romptr = SISGETROMW(0x196); in SetPhaseIncr()
10407 romptr = SISGETROMW(0x11c); in SetPhaseIncr()
10409 romptr = SISGETROMW(0x19c); in SetPhaseIncr()
10412 romptr = SISGETROMW(0x116); in SetPhaseIncr()
10414 romptr = SISGETROMW(0x196); in SetPhaseIncr()
10419 if(romptr) { in SetPhaseIncr()
10420 romptr += (temp << 2); in SetPhaseIncr()
10422 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); in SetPhaseIncr()
10459 unsigned short delay = 0, romptr = 0, index, lcdpdcindex; in SetDelayComp661() local
10484 romptr = SISGETROMW(0x104); in SetDelayComp661()
10485 delay = ROMAddr[romptr + index]; in SetDelayComp661()
10512 if((romptr = SISGETROMW(0x35e))) { in SetDelayComp661()
10513 delay = (ROMAddr[romptr + index] & 0x0f) << 1; in SetDelayComp661()
10539 romptr = SISGETROMW(0x106); in SetDelayComp661()
10540 if(SiS_Pr->SiS_VBType & VB_UMC) romptr += 12; in SetDelayComp661()
10541 delay = ROMAddr[romptr + index]; in SetDelayComp661()
10552 ((romptr = GetLCDStructPtr661_2(SiS_Pr))) ) { in SetDelayComp661()
10557 delay = ROMAddr[romptr + lcdpdcindex + 1]; /* LCD */ in SetDelayComp661()
10558 delay |= (ROMAddr[romptr + lcdpdcindex] << 8); /* LCDA */ in SetDelayComp661()
10663 unsigned short romptr, temp1, temp2; in SetPanelParms661() local
10677 if((romptr = GetLCDStructPtr661_2(SiS_Pr))) { in SetPanelParms661()
10679 temp1 = (ROMAddr[romptr] & 0x03) | 0x0c; in SetPanelParms661()
10688 temp1 = (ROMAddr[romptr + 1] & 0x80) >> 1; in SetPanelParms661()
11002 unsigned short tempbx=0,romptr=0; in GetOEMLCDPtr() local
11025 romptr = SISGETROMW(0x255); in GetOEMLCDPtr()
11026 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
11039 romptr = SISGETROMW(0x255); in GetOEMLCDPtr()
11040 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
11064 unsigned short index,temp,romptr=0; in SetOEMLCDDelay() local
11071 romptr = SISGETROMW(0x24b); in SetOEMLCDDelay()
11091 if(romptr) { in SetOEMLCDDelay()
11092 romptr += (temp * 2); in SetOEMLCDDelay()
11093 romptr = SISGETROMW(romptr); in SetOEMLCDDelay()
11094 romptr += index; in SetOEMLCDDelay()
11095 temp = ROMAddr[romptr]; in SetOEMLCDDelay()
11105 if(romptr) { in SetOEMLCDDelay()
11106 romptr += (temp * 2); in SetOEMLCDDelay()
11107 romptr = SISGETROMW(romptr); in SetOEMLCDDelay()
11108 romptr += index; in SetOEMLCDDelay()
11109 temp = ROMAddr[romptr]; in SetOEMLCDDelay()
11115 romptr = ROMAddr[0x249] | (ROMAddr[0x24a] << 8); in SetOEMLCDDelay()
11116 if(romptr) { in SetOEMLCDDelay()
11117 romptr += (temp * 2); in SetOEMLCDDelay()
11118 romptr = SISGETROMW(romptr); in SetOEMLCDDelay()
11119 romptr += index; in SetOEMLCDDelay()
11120 temp = ROMAddr[romptr]; in SetOEMLCDDelay()
11187 unsigned short index,temp,romptr=0; in SetOEMTVDelay() local
11192 romptr = SISGETROMW(0x241); in SetOEMTVDelay()
11199 if(romptr) { in SetOEMTVDelay()
11200 romptr += (temp * 2); in SetOEMTVDelay()
11201 romptr = SISGETROMW(romptr); in SetOEMTVDelay()
11202 romptr += index; in SetOEMTVDelay()
11203 temp = ROMAddr[romptr]; in SetOEMTVDelay()
11219 unsigned short index,temp,romptr=0; in SetOEMAntiFlicker() local
11224 romptr = SISGETROMW(0x243); in SetOEMAntiFlicker()
11231 if(romptr) { in SetOEMAntiFlicker()
11232 romptr += (temp * 2); in SetOEMAntiFlicker()
11233 romptr = SISGETROMW(romptr); in SetOEMAntiFlicker()
11234 romptr += index; in SetOEMAntiFlicker()
11235 temp = ROMAddr[romptr]; in SetOEMAntiFlicker()
11247 unsigned short index,i,j,temp,romptr=0; in SetOEMPhaseIncr() local
11256 romptr = SISGETROMW(0x245); in SetOEMPhaseIncr()
11268 if(romptr) { in SetOEMPhaseIncr()
11269 romptr += (temp * 2); in SetOEMPhaseIncr()
11270 romptr = SISGETROMW(romptr); in SetOEMPhaseIncr()
11271 romptr += (index * 4); in SetOEMPhaseIncr()
11273 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); in SetOEMPhaseIncr()
11287 unsigned short index,temp,i,j,romptr=0; in SetOEMYFilter() local
11294 romptr = SISGETROMW(0x247); in SetOEMYFilter()
11313 if((romptr) && (!(SiS_Pr->SiS_TVMode & (TVSetPALM|TVSetPALN)))) { in SetOEMYFilter()
11314 romptr += (temp * 2); in SetOEMYFilter()
11315 romptr = SISGETROMW(romptr); in SetOEMYFilter()
11316 romptr += (index * 4); in SetOEMYFilter()
11318 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); in SetOEMYFilter()