diff options
-rw-r--r-- | src/amd_lx_driver.c | 6 |
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); |