Lines Matching refs:XR
5194 ChipsSave->XR[i] = cPtr->readXR(cPtr,i);
5196 ErrorF("XS%X - %X\n", i, ChipsSave->XR[i]);
5221 ChipsSave->XR[i] = cPtr->readXR(cPtr, i);
5223 ErrorF("XS%X - %X\n", i, ChipsSave->XR[i]);
5353 ChipsNew->XR[i] = cPtr->readXR(cPtr, i);
5399 ChipsNew->XR[0x0A] |= 0x1;
5402 ChipsNew->XR[0x0A] &= 0xCF;
5405 ChipsNew->XR[0x0A] |= 0x10;
5408 ChipsNew->XR[0x09] |= 0x1; /* Enable extended CRT registers */
5409 ChipsNew->XR[0x0E] = 0; /* Single map */
5410 ChipsNew->XR[0x40] |= 0x2; /* Don't wrap at 256kb */
5411 ChipsNew->XR[0x81] &= 0xF8;
5413 ChipsNew->XR[0x40] |= 0x1; /* High Resolution. XR40[1] reserved? */
5414 ChipsNew->XR[0x81] |= 0x2; /* 256 Color Video */
5416 ChipsNew->XR[0x80] |= 0x10; /* Enable cursor output on P0 and P1 */
5419 ChipsNew->XR[0x80] |= 0x80;
5421 ChipsNew->XR[0x80] &= ~0x80;
5426 ChipsNew->XR[0xCC] = cPtr->MemClock.xrCC;
5427 ChipsNew->XR[0xCD] = cPtr->MemClock.xrCD;
5428 ChipsNew->XR[0xCE] = cPtr->MemClock.xrCE;
5452 ChipsNew->XR[0x0A] |= 0x02; /* Linear Addressing Mode */
5453 ChipsNew->XR[0x20] = 0x0; /*BitBLT Draw Mode for 8 */
5454 ChipsNew->XR[0x05] =
5456 ChipsNew->XR[0x06] =
5518 ChipsNew->XR[0xA0] = 0x10; /* Disable cursor stretching */
5522 ChipsNew->XR[0xA0] = 0x70; /* Enable cursor stretching */
5545 ChipsNew->XR[0x82] |=0x02;
5548 ChipsNew->XR[0xE2] = chipsVideoMode((pScrn->depth), (cPtr->PanelType & ChipsLCD) ?
5552 ErrorF("VESA Mode: %Xh\n", ChipsNew->XR[0xE2]);
5587 ChipsNew->XR[0x81] = (ChipsNew->XR[0x81] & 0xF0) | 0x4;
5589 ChipsNew->XR[0x82] |= 0x0C;
5592 ChipsNew->XR[0x20] = 0x10; /*BitBLT Draw Mode for 16 bpp */
5594 ChipsNew->XR[0x81] |= 0x01; /*16bpp */
5596 ChipsNew->XR[0x81] = (ChipsNew->XR[0x81] & 0xF0) | 0x6;
5598 ChipsNew->XR[0x82] |= 0x0C;
5600 ChipsNew->XR[0x20] = 0x20; /*BitBLT Draw Mode for 24 bpp */
5602 ChipsNew->XR[0x81] = (ChipsNew->XR[0x81] & 0xF0) | 0x7;
5604 ChipsNew->XR[0x82] |= 0x0C;
5606 ChipsNew->XR[0x20] = 0x10; /*BitBLT Mode for 16bpp used at 32bpp */
5737 ChipsNew->XR[0xD0] &= 0x0f;
5741 ChipsNew->XR[0xD0] |= 0x10; /* Force the Multimedia engine on */
5744 ChipsNew->XR[0x4F] = 0x2A; /* SAR04 >352 pixel overlay width */
5867 ChipsNew->XR[i] = cPtr->readXR(cPtr, i);
5896 ChipsNew->XR[0x0D] = (tmp & 0x80) >> 5;
5898 ChipsNew->XR[0x04] |= 4; /* enable addr counter bits 16-17 */
5903 ChipsNew->XR[0x0B] |= 0x07; /* extended mode, dual pages enabled */
5904 ChipsNew->XR[0x0B] &= ~0x10; /* linear mode off */
5914 ChipsNew->XR[0x10] = 0; /* XR10: Single/low map */
5915 ChipsNew->XR[0x11] = 0; /* XR11: High map */
5916 ChipsNew->XR[0x0C] &= ~0x50; /* MSB for XR10 & XR11 */
5918 ChipsNew->XR[0x28] |= 0x10; /* 256-color video */
5920 ChipsNew->XR[0x28] &= 0xEF; /* 16-color video */
5924 ChipsNew->XR[0x17] = ((((mode->CrtcHTotal >> 3) - 5) & 0x100) >> 8)
5932 ChipsNew->XR[0x16] = (((mode->CrtcVTotal -2) & 0x400) >> 10 )
5938 ChipsNew->XR[0x2B] = chipsVideoMode(pScrn->depth, mode->CrtcHDisplay, mode->CrtcVDisplay);
5940 ErrorF("VESA Mode: %Xh\n", ChipsNew->XR[0x2B]);
5946 ChipsNew->XR[0x0B] &= 0xFD; /* dual page clear */
5947 ChipsNew->XR[0x0B] |= 0x10; /* linear mode on */
5949 ChipsNew->XR[0x08] =
5951 ChipsNew->XR[0x09] =
5955 ChipsNew->XR[0x40] = 0x01; /*BitBLT Draw Mode for 8 and 24 bpp */
5959 ChipsNew->XR[0x52] |= 0x01; /* Refresh count */
5960 ChipsNew->XR[0x0F] &= 0xEF; /* not Hi-/True-Colour */
5961 ChipsNew->XR[0x02] &= 0xE7; /* Attr. Cont. default access */
5963 ChipsNew->XR[0x06] &= 0xF3; /* bpp clear */
5992 ChipsNew->XR[0x06] |= 0xC4; /*15 or 16 bpp colour */
5993 ChipsNew->XR[0x0F] |= 0x10; /*Hi-/True-Colour */
5994 ChipsNew->XR[0x40] = 0x02; /*BitBLT Draw Mode for 16 bpp */
5996 ChipsNew->XR[0x06] |= 0x08; /*16bpp */
5998 ChipsNew->XR[0x06] |= 0xC8; /*24 bpp colour */
5999 ChipsNew->XR[0x0F] |= 0x10; /*Hi-/True-Colour */
6004 ChipsNew->XR[0x28] |= 0x20; /* set interlace */
6008 ChipsNew->XR[0x19] = tmp & 0xFF;
6009 ChipsNew->XR[0x17] |= ((tmp & 0x100) >> 1); /* overflow */
6010 ChipsNew->XR[0x0F] &= ~0x40; /* set SW-Flag */
6012 ChipsNew->XR[0x28] &= ~0x20; /* unset interlace */
6013 ChipsNew->XR[0x0F] |= 0x40; /* set SW-Flag */
6109 ChipsNew->XR[i] = cPtr->readXR(cPtr, i);
6133 ChipsNew->XR[0x1E] = ChipsStd->CRTC[0x13]; /* alternate offset */
6139 ChipsNew->XR[0x0D] = (tmp & 0x01) | ((tmp << 1) & 0x02) ;
6141 ChipsNew->XR[0x04] |= 4; /* enable addr counter bits 16-17 */
6146 ChipsNew->XR[0x0B] |= 0x07; /* extended mode, dual pages enabled */
6147 ChipsNew->XR[0x0B] &= ~0x10; /* linear mode off */
6157 ChipsNew->XR[0x10] = 0; /* XR10: Single/low map */
6158 ChipsNew->XR[0x11] = 0; /* XR11: High map */
6160 ChipsNew->XR[0x28] |= 0x10; /* 256-color video */
6162 ChipsNew->XR[0x28] &= 0xEF; /* 16-color video */
6167 ChipsNew->XR[0x17] = ((((mode->CrtcHTotal >> 3) - 5) & 0x100) >> 8)
6174 ChipsNew->XR[0x16] = (((mode->CrtcVTotal -2) & 0x400) >> 10 )
6230 ChipsNew->XR[0x17] = (((lcdHTotal) & 0x100) >> 8)
6235 ChipsNew->XR[0x19] = lcdHRetraceStart & 0xFF;
6236 ChipsNew->XR[0x1A] = lcdHRetraceEnd & 0x1F;
6242 ChipsNew->XR[0x1B] = lcdHTotal & 0xFF;
6250 ChipsNew->XR[0x1C] = lcdHDisplay & 0xFF;
6255 ChipsNew->XR[0x21] = lcdHRetraceStart & 0xFF;
6256 ChipsNew->XR[0x22] = lcdHRetraceEnd & 0x1F;
6257 ChipsNew->XR[0x23] = lcdHTotal & 0xFF;
6265 ChipsNew->XR[0x64] = lcdVTotal & 0xFF;
6266 ChipsNew->XR[0x66] = lcdVRetraceStart & 0xFF;
6267 ChipsNew->XR[0x67] = lcdVRetraceEnd & 0x0F;
6268 ChipsNew->XR[0x68] = lcdVDisplay & 0xFF;
6269 ChipsNew->XR[0x65] = ((lcdVTotal & 0x100) >> 8)
6285 tmp = ((cPtr->PanelType & ChipsDD) && !(ChipsNew->XR[0x6F] & 0x02))
6296 if ((unsigned)ChipsNew->XR[0x2C] < ((cPtr->PanelSize.VTotal -
6298 ChipsNew->XR[0x2C]))
6299 ChipsNew->XR[0x2F] |= 0x80; /* turn FLM delay off */
6300 ChipsNew->XR[0x2C] = lcdVTotal - lcdVRetraceStart - tmp;
6301 /*ChipsNew->XR[0x2D] = (HSyncStart >> (3 - tmp)) & 0xFF;*/
6302 ChipsNew->XR[0x2D] = (HDisplay >> (3 - tmp)) & 0xFF;
6303 ChipsNew->XR[0x2F] = (ChipsNew->XR[0x2F] & 0xDF)
6309 ChipsNew->XR[0x51] |= 0x40; /* enable FP compensation */
6310 ChipsNew->XR[0x55] |= 0x01; /* enable horiz. compensation */
6311 ChipsNew->XR[0x57] |= 0x01; /* enable horiz. compensation */
6315 ChipsNew->XR[0x55] |= 0x02; /* enable auto h-centering */
6317 ChipsNew->XR[0x55] &= 0xFD; /* disable auto h-centering */
6319 ChipsNew->XR[0x56] = (lcdHDisplay - CrtcHDisplay) >> 1;
6322 ChipsNew->XR[0x55] &= 0xFD; /* disable h-centering */
6323 ChipsNew->XR[0x56] = 0;
6325 ChipsNew->XR[0x57] = 0x03; /* enable v-comp disable v-stretch */
6328 ChipsNew->XR[0x55] |= 0x20; /* enable h-comp disable h-double*/
6329 ChipsNew->XR[0x57] |= 0x60; /* Enable vertical stretching */
6346 ChipsNew->XR[0x5A] = tmp > 0x0F ? 0 : (unsigned char)tmp;
6348 ChipsNew->XR[0x55] &= 0xDF; /* disable h-comp, h-double */
6349 ChipsNew->XR[0x57] &= 0x9F; /* disable vertical stretching */
6355 ChipsNew->XR[0x2B] = chipsVideoMode(pScrn->depth, (cPtr->PanelType & ChipsLCD) ?
6358 ErrorF("VESA Mode: %Xh\n", ChipsNew->XR[0x2B]);
6364 ChipsNew->XR[0x0B] &= 0xFD; /* dual page clear */
6365 ChipsNew->XR[0x0B] |= 0x10; /* linear mode on */
6367 ChipsNew->XR[0x08] = (unsigned char)(cPtr->FbAddress >> 17);
6369 ChipsNew->XR[0x08] = (unsigned char)(cPtr->FbAddress >> 20);
6375 ChipsNew->XR[0x04] &= ~0x40; /* A19 sceme */
6377 ChipsNew->XR[0x04] |= 0x40; /* MEMR/MEMW sceme */
6381 ChipsNew->XR[0x03] |= 0x08; /* High bandwidth on 65548 */
6382 ChipsNew->XR[0x40] = 0x01; /*BitBLT Draw Mode for 8 and 24 bpp */
6386 ChipsNew->XR[0x52] |= 0x01; /* Refresh count */
6387 ChipsNew->XR[0x0F] &= 0xEF; /* not Hi-/True-Colour */
6388 ChipsNew->XR[0x02] |= 0x01; /* 16bit CPU Memory Access */
6389 ChipsNew->XR[0x02] &= 0xE3; /* Attr. Cont. default access */
6391 ChipsNew->XR[0x06] &= 0xF3; /* bpp clear */
6395 ChipsNew->XR[0x03] |= 0x40; /*PCI burst */
6402 ChipsNew->XR[0x55] &= 0xBF; /* CRT Hsync positive */
6404 ChipsNew->XR[0x55] |= 0x40; /* CRT Hsync negative */
6409 ChipsNew->XR[0x55] &= 0x7F; /* CRT Vsync positive */
6411 ChipsNew->XR[0x55] |= 0x80; /* CRT Vsync negative */
6443 ChipsNew->XR[0x06] |= 0xC4; /*15 or 16 bpp colour */
6444 ChipsNew->XR[0x0F] |= 0x10; /*Hi-/True-Colour */
6445 ChipsNew->XR[0x40] = 0x02; /*BitBLT Draw Mode for 16 bpp */
6447 ChipsNew->XR[0x06] |= 0x08; /*16bpp */
6449 ChipsNew->XR[0x06] |= 0xC8; /*24 bpp colour */
6450 ChipsNew->XR[0x0F] |= 0x10; /*Hi-/True-Colour */
6452 ChipsNew->XR[0x50] &= 0x7F; /*18 bit TFT data width */
6454 ChipsNew->XR[0x50] |= 0x80; /*24 bit TFT data width */
6461 ChipsNew->XR[0x28] |= 0x20; /* set interlace */
6466 ChipsNew->XR[0x19] = tmp & 0xFF;
6468 ChipsNew->XR[0x29] = tmp & 0xFF;
6469 ChipsNew->XR[0x0F] &= ~0x40; /* set SW-Flag */
6471 ChipsNew->XR[0x28] &= ~0x20; /* unset interlace */
6472 ChipsNew->XR[0x0F] |= 0x40; /* set SW-Flag */
6478 ChipsNew->XR[0x50] &= ~0x03; /* FRC clear */
6479 ChipsNew->XR[0x50] |= 0x01; /* 16 frame FRC */
6480 ChipsNew->XR[0x50] &= ~0x0C; /* Dither clear */
6481 ChipsNew->XR[0x50] |= 0x08; /* Dither all modes */
6483 ChipsNew->XR[0x03] |= 0x20; /* CRT I/F priority */
6484 ChipsNew->XR[0x04] |= 0x10; /* RAS precharge 65548 */
6493 ChipsNew->XR[0x03] |= 0x10; /* do not hold off CPU for palette acc*/
6496 ChipsNew->XR[0x05] |= 0x80; /* EDO RAM enable */
6501 ChipsNew->XR[0x51] |= 0x04;
6503 ChipsNew->XR[0x51] &= ~0x04;
6597 chipsRestoreStretching(pScrn, (unsigned char)ChipsReg->XR[0x55],
6598 (unsigned char)ChipsReg->XR[0x57]);
6614 if (IS_HiQV(cPtr) && (ChipsReg->XR[0x09] & 0x1) == 0x1) {
6643 if ((cPtr->readXR(cPtr, i)) != Regs->XR[i])
6644 cPtr->writeXR(cPtr, i, Regs->XR[i]);
6651 if (cPtr->readXR(cPtr, 0x4F) != Regs->XR[0x4F])
6652 cPtr->writeXR(cPtr, 0x4F, Regs->XR[0x4F]);
6658 if ((cPtr->readXR(cPtr, i)) != Regs->XR[i])
6659 cPtr->writeXR(cPtr, i, Regs->XR[i]);
6666 if ((cPtr->readXR(cPtr, 0xCC)) != Regs->XR[0xCC])
6667 cPtr->writeXR(cPtr, 0xCC, Regs->XR[0xCC]);
6668 if ((cPtr->readXR(cPtr, 0xCD)) != Regs->XR[0xCD])
6669 cPtr->writeXR(cPtr, 0xCD, Regs->XR[0xCD]);
6670 if ((cPtr->readXR(cPtr, 0xCE)) != Regs->XR[0xCE])
6671 cPtr->writeXR(cPtr, 0xCE, Regs->XR[0xCE]);
6675 if ((cPtr->readXR(cPtr, i)) != Regs->XR[i])
6676 cPtr->writeXR(cPtr, i, Regs->XR[i]);
6731 if ((cPtr->readXR(cPtr, i)) != Regs->XR[i])
6732 cPtr->writeXR(cPtr, i, Regs->XR[i]);
6737 if ((cPtr->readXR(cPtr, i)) != Regs->XR[i])
6738 cPtr->writeXR(cPtr, i, Regs->XR[i]);
6741 cPtr->writeXR(cPtr, 0x54, ((Regs->XR[0x54] & 0xF3) | (tmp & ~0xF3)));
6742 cPtr->writeXR(cPtr, 0x55, Regs->XR[0x55] & 0xFE); /* h-comp off */
6743 cPtr->writeXR(cPtr, 0x56, Regs->XR[0x56]);
6744 cPtr->writeXR(cPtr, 0x57, Regs->XR[0x57] & 0xFE); /* v-comp off */
6746 if ((cPtr->readXR(cPtr, i)) != Regs->XR[i])
6747 cPtr->writeXR(cPtr, i, Regs->XR[i]);
6754 ErrorF("XR%X - %X : %X\n", i, Regs->XR[i],
6763 ErrorF("XR%X - %X : %X\n", i, Regs->XR[i],