From 0464e1e6b7587aaf87b818fabd93e484f9bc8288 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 10 Mar 2008 18:56:22 +1000 Subject: amd: fixup pciaccess compile --- src/amd_lx_driver.c | 6 ++++-- 1 file 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); -- cgit v1.2.3