MFC: Guard references to PCITAG / pciTag with XSERVER_LIBPCIACCESS
fixes the radeonold driver with xserver 1.12.
This commit is contained in:
parent
8d622ccd32
commit
53c868dbb5
@ -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;
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user