diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2011-11-08 11:23:11 +0100 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2011-11-08 11:23:11 +0100 |
commit | 89452c08048c98fb5cc3dc551b3824be40d52cf2 (patch) | |
tree | 0a758eb7d92d0948e45e9f9c689d3113999d1082 /src/radeon_driver.c | |
parent | 5ec34ed95948f7164184551615c1fc4c3eef3b98 (diff) |
UMS: Guard references to PCITAG / pciTag with XSERVER_LIBPCIACCESS (bug #42690)
Should fix https://bugs.freedesktop.org/show_bug.cgi?id=42690 .
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r-- | src/radeon_driver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 293897a9..a9abd663 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -3023,9 +3023,11 @@ Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags) } info->PciInfo = xf86GetPciInfoForEntity(info->pEnt->index); +#ifndef XSERVER_LIBPCIACCESS info->PciTag = pciTag(PCI_DEV_BUS(info->PciInfo), PCI_DEV_DEV(info->PciInfo), PCI_DEV_FUNC(info->PciInfo)); +#endif info->MMIOAddr = PCI_REGION_BASE(info->PciInfo, 2, REGION_MEM) & ~0xffULL; info->MMIOSize = PCI_REGION_SIZE(info->PciInfo, 2); xf86DrvMsg(pScrn->scrnIndex, X_INFO, "TOTO SAYS %016llx\n", |