Lines Matching defs:pMga
231 MGAPtr pMga;
249 pMga = MGAPTR(pScrn);
254 pMga->pEnt = pMga1->pEnt;
256 /* Set pMga->device to the relevant Device section */
257 pMga->device = pMga1->device;
260 MGAProbeDDC(pScrn, pMga->pEnt->index); /*FIXME make sure this probes second monitor */
265 pMga->PciTag = pMga1->PciTag;
267 pMga->Primary = pMga1->Primary;
286 pMga->SecondCrtc = TRUE;
287 pMga->HWCursor = FALSE;
301 /* xf86ProcessOptions(pScrn->scrnIndex, pScrn->options, pMga->Options);*/
302 pMga->Options = pMga1->Options;
314 pMga->Chipset = pMga1->Chipset;
315 pMga->ChipRev = pMga1->ChipRev;
318 pMga->agpMode = pMga1->agpMode;
321 pMga->NoAccel = pMga1->NoAccel;
322 pMga->UsePCIRetry = pMga1->UsePCIRetry;
323 pMga->SyncOnGreen = pMga1->SyncOnGreen;
324 pMga->ShowCache = pMga1->ShowCache;
325 pMga->HasSDRAM = pMga1->HasSDRAM;
326 pMga->MemClk = pMga1->MemClk;
327 pMga->colorKey = pMga1->colorKey;
330 pMga->videoKey = pMga1->videoKey;
332 pMga->HWCursor = FALSE;
333 pMga->ShadowFB = FALSE;
334 pMga->FBDev = FALSE;
336 pMga->OverclockMem = pMga1->OverclockMem;
337 pMga->TexturedVideo = pMga1->TexturedVideo;
338 pMga->MergedFB = TRUE;
340 pMga->Rotate = 0;
342 switch (pMga->Chipset) {
367 pMga->FbAddress = pMga1->FbAddress;
368 pMga->PciInfo = pMga1->PciInfo;
370 pMga->IOAddress = pMga1->IOAddress;
371 pMga->ILOADAddress = pMga1->ILOADAddress;
372 pMga->BiosFrom = pMga1->BiosFrom;
373 pMga->BiosAddress = pMga1->BiosAddress;
383 pMga->HwBpp = pMga1->HwBpp;
388 if ( (!pMga->Primary && !pMga->FBDev) )
393 pMga->FbMapSize = pMga1->FbMapSize;
394 pMga->SrcOrg = pMga1->SrcOrg;
395 pMga->DstOrg = pMga1->DstOrg;
398 pMga->BppShifts[0] = 0;
399 pMga->BppShifts[1] = 1;
400 pMga->BppShifts[2] = 0;
401 pMga->BppShifts[3] = 2;
407 (*pMga->PreInit)(pScrn);
429 pMga->MinClock = pMga1->MinClock; /* XXX Guess, need to check this */
431 pMga->MinClock / 1000);
434 if (pMga->ChipRev >= 0x80 || (pMga->Chipset == PCI_CHIP_MGAG550)) {
436 pMga->MaxClock = 234000;
438 pMga->MaxClock = 135000;
441 pMga->MaxClock / 1000);
448 clockRanges->minClock = pMga->MinClock;
449 clockRanges->maxClock = pMga->MaxClock;
458 if (pMga->Dac.SetMemClk) {
459 if (pMga->MemClk == 0) {
460 pMga->MemClk = pMga->Dac.MemoryClock;
461 from = pMga->Dac.MemClkFrom;
465 pMga->MemClk / 1000.0);
484 switch(pMga->Chipset) {
486 if (!pMga->NoAccel) {
495 if (!pMga->NoAccel) {
526 pMga->Roundings[(pScrn->bitsPerPixel >> 3) - 1] *
530 pMga->FbMapSize,
537 if (i < 1 && pMga->FBDev) {
585 pMga->YDstOrg = pMga1->YDstOrg;
587 pMga->YDstOrg);
588 pMga->FbUsableSize = pMga1->FbUsableSize;
589 pMga->FbCursorOffset = pMga1->FbCursorOffset;
591 pMga->CurrentLayout.bitsPerPixel = pScrn->bitsPerPixel;
592 pMga->CurrentLayout.depth = pScrn->depth;
593 pMga->CurrentLayout.displayWidth = pScrn->displayWidth;
594 pMga->CurrentLayout.weight.red = pScrn->weight.red;
595 pMga->CurrentLayout.weight.green = pScrn->weight.green;
596 pMga->CurrentLayout.weight.blue = pScrn->weight.blue;
597 pMga->CurrentLayout.mode = pScrn->currentMode;
681 MGAPtr pMga = MGAPTR(pScrn);
682 ScrnInfoPtr pScr2 = pMga->pScrn2;
689 f1.x0 = pMga->M1frameX0;
690 f1.x1 = pMga->M1frameX1+1;
691 f1.y0 = pMga->M1frameY0;
692 f1.y1 = pMga->M1frameY1+1;
780 pMga->M1frameX0 = f1.x0;
781 pMga->M1frameY0 = f1.y0;
786 MGAAdjustGranularity(pScrn,&pMga->M1frameX0,&pMga->M1frameY0);
790 pMga->M1frameX1 = pMga->M1frameX0 + MDMPTR(pScrn)->Monitor1->HDisplay -1;
791 pMga->M1frameY1 = pMga->M1frameY0 + MDMPTR(pScrn)->Monitor1->VDisplay -1;
797 MGAAdjustFrame(ADJUST_FRAME_ARGS(pScrn, pMga->M1frameX0, pMga->M1frameY0));
801 /* if(pMga->PointerMoved)
802 (*pMga->PointerMoved)(scrnIndex, x, y); FIXME: do I need to call old func?*/
811 MGAPtr pMga = MGAPTR(pScrn1);
812 ScrnInfoPtr pScrn2 = pMga->pScrn2;
824 pMga->M1frameX0 = x+MDMPTR(pScrn1)->Monitor2->HDisplay;
825 BOUND(pMga->M1frameY0,y,y + VMax - MDMPTR(pScrn1)->Monitor1->VDisplay);
828 pMga->M1frameX0 = x;
829 BOUND(pMga->M1frameY0,y,y + VMax - MDMPTR(pScrn1)->Monitor1->VDisplay);
836 BOUND(pMga->M1frameX0,x,x + HMax - MDMPTR(pScrn1)->Monitor1->HDisplay);
837 pMga->M1frameY0 = y+MDMPTR(pScrn1)->Monitor2->VDisplay;
840 BOUND(pMga->M1frameX0,x,x + HMax - MDMPTR(pScrn1)->Monitor1->HDisplay);
841 pMga->M1frameY0 = y;
846 BOUND(pMga->M1frameX0,x,x + HMax - MDMPTR(pScrn1)->Monitor1->HDisplay);
847 BOUND(pMga->M1frameY0,y,y + VMax - MDMPTR(pScrn1)->Monitor1->VDisplay);
853 BOUND(pMga->M1frameX0,0,pScrn1->virtualX -MDMPTR(pScrn1)->Monitor1->HDisplay);
854 BOUND(pMga->M1frameY0,0,pScrn1->virtualY -MDMPTR(pScrn1)->Monitor1->VDisplay);
862 MGAAdjustGranularity(pScrn1,&pMga->M1frameX0,&pMga->M1frameY0);
867 pMga->M1frameX1 = pMga->M1frameX0 + MDMPTR(pScrn1)->Monitor1->HDisplay -1;
868 pMga->M1frameY1 = pMga->M1frameY0 + MDMPTR(pScrn1)->Monitor1->VDisplay -1;
874 MGAAdjustFrame(ADJUST_FRAME_ARGS(pScrn, pMga->M1frameX0, pMga->M1frameY0));
882 MGAPtr pMga = MGAPTR(pScrn1);
883 ScrnInfoPtr pScrn2 = pMga->pScrn2;
890 pMga->pScrn2 = NULL;
903 pScrn1->currentMode = pMga->M1currentMode;
904 pScrn1->modes = pMga->M1modes;
913 MGAPtr pMga = MGAPTR(pScrn);