Lines Matching refs:pXGI

85  * pXGI->BusWidth
86 * pXGI->videoRam (with KB unit)
87 * pXGI->CursorOffset (with Byte Unit)
88 * pXGI->cmdQueueSize (with Byte Unit)
89 * pXGI->cmdQueueSizeMask (with Byte Unit)
90 * pXGI->cmdQueueOffset (with Byte Unit)
91 * pXGI->cmdQueueLen = 0 ; // init value
92 * pXGI->cmdQueueLenMin = 0x200 ; // init value
93 * pXGI->cmdQueueLenMax = pXGI->cmdQueueSize - pXGI->cmdQueueLenMin ;
96 XGIPtr pXGI = XGIPTR(pScrn);
116 pXGI->MemClock = XG40Mclk(pXGI);
152 pXGI->BusWidth = (ulMemConfig & (1<<1) )?64:32 ;
178 if (pXGI->Chipset == PCI_CHIP_XGIXG40) {
181 pXGI->PciInfo->revision
183 pciReadLong(pXGI->PciTag, 0x08) & 0x0FF
247 if(( pXGI->Chipset == PCI_CHIP_XGIXG20 )||( pXGI->Chipset == PCI_CHIP_XGIXG21 )||( pXGI->Chipset == PCI_CHIP_XGIXG27 ))
249 pXGI->cmdQueueSize = VOLARI_CQSIZEXG20;
255 pXGI->cmdQueueSizeMask = pXGI->cmdQueueSize - 1 ;
256 pXGI->pCQ_shareWritePort = &(pXGI->cmdQueue_shareWP_only2D);
264 if( FbDevExist && (pXGI->Chipset != PCI_CHIP_XGIXG20 ) && (pXGI->Chipset != PCI_CHIP_XGIXG21 ) && (pXGI->Chipset != PCI_CHIP_XGIXG27 ) )
268 pXGI->cmdQueueOffset = 4*1024*1024 - pXGI->cmdQueueSize ;
272 pXGI->cmdQueueOffset = 8*1024*1024 - pXGI->cmdQueueSize ;
276 pXGI->cmdQueueOffset = 13*1024*1024 - pXGI->cmdQueueSize ;
281 pXGI->cmdQueueOffset = (pScrn->videoRam)*1024 - pXGI->cmdQueueSize ;
284 pXGI->CursorOffset = pXGI->cmdQueueOffset - 64*1024 ;
285 PDEBUG4(ErrorF("pScrn->videoRam = %08lX pXGI->cmdQueueSize = %08lX\n",
286 pScrn->videoRam, pXGI->cmdQueueSize)) ;
287 PDEBUG4(ErrorF("pXGI->cmdQueueOffset = %08lX pXGI->CursorOffset = %08lX\n",
288 pXGI->cmdQueueOffset, pXGI->CursorOffset)) ;
290 pXGI->cmdQueueLen = 0 ;
291 pXGI->cmdQueueLenMin = 0x200 ;
292 pXGI->cmdQueueLenMax = pXGI->cmdQueueSize - pXGI->cmdQueueLenMin ;
301 pXGI->MemClock/1000.0);
303 "Detected VRAM bus width is %d\n", pXGI->BusWidth);
305 "Detected Cmd Queue size is %d KB\n", pXGI->cmdQueueSize / 1024);
307 "Detected Cmd Queue Offset is %d\n", pXGI->cmdQueueOffset ) ;
329 * pXGI->BusWidth
330 * pXGI->videoRam (with KB unit)
331 * pXGI->CursorOffset (with Byte Unit)
332 * pXGI->cmdQueueSize (with Byte Unit)
333 * pXGI->cmdQueueSizeMask (with Byte Unit)
334 * pXGI->cmdQueueOffset (with Byte Unit)
335 * pXGI->cmdQueueLen = 0 ; // init value
336 * pXGI->cmdQueueLenMin = 0x200 ; // init value
337 * pXGI->cmdQueueLenMax = pXGI->cmdQueueSize - pXGI->cmdQueueLenMin ;
340 XGIPtr pXGI = XGIPTR(pScrn);
348 pXGI->MemClock = XG40Mclk(pXGI);
390 pXGI->BusWidth = (ulMemConfig & 0x02) ? 64 : 32;
400 if (pXGI->Chipset == PCI_CHIP_XGIXG40) {
405 if (pXGI->ChipRev == 2) {
455 pXGI->cmdQueueSize = ((pXGI->Chipset == PCI_CHIP_XGIXG20)||(pXGI->Chipset == PCI_CHIP_XGIXG21||(pXGI->Chipset == PCI_CHIP_XGIXG27)))
457 pXGI->cmdQueueSizeMask = pXGI->cmdQueueSize - 1 ;
458 pXGI->pCQ_shareWritePort = &(pXGI->cmdQueue_shareWP_only2D);
468 pXGI->cmdQueueOffset = 4*1024*1024 - pXGI->cmdQueueSize;
471 pXGI->cmdQueueOffset = 8*1024*1024 - pXGI->cmdQueueSize;
474 pXGI->cmdQueueOffset = 13*1024*1024 - pXGI->cmdQueueSize;
478 pXGI->cmdQueueOffset = (pScrn->videoRam)*1024 - pXGI->cmdQueueSize;
481 pXGI->CursorOffset = pXGI->cmdQueueOffset - 64*1024;
482 PDEBUG4(ErrorF("pScrn->videoRam = %08lX pXGI->cmdQueueSize = %08lX\n",
483 pScrn->videoRam, pXGI->cmdQueueSize)) ;
484 PDEBUG4(ErrorF("pXGI->cmdQueueOffset = %08lX pXGI->CursorOffset = %08lX\n",
485 pXGI->cmdQueueOffset, pXGI->CursorOffset)) ;
487 pXGI->cmdQueueLen = 0 ;
488 pXGI->cmdQueueLenMin = 0x200 ;
489 pXGI->cmdQueueLenMax = pXGI->cmdQueueSize - pXGI->cmdQueueLenMin ;
499 pXGI->MemClock/1000.0);
501 "Detected VRAM bus width is %d\n", pXGI->BusWidth);
503 "Detected Cmd Queue size is %d KB\n", pXGI->cmdQueueSize / 1024);
505 "Detected Cmd Queue Offset is %d\n", pXGI->cmdQueueOffset ) ;
512 XGIPtr pXGI = XGIPTR(pScrn);
514 pXGI->Flags = 0;
515 pXGI->VBFlags = 0;
518 switch (pXGI->Chipset) {
535 XGIPtr pXGI ;
539 pXGI = XGIPTR(pScrn);
541 if(pXGI->Chipset == PCI_CHIP_XGIXG21)
562 XGIPtr pXGI = XGIPTR(pScrn);
565 if (pXGI->Chipset == PCI_CHIP_XGIXG20) {
580 XGIPtr pXGI = XGIPTR(pScrn);
581 PXGI_HW_DEVICE_INFO pHwDevInfo = &pXGI->xgi_HwDevExt;
584 pHwDevInfo->pDevice = pXGI ;
585 pHwDevInfo->pjVirtualRomBase = pXGI->BIOS ;
587 pHwDevInfo->pjVideoMemoryAddress = (UCHAR*)(pXGI->FbBase) ;
588 PDEBUG(ErrorF("pXGI->FbBase = 0x%08lx\n",(ULONG)(pXGI->FbBase))) ;
590 pHwDevInfo->ulVideoMemorySize = pXGI->FbMapSize ;
591 pHwDevInfo->pjIOAddress = pXGI->RelIO + 0x30 ;
593 switch (pXGI->Chipset) {
611 pHwDevInfo->jChipRevision = pXGI->ChipRev;
619 pHwDevInfo->pSR = pXGI->SRList ;
620 pHwDevInfo->pCR = pXGI->CRList ;
635 XGINew_InitVBIOSData(pHwDevInfo, pXGI->XGI_Pr);
638 ErrorF("XGI_InitVBIOSData VBType = %x\n", pXGI->XGI_Pr->VBType);
639 XGI_New_GetVBType(pXGI->XGI_Pr, pHwDevInfo); //yilin
640 ErrorF("XGI_New_GetVBType VBType = %x\n", pXGI->XGI_Pr->VBType);
643 if( pXGI->XGI_Pr->VBType & (VB_XGI301 | VB_XGI301B | VB_XGI301C))
648 else if( pXGI->VBFlags & ( VB_XGI302B| VB_XGI302LV ))
653 else if (pXGI->VBFlags & VB_LVDS) {
665 XGIPtr pXGI ;
676 pXGI = (XGIPtr)pHwDevInfo->pDevice ;
679 err = pci_device_cfg_write_u32(pXGI->PciInfo, *pulValue,
682 err = pci_device_cfg_read_u32(pXGI->PciInfo, (uint32_t *)pulValue,
688 pciDev = pXGI->PciTag ;