summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-03-10 18:56:22 +1000
committerDave Airlie <airlied@linux.ie>2008-03-10 18:56:22 +1000
commit0464e1e6b7587aaf87b818fabd93e484f9bc8288 (patch)
treed02031eba0269c0cd8230e8cb974aefd216b33ee
parenteec3a36983867611c9ee401079a8c3a81181d941 (diff)
amd: fixup pciaccess compile
-rw-r--r--src/amd_lx_driver.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/amd_lx_driver.c b/src/amd_lx_driver.c
index 25839c3..6acd09f 100644
--- a/src/amd_lx_driver.c
+++ b/src/amd_lx_driver.c
@@ -419,12 +419,14 @@ LXMapMem(ScrnInfoPtr pScrni)
GeodeRec *pGeode = GEODEPTR(pScrni);
int index = pScrni->scrnIndex;
unsigned long cmd_bfr_phys;
+
+ pciVideoPtr pci = xf86GetPciInfoForEntity(pGeode->pEnt->index);
+
+#ifndef XSERVER_LIBPCIACCESS
PCITAG tag;
- pciVideoRec *pci = xf86GetPciInfoForEntity(pGeode->pEnt->index);
tag = pciTag(pci->bus, pci->device, pci->func);
-#ifndef XSERVER_LIBPCIACCESS
cim_gp_ptr = (unsigned char *)xf86MapPciMem(index, VIDMEM_MMIO,
tag, pci->memBase[1], LX_GP_REG_SIZE);