summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-10-19 00:31:05 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-10-19 00:31:05 -0700
commit99d960880e3aedc35238e26841e13e12f317395d (patch)
tree4adc79d2473694af8eb54d379e6a79d499342164
parentefcd0f31433ddbcf04ca040f8474f6cb8a080271 (diff)
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/rendition.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rendition.c b/src/rendition.c
index f8c1df4..3202b49 100644
--- a/src/rendition.c
+++ b/src/rendition.c
@@ -663,7 +663,11 @@ renditionPreInit(ScrnInfoPtr pScreenInfo, int flags)
vgaHWGetIOBase(pvgaHW); /* Get VGA I/O base */
pRendition->board.accel=0;
+#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
pRendition->board.vgaio_base = pvgaHW->PIOOffset;
+#else
+ pRendition->board.vgaio_base = 0;
+#endif
pRendition->board.io_base = pRendition->board.vgaio_base
#ifdef XSERVER_LIBPCIACCESS
+ pRendition->PciInfo->regions[1].base_addr;