diff options
author | Dave Airlie <airlied@redhat.com> | 2012-08-07 09:17:29 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-08-07 09:18:23 +1000 |
commit | be3abf8570ad70ff7ebbaab1910798c8ddd1a3ae (patch) | |
tree | 6a281cfaa00733745bc84a35e1b84f5afa882e4d | |
parent | 5cebdabdaa66a8e512a73fa16f30521457079b28 (diff) |
xgi: build against non-piooffset vgahw
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rwxr-xr-x | src/xgi_driver.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xgi_driver.c b/src/xgi_driver.c index 79caeeb..a7dd2e2 100755 --- a/src/xgi_driver.c +++ b/src/xgi_driver.c @@ -2573,7 +2573,9 @@ XGIPreInit(ScrnInfoPtr pScrn, int flags) return FALSE; } +#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12 pXGI->IODBase = pScrn->domainIOBase; +#endif /* Get the entity, and make sure it is PCI. */ @@ -2639,6 +2641,7 @@ XGIPreInit(ScrnInfoPtr pScrn, int flags) } vgaHWGetIOBase(VGAHWPTR(pScrn)); +#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12 /* Jong@08262009; why not to modify ??? */ /* We "patch" the PIOOffset inside vgaHW in order to force * the vgaHW module to use our relocated i/o ports. @@ -2650,6 +2653,7 @@ XGIPreInit(ScrnInfoPtr pScrn, int flags) (pXGI->PciInfo->ioBase[2] & 0xFFFC) #endif ; +#endif pXGI->pInt = NULL; if (!pXGI->Primary) { @@ -4362,6 +4366,7 @@ XGIModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode) return FALSE; } +#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12 /* Reset our PIOOffset as vgaHWInit might have reset it */ VGAHWPTR(pScrn)->PIOOffset = pXGI->IODBase - 0x380 + #ifdef XSERVER_LIBPCIACCESS @@ -4370,6 +4375,7 @@ XGIModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode) (pXGI->PciInfo->ioBase[2] & 0xFFFC) #endif ; +#endif /* Prepare the register contents */ if (!(*pXGI->ModeInit) (pScrn, mode)) { @@ -4641,6 +4647,7 @@ XGIScreenInit(SCREEN_INIT_ARGS_DECL) } vgaHWGetIOBase(hwp); +#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12 /* Patch the PIOOffset inside vgaHW to use * our relocated IO ports. */ @@ -4651,6 +4658,7 @@ XGIScreenInit(SCREEN_INIT_ARGS_DECL) (pXGI->PciInfo->ioBase[2] & 0xFFFC) #endif ; +#endif /* Map the XGI memory and MMIO areas */ if (!XGIMapMem(pScrn)) { |