summaryrefslogtreecommitdiff
path: root/src/apm_driver.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-03-11 10:50:32 +1000
committerDave Airlie <airlied@redhat.com>2008-03-11 10:50:32 +1000
commit9c5bd06addbd5470c891760b1ba84c27eddeecad (patch)
treee03daebf0cd601c96708d9cb10504421d70375a5 /src/apm_driver.c
parent5e0510dd0144c8ee85b2bd8bde58ae212f0d8453 (diff)
further build fixes
Diffstat (limited to 'src/apm_driver.c')
-rw-r--r--src/apm_driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apm_driver.c b/src/apm_driver.c
index b5b5874..9e4603a 100644
--- a/src/apm_driver.c
+++ b/src/apm_driver.c
@@ -415,9 +415,11 @@ ApmProbe(DriverPtr drv, int flags)
* file info to override any contradictions.
*/
+#ifndef XSERVER_LIBPCIACCESS
if (xf86GetPciVideoInfo() == NULL) {
return FALSE;
}
+#endif
numUsed = xf86MatchPciInstances(APM_NAME, PCI_VENDOR_ALLIANCE,
ApmChipsets, ApmPciChipsets, DevSections, numDevSections,
drv, &usedChips);
@@ -1928,8 +1930,10 @@ ApmScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
if (pApm->noLinear) {
PCI_READ_LONG(pApm->PciInfo, &pApm->saveCmd, PCI_CMD_STAT_REG);
PCI_WRITE_LONG(pApm->PciInfo, pApm->saveCmd | (PCI_CMD_IO_ENABLE | PCI_CMD_MEM_ENABLE), PCI_CMD_STAT_REG);
+#ifndef XSERVER_LIBPCIACCESS
pApm->FbBase = xf86MapPciMem(pScrn->scrnIndex, VIDMEM_FRAMEBUFFER,
pApm->PciTag, 0xA0000, 0x10000);
+#endif
}
else
if (!ApmMapMem(pScrn))