Adapt to domain changes in videoabi 12

This is a blind change, I don't have this hardware handy to test with.
It probably wants the same new API that tdfx wants.

Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Adam Jackson
2011-11-16 15:09:40 -05:00
parent 59d994f462
commit 4a7eda2405

View File

@@ -498,11 +498,20 @@ ASTPreInit(ScrnInfoPtr pScrn, int flags)
(pScrn->chipset != NULL) ? pScrn->chipset : "Unknown ast");
/* Resource Allocation */
#if ABI_VIDEODRV_VERSION < 12
pAST->IODBase = pScrn->domainIOBase;
#else
pAST->IODBase = 0;
#endif
/* "Patch" the PIOOffset inside vgaHW in order to force
* the vgaHW module to use our relocated i/o ports.
*/
VGAHWPTR(pScrn)->PIOOffset = pAST->PIOOffset = pAST->IODBase + PCI_REGION_BASE(pAST->PciInfo, 2, REGION_IO) - 0x380;
#if ABI_VIDEODRV_VERSION < 12
VGAHWPTR(pScrn)->PIOOffset = /* ... */
#endif
pAST->PIOOffset =
pAST->IODBase + PCI_REGION_BASE(pAST->PciInfo, 2, REGION_IO) - 0x380;
pAST->RelocateIO = (IOADDRESS)(PCI_REGION_BASE(pAST->PciInfo, 2, REGION_IO) + pAST->IODBase);