| /xsrc/external/mit/xf86-video-apm/dist/src/ |
| H A D | apm_driver.c | 53 static void ApmUnlock(ApmPtr pApm); 54 static void ApmLock(ApmPtr pApm); 200 ApmUnlock(ApmPtr pApm) argument 202 if (pApm->Chipset >= AT3D) 205 wrinx(pApm->xport, 0x10, 0x12); 210 ApmLock(ApmPtr pApm) argument 212 if (pApm->Chipset >= AT3D) 213 ApmWriteSeq(0x10, pApm->savedSR10 ? 0 : 0x12); 215 wrinx(pApm->xport, 0x10, pApm 1255 comp_lmn(ApmPtr pApm,long clock) argument [all...] |
| H A D | apm_i2c.c | 11 WaitForFifo(ApmPtr pApm, int slots) argument 13 if (!pApm->UsePCIRetry) { 35 ApmPtr pApm = ((ApmPtr)b->DriverPrivate.ptr); local in function:ApmI2CPutBits 37 lock = rdinx(pApm->xport, 0x10); 38 wrinx(pApm->xport, 0x10, 0x12); 39 WaitForFifo(pApm, 2); 45 wrinx(pApm->xport, 0x10, 0); 53 ApmPtr pApm = ((ApmPtr)b->DriverPrivate.ptr); local in function:ApmI2CGetBits 56 lock = rdinx(pApm->xport, 0x10); 57 wrinx(pApm [all...] |
| H A D | apm_cursor.c | 35 WaitForFifo(ApmPtr pApm, int slots) argument 37 if (!pApm->UsePCIRetry) { 55 void ApmHWCursorReserveSpace(ApmPtr pApm) argument 57 pApm->OffscreenReserved += 2 * CURSORALIGN; 58 pApm->DisplayedCursorAddress = pApm->BaseCursorAddress = 59 pApm->CursorAddress = 1024 * xf86ScreenToScrn(pApm->pScreen)->videoRam - 60 pApm->OffscreenReserved; 75 pApm [all...] |
| H A D | apm_accel.c | 48 struct ApmStippleCacheRec *pApm = (struct ApmStippleCacheRec *)to->devPrivate.ptr; local in function:ApmMoveStipple 50 pApm->apmStippleCache.x = to->box.x1; 51 pApm->apmStippleCache.y += to->box.y1 - from->box.y1; 76 if ((pApm->apmCache[i].apmStippleCache.serialNumber == pPix->drawable.serialNumber) 77 && pApm->apmCache[i].apmStippleCached && 78 (pApm->apmCache[i].apmStippleCache.fg == -1) && 79 (pApm->apmCache[i].apmStippleCache.bg == -1)) { 80 pApm->apmCache[i].apmStippleCache.trans_color = -1; 81 return &pApm->apmCache[i].apmStippleCache; 83 if ((i = ++pApm 206 ApmAccelReserveSpace(ApmPtr pApm) argument 339 ApmSetupXAAInfo(ApmPtr pApm,XAAInfoRecPtr pXAAinfo) argument [all...] |
| H A D | apm_funcs.c | 26 #define SETSOURCEXY(x,y) do { int off = ((((y) & 0xFFFF) * pApm->CurrentLayout.displayWidth + ((x) & 0x3FFF)) * 3); SETSOURCEOFF(((off & 0xFFF000) << 4) | (off & 0xFFF)); break;} while(1) 27 #define SETDESTXY(x,y) do { int off = ((((y) & 0xFFFF) * pApm->CurrentLayout.displayWidth + ((x) & 0x3FFF)) * 3); SETDESTOFF(((off & 0xFFF000) << 4) | (off & 0xFFF)); break;} while(1) 30 #define UPDATEDEST(x,y) (void)(curr32[0x54 / 4] = ((((y) & 0xFFFF) * pApm->CurrentLayout.displayWidth + ((x) & 0xFFFF)) * 3)) 101 A(WaitForFifo)(ApmPtr pApm, int slots) 103 if (!pApm->UsePCIRetry) { 129 A(WaitForFifo)(pApm, 3 + pApm->apmClip); 131 pApm->CurrentLayout.Setup_DEC); 133 A(WaitForFifo)(pApm, 2 + pApm [all...] |
| H A D | apm_dga.c | 56 static __inline__ int FindSmallestPitch(ApmPtr pApm, int Bpp, int width) argument 95 pitch = FindSmallestPitch(pApm, Bpp, pMode->HDisplay); 98 if (!reduced_pitch && pitch == FindSmallestPitch(pApm, Bpp, pMode->HDisplay)) 104 (size <= pScrn->videoRam * 1024 - pApm->OffscreenReserved)) { 120 if(!pApm->NoAccel) { 142 mode->address = pApm->FbBase; 146 pApm->OffscreenReserved) / mode->bytesPerScanline; 229 pApm->numDGAModes = num; 230 pApm->DGAModes = modes; 242 if (pApm [all...] |
| H A D | apm_regs.h | 27 #define RDXB_M(addr) (MMIO_IN8 (pApm->MemMap, (addr))) 28 #define RDXW_M(addr) (MMIO_IN16(pApm->MemMap, (addr))) 29 #define RDXL_M(addr) (MMIO_IN32(pApm->MemMap, (addr))) 31 MMIO_OUT8 (pApm->MemMap, (addr), (val)); \ 32 /*xf86DrvMsg(xf86ScreenToScrn(pApm->pScreen)->scrnIndex, X_INFO, \ 37 MMIO_OUT16(pApm->MemMap, (addr), (val)); \ 38 /*xf86DrvMsg(xf86ScreenToScrn(pApm->pScreen)->scrnIndex, X_INFO, \ 43 MMIO_OUT32(pApm->MemMap, (addr), (val)); \ 44 /*xf86DrvMsg(xf86ScreenToScrn(pApm->pScreen)->scrnIndex, X_INFO, \ 50 #define RDXB_IOP(addr) (wrinx(pApm [all...] |
| H A D | apm_video.c | 55 if (pApm->Chipset >= AT24) { 272 ApmPtr pApm; member in struct:__anon45ffff9f0108 288 A(WaitForFifo)(pApm, 2); 289 ((ApmPortPrivPtr)pApm->adaptor->pPortPrivates[0].ptr)->on = 0; 290 ((ApmPortPrivPtr)pApm->adaptor->pPortPrivates[1].ptr)->on = 0; 319 pPriv->pApm = pApm; 320 pPriv[1].pApm = pApm; 352 pApm 490 ApmPtr pApm = pPriv->pApm; local in function:A 501 ApmPtr pApm = pPriv->pApm; local in function:A [all...] |
| H A D | apm.h | 183 #define curr ((unsigned char *)pApm->regcurr) 214 #define APMDECL(p) ApmPtr pApm = ((ApmPtr)(((ScrnInfoPtr)(p))->driverPrivate)) 225 extern void ApmSetupXAAInfo(ApmPtr pApm, XAAInfoRecPtr pXAAinfo); 229 extern void ApmHWCursorReserveSpace(ApmPtr pApm); 230 extern void ApmAccelReserveSpace(ApmPtr pApm);
|