MFC: Guard references to PCITAG / pciTag with XSERVER_LIBPCIACCESS

fixes the radeonold driver with xserver 1.12.
This commit is contained in:
matthieu 2012-06-07 21:07:05 +00:00
parent 8d622ccd32
commit 53c868dbb5
2 changed files with 4 additions and 0 deletions

View File

@ -699,7 +699,9 @@ struct radeon_accel_state {
typedef struct {
EntityInfoPtr pEnt;
pciVideoPtr PciInfo;
#ifndef XSERVER_LIBPCIACCESS
PCITAG PciTag;
#endif
int Chipset;
RADEONChipFamily ChipFamily;
RADEONErrata ChipErrata;

View File

@ -2836,9 +2836,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",