H A D | vb_setmode.c | 175 unsigned short tempax, tempbx, resinfo, modeflag, infoflag; XGI_AjustCRT2Rate() local 180 tempax = 0; XGI_AjustCRT2Rate() 183 tempax |= SupportRAMDAC2; XGI_AjustCRT2Rate() 186 tempax |= SupportCRT2in301C; XGI_AjustCRT2Rate() 191 tempax |= SupportLCD; XGI_AjustCRT2Rate() 201 tempax |= SupportHiVision; XGI_AjustCRT2Rate() 210 tempax |= SupportTV; XGI_AjustCRT2Rate() 214 tempax |= SupportTV1024; XGI_AjustCRT2Rate() 227 if (infoflag & tempax) XGI_AjustCRT2Rate() 242 if (infoflag & tempax) XGI_AjustCRT2Rate() 685 unsigned short resindex, tempax, tempbx, tempcx, temp, modeflag; XGI_SetCRT1DE() local 692 tempax = XGI330_ModeResInfo[resindex].HTotal; XGI_SetCRT1DE() 696 tempax >>= 1; XGI_SetCRT1DE() 699 tempax <<= 1; XGI_SetCRT1DE() 711 tempax /= tempcx; XGI_SetCRT1DE() 712 tempax -= 1; XGI_SetCRT1DE() 714 tempcx = tempax; XGI_SetCRT1DE() 723 tempax = 0; XGI_SetCRT1DE() 727 tempax |= 0x02; XGI_SetCRT1DE() 730 tempax |= 0x40; XGI_SetCRT1DE() 732 xgifb_reg_and_or(pVBInfo->P3d4, 0x07, ~0x42, tempax); XGI_SetCRT1DE() 734 tempax = 0; XGI_SetCRT1DE() 737 tempax |= 0x02; XGI_SetCRT1DE() 739 xgifb_reg_and_or(pVBInfo->P3d4, 0x0a, ~0x02, tempax); XGI_SetCRT1DE() 1405 unsigned short tempbx, tempax, tempcx, tempdx, push1, push2, modeflag; XGI_SetLVDSRegs() local 1412 XGI_GetLCDSync(&tempax, &tempbx, pVBInfo); XGI_SetLVDSRegs() 1414 push2 = tempax; XGI_SetLVDSRegs() 1419 tempax = 1024; XGI_SetLVDSRegs() 1423 tempax = 1280; XGI_SetLVDSRegs() 1426 tempax = 1400; XGI_SetLVDSRegs() 1429 tempax = 1600; XGI_SetLVDSRegs() 1434 pVBInfo->HDE = tempax; XGI_SetLVDSRegs() 1436 pVBInfo->VGAHDE = tempax; XGI_SetLVDSRegs() 1440 tempax = pVBInfo->HT; XGI_SetLVDSRegs() 1448 if (tempcx >= tempax) XGI_SetLVDSRegs() 1449 tempcx -= tempax; XGI_SetLVDSRegs() 1461 tempax = pVBInfo->HT; XGI_SetLVDSRegs() 1472 if (tempcx >= tempax) XGI_SetLVDSRegs() 1473 tempcx -= tempax; XGI_SetLVDSRegs() 1475 tempax = tempbx & 0x07; XGI_SetLVDSRegs() 1476 tempax >>= 5; XGI_SetLVDSRegs() 1481 tempax |= tempcx; XGI_SetLVDSRegs() 1483 xgifb_reg_set(pVBInfo->Part1Port, 0x15, tempax); XGI_SetLVDSRegs() 1487 tempax = pVBInfo->VT; XGI_SetLVDSRegs() 1493 if (tempcx >= tempax) XGI_SetLVDSRegs() 1494 tempcx -= tempax; XGI_SetLVDSRegs() 1508 tempax = pVBInfo->VT; XGI_SetLVDSRegs() 1517 if (tempcx >= tempax) XGI_SetLVDSRegs() 1518 tempcx -= tempax; XGI_SetLVDSRegs() 1525 tempax = ((tempbx >> 8) & 0x07) << 3; XGI_SetLVDSRegs() 1529 tempax |= 0x40; XGI_SetLVDSRegs() 1532 tempax |= 0x40; XGI_SetLVDSRegs() 1535 tempax); XGI_SetLVDSRegs() 1538 tempax = pVBInfo->VGAVDE; XGI_SetLVDSRegs() 1540 temp = tempax; /* 0430 ylshieh */ XGI_SetLVDSRegs() 1557 tempax = tempbx & 0x03; XGI_SetLVDSRegs() 1561 tempax |= 0x04; XGI_SetLVDSRegs() 1563 xgifb_reg_set(pVBInfo->Part1Port, 0x35, tempax); XGI_SetLVDSRegs() 1594 tempax = (unsigned short) (temp1 / tempbx); XGI_SetLVDSRegs() 1597 tempax = 65535; XGI_SetLVDSRegs() 1599 temp3 = tempax; XGI_SetLVDSRegs() 1608 tempax = (unsigned short) (temp3 & 0xff); XGI_SetLVDSRegs() 1609 xgifb_reg_set(pVBInfo->Part1Port, 0x1f, tempax); XGI_SetLVDSRegs() 1618 tempax = ((tempbx >> 8) & 0xff) << 3; XGI_SetLVDSRegs() 1619 tempax |= (unsigned short) ((temp3 >> 8) & 0x07); XGI_SetLVDSRegs() 1621 (unsigned short) (tempax & 0xff)); XGI_SetLVDSRegs() 1770 unsigned short tempcl, tempch, temp, tempbl, tempax; XGI_UpdateModeInfo() local 1792 tempax = xgifb_reg_get(pVBInfo->Part1Port, 0x13); XGI_UpdateModeInfo() 1793 if (tempax & 0x04) XGI_UpdateModeInfo() 1897 unsigned short tempax, push, tempbx, temp, modeflag; XGI_GetVBInfo() local 1913 tempax = temp << 8; XGI_GetVBInfo() 1914 tempbx = tempbx | tempax; XGI_GetVBInfo() 1945 tempax = push; /* restore CR31 */ XGI_GetVBInfo() 1950 tempax |= DisableCRT2Display; XGI_GetVBInfo() 1996 if (tempax & DisableCRT2Display) { /* Set Display Device Info */ XGI_GetVBInfo() 2089 unsigned short temp, tempax, tempbx, resinfo = 0, LCDIdIndex; XGI_GetLCDInfo() local 2106 tempax = xgifb_reg_get(pVBInfo->P3d4, 0x33); XGI_GetLCDInfo() 2108 tempax &= 0x0F; XGI_GetLCDInfo() 2110 tempax >>= 4; XGI_GetLCDInfo() 2113 if (tempax >= 3) XGI_GetLCDInfo() 2116 if (tempax >= 4) XGI_GetLCDInfo() 2139 tempax = pVBInfo->LCDCapList[LCDIdIndex].LCD_Capability; XGI_GetLCDInfo() 2142 (pVBInfo->VBType & VB_XGI301C)) && (tempax & XGI_LCDDualLink)) XGI_GetLCDInfo() 2482 unsigned short tempax, tempbx, temp1, temp2, modeflag = 0, tempcx, XGI_GetRAMDAC2DATA() local 2492 tempax = (temp1 & 0xFF) | ((temp2 & 0x03) << 8); XGI_GetRAMDAC2DATA() 2506 tempax += 5; XGI_GetRAMDAC2DATA() 2509 tempax *= 8; XGI_GetRAMDAC2DATA() 2511 tempax *= 9; XGI_GetRAMDAC2DATA() 2513 pVBInfo->VGAHT = tempax; XGI_GetRAMDAC2DATA() 2514 pVBInfo->HT = tempax; XGI_GetRAMDAC2DATA() 2524 unsigned short tempax = 0, tempbx = 0, modeflag, resinfo; XGI_GetCRT2Data() local 2551 tempax = 1024; XGI_GetCRT2Data() 2565 tempax = 1024; XGI_GetCRT2Data() 2568 tempax = 1280; XGI_GetCRT2Data() 2578 tempax = 1280; XGI_GetCRT2Data() 2581 tempax = 1280; XGI_GetCRT2Data() 2591 tempax = 1400; XGI_GetCRT2Data() 2595 tempax = 1280; XGI_GetCRT2Data() 2599 tempax = 1600; XGI_GetCRT2Data() 2610 tempax = pVBInfo->VGAHDE; XGI_GetCRT2Data() 2614 pVBInfo->HDE = tempax; XGI_GetCRT2Data() 2645 tempax = ExtHiTVHT; XGI_GetCRT2Data() 2650 tempax = StHiTVHT; XGI_GetCRT2Data() 2654 tempax = StHiTextTVHT; XGI_GetCRT2Data() 2661 tempax = YPbPrTV750pHT; /* Ext750pTVHT */ XGI_GetCRT2Data() 2666 tempax = YPbPrTV525pHT; /* Ext525pTVHT */ XGI_GetCRT2Data() 2669 tempax = YPbPrTV525iHT; /* Ext525iTVHT */ XGI_GetCRT2Data() 2672 tempax = NTSC1024x768HT; XGI_GetCRT2Data() 2675 tempax = PALHT; XGI_GetCRT2Data() 2678 tempax = NTSCHT; XGI_GetCRT2Data() 2681 tempax = NTSC1024x768HT; XGI_GetCRT2Data() 2685 pVBInfo->HT = tempax; XGI_GetCRT2Data() 2810 unsigned short temp = 0, tempax = 0, tempbx = 0, tempcx = 0, XGI_SetGroup1() local 2889 tempax = (tempax & 0x00FF) | (tempbx & 0xFF00); XGI_SetGroup1() 2892 tempax |= (tempbx & 0xFF00); XGI_SetGroup1() 2893 temp = (tempax & 0xFF00) >> 8; XGI_SetGroup1() 2937 tempax = 0; XGI_SetGroup1() 2940 tempax |= 0x80; XGI_SetGroup1() 2943 tempax |= 0x40; XGI_SetGroup1() 2945 xgifb_reg_and_or(pVBInfo->Part1Port, 0x2C, ~0x0C0, tempax); XGI_SetGroup1() 2950 unsigned long tempax, tempbx; XGI_GetVGAHT2() local 2954 tempax = (pVBInfo->VT - pVBInfo->VDE) * pVBInfo->RVBHCFACT; XGI_GetVGAHT2() 2955 tempax = (tempax * pVBInfo->HT) / tempbx; XGI_GetVGAHT2() 2957 return (unsigned short) tempax; XGI_GetVGAHT2() 2963 unsigned short push1, push2, tempax, tempbx = 0, tempcx, temp, resinfo, XGI_SetLockRegs() local 2980 tempax = pVBInfo->VGAHDE; /* 0x04 Horizontal Display End */ XGI_SetLockRegs() 2983 tempax >>= 1; XGI_SetLockRegs() 2985 tempax = (tempax / tempcx) - 1; XGI_SetLockRegs() 2986 tempbx |= ((tempax & 0x00FF) << 8); XGI_SetLockRegs() 2987 temp = tempax & 0x00FF; XGI_SetLockRegs() 3009 tempax = pVBInfo->VGAHT; XGI_SetLockRegs() 3011 tempax = XGI_GetVGAHT2(pVBInfo); XGI_SetLockRegs() 3014 if (tempax >= pVBInfo->VGAHT) XGI_SetLockRegs() 3015 tempax = pVBInfo->VGAHT; XGI_SetLockRegs() 3018 tempax >>= 1; XGI_SetLockRegs() 3020 tempax = (tempax / tempcx) - 5; XGI_SetLockRegs() 3021 tempcx = tempax; /* 20030401 0x07 horizontal Retrace Start */ XGI_SetLockRegs() 3126 tempax = 0x000B; XGI_SetLockRegs() 3129 tempax |= 0x08000; XGI_SetLockRegs() 3134 temp = (tempax & 0xFF00) >> 8; XGI_SetLockRegs() 3143 tempax = push1; XGI_SetLockRegs() 3144 tempax -= tempbx; /* 0x0C Vertical Retrace Start */ XGI_SetLockRegs() 3145 tempax >>= 2; XGI_SetLockRegs() 3146 push1 = tempax; /* push ax */ XGI_SetLockRegs() 3149 tempax <<= 1; XGI_SetLockRegs() 3150 tempbx += tempax; XGI_SetLockRegs() 3181 tempax = push1; XGI_SetLockRegs() 3182 tempax >>= 2; XGI_SetLockRegs() 3183 tempax++; XGI_SetLockRegs() 3184 tempax += tempbx; XGI_SetLockRegs() 3185 push1 = tempax; /* push ax */ XGI_SetLockRegs() 3189 if (tempax >= 513) XGI_SetLockRegs() 3230 tempax = modeflag; XGI_SetLockRegs() 3231 temp = (tempax & 0xFF00) >> 8; XGI_SetLockRegs() 3253 unsigned short i, j, tempax, tempbx, tempcx, temp, push1, push2, XGI_SetGroup2() local 3262 tempax = 0; XGI_SetGroup2() 3265 tempax |= 0x0800; XGI_SetGroup2() 3268 tempax |= 0x0400; XGI_SetGroup2() 3271 tempax |= 0x0200; XGI_SetGroup2() 3274 tempax |= 0x1000; XGI_SetGroup2() 3277 tempax |= 0x0100; XGI_SetGroup2() 3280 tempax &= 0xfe00; XGI_SetGroup2() 3282 tempax = (tempax & 0xff00) >> 8; XGI_SetGroup2() 3284 xgifb_reg_set(pVBInfo->Part2Port, 0x0, tempax); XGI_SetGroup2() 3329 tempax = 520; XGI_SetGroup2() 3331 tempax = 440; XGI_SetGroup2() 3333 if (pVBInfo->VDE <= tempax) { XGI_SetGroup2() 3334 tempax -= pVBInfo->VDE; XGI_SetGroup2() 3335 tempax >>= 2; XGI_SetGroup2() 3336 tempax = (tempax & 0x00FF) | ((tempax & 0x00FF) << 8); XGI_SetGroup2() 3337 push1 = tempax; XGI_SetGroup2() 3338 temp = (tempax & 0xFF00) >> 8; XGI_SetGroup2() 3356 tempax = push1; XGI_SetGroup2() 3357 temp = (tempax & 0xFF00) >> 8; XGI_SetGroup2() 3445 tempax = XGI_GetVGAHT2(pVBInfo); XGI_SetGroup2() 3446 tempcx = tempax - 1; XGI_SetGroup2() 3543 tempax &= 0x00FF; XGI_SetGroup2() 3585 tempax = (unsigned short) tempeax; XGI_SetGroup2() 3590 tempcx = ((tempax & 0xFF00) >> 5) >> 8; XGI_SetGroup2() 3597 tempax = (unsigned short) (((tempeax & 0x000000FF) << 8) XGI_SetGroup2() 3598 | (tempax & 0x00FF)); XGI_SetGroup2() 3599 temp = (tempax & 0xFF00) >> 8; XGI_SetGroup2() 3601 temp = (tempax & 0x00FF) >> 8; XGI_SetGroup2() 3666 tempax = xgifb_reg_get(pVBInfo->Part2Port, 0x01); XGI_SetGroup2() 3667 tempax--; XGI_SetGroup2() 3668 xgifb_reg_and(pVBInfo->Part2Port, 0x01, tempax); XGI_SetGroup2() 3682 unsigned short pushbx, tempax, tempbx, tempcx, temp, tempah, XGI_SetLCDRegs() local 3755 tempax = pVBInfo->VT; XGI_SetLCDRegs() 3763 if (tempcx >= tempax) XGI_SetLCDRegs() 3764 tempcx -= tempax; /* lcdvdes */ XGI_SetLCDRegs() 3778 XGI_GetLCDSync(&tempax, &tempbx, pVBInfo); XGI_SetLCDRegs() 3780 tempax = pVBInfo->VT; XGI_SetLCDRegs() 3784 if (tempcx >= tempax) XGI_SetLCDRegs() 3785 tempcx -= tempax; XGI_SetLCDRegs() 3794 tempax = pVBInfo->HT; XGI_SetLCDRegs() 3799 tempax >>= 1; XGI_SetLCDRegs() 3812 if (tempcx >= tempax) XGI_SetLCDRegs() 3813 tempcx -= tempax; XGI_SetLCDRegs() 3824 XGI_GetLCDSync(&tempax, &tempbx, pVBInfo); XGI_SetLCDRegs() 3825 tempcx = tempax; XGI_SetLCDRegs() 3826 tempax = pVBInfo->HT; XGI_SetLCDRegs() 3829 tempax >>= 1; XGI_SetLCDRegs() 3839 if (tempcx >= tempax) XGI_SetLCDRegs() 3840 tempcx -= tempax; XGI_SetLCDRegs() 3885 unsigned short tempax, tempbx, i; XGI_GetTap4Ptr() local 3889 tempax = pVBInfo->VGAHDE; XGI_GetTap4Ptr() 3892 tempax = pVBInfo->VGAVDE; XGI_GetTap4Ptr() 3896 if (tempax <= tempbx) XGI_GetTap4Ptr() 3916 if (Tap4TimingPtr[i].DE == tempax) XGI_GetTap4Ptr() 4014 unsigned short tempax, tempcx, tempbx, modeflag, temp, temp2; XGI_SetGroup4() local 4119 tempax = pVBInfo->VGAHDE; XGI_SetGroup4() 4121 tempax >>= 1; XGI_SetGroup4() 4124 tempax >>= 1; XGI_SetGroup4() 4127 if (tempax > 800) XGI_SetGroup4() 4128 tempax -= 800; XGI_SetGroup4() 4131 tempax = (tempax * 25 / 32) - 1; XGI_SetGroup4() 4133 tempax = (tempax * 20 / 32) - 1; XGI_SetGroup4() 4135 tempax -= 1; XGI_SetGroup4() 4137 temp = (tempax & 0xFF00) >> 8; XGI_SetGroup4() 4140 temp = (tempax & 0x00FF); XGI_SetGroup4() 4435 unsigned short tempax; XGI_IsLCDON() local 4437 tempax = pVBInfo->VBInfo; XGI_IsLCDON() 4438 if (tempax & SetCRT2ToDualEdge) XGI_IsLCDON() 4440 else if (tempax & (DisableCRT2Display | SwitchCRT2 | SetSimuScanMode)) XGI_IsLCDON()
|