summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/smi_driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/smi_driver.c b/src/smi_driver.c
index 9c10e46..86644c7 100644
--- a/src/smi_driver.c
+++ b/src/smi_driver.c
@@ -442,7 +442,11 @@ SMI_PreInit(ScrnInfoPtr pScrn, int flags)
LEAVE(FALSE);
hwp = VGAHWPTR(pScrn);
+#if ABI_VIDEODRV_VERSION < 12
pSmi->PIOBase = hwp->PIOOffset;
+#else
+ pSmi->PIOBase = 0;
+#endif
xf86ErrorFVerb(VERBLEV, "\tSMI_PreInit vgaCRIndex=%x, vgaIOBase=%x, "
"MMIOBase=%p\n", hwp->IOBase + VGA_CRTC_INDEX_OFFSET,