summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-10-19 01:15:03 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-10-19 01:15:03 -0700
commit463886df688d3521afc47ec88f9aaf67e924ec7f (patch)
tree45c5905f9e9ebeda9fb6875d68e47549a6af28b9
parent0b02c68581f48c3239bc150df137623053794a3e (diff)
downloadxorg-driver-xf86-video-vesa-463886df688d3521afc47ec88f9aaf67e924ec7f.tar.gz
Build fix for ABI Version 12
ABI Version 12 removes support for multiple PCI domains. If you need to use this driver on a system with more than one PCI domain, you should either port this driver to using libpciaccess directly or stick with an older server. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--src/vesa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vesa.c b/src/vesa.c
index 61d3550..1136ac3 100644
--- a/src/vesa.c
+++ b/src/vesa.c
@@ -1299,7 +1299,11 @@ VESAMapVidMem(ScrnInfoPtr pScrn)
}
#endif
+#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
pVesa->ioBase = pScrn->domainIOBase;
+#else
+ pVesa->ioBase = 0;
+#endif
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, DEBUG_VERB,
"virtual address = %p,\n"