diff options
Diffstat (limited to 'src/lg_driver.c')
-rw-r--r-- | src/lg_driver.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lg_driver.c b/src/lg_driver.c index 0f9f1f6..fc864f8 100644 --- a/src/lg_driver.c +++ b/src/lg_driver.c @@ -372,7 +372,12 @@ LgPreInit(ScrnInfoPtr pScrn, int flags) pCir = CIRPTR(pScrn); pCir->pScrn = pScrn; + +#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12 pCir->PIOReg = hwp->PIOOffset + 0x3CE; +#else + pCir->PIOReg = 0x3CE; +#endif /* Get the entity, and make sure it is PCI. */ pCir->pEnt = xf86GetEntityInfo(pScrn->entityList[0]); |