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 {
|
typedef struct {
|
||||||
EntityInfoPtr pEnt;
|
EntityInfoPtr pEnt;
|
||||||
pciVideoPtr PciInfo;
|
pciVideoPtr PciInfo;
|
||||||
|
#ifndef XSERVER_LIBPCIACCESS
|
||||||
PCITAG PciTag;
|
PCITAG PciTag;
|
||||||
|
#endif
|
||||||
int Chipset;
|
int Chipset;
|
||||||
RADEONChipFamily ChipFamily;
|
RADEONChipFamily ChipFamily;
|
||||||
RADEONErrata ChipErrata;
|
RADEONErrata ChipErrata;
|
||||||
|
@ -2836,9 +2836,11 @@ Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
info->PciInfo = xf86GetPciInfoForEntity(info->pEnt->index);
|
info->PciInfo = xf86GetPciInfoForEntity(info->pEnt->index);
|
||||||
|
#ifndef XSERVER_LIBPCIACCESS
|
||||||
info->PciTag = pciTag(PCI_DEV_BUS(info->PciInfo),
|
info->PciTag = pciTag(PCI_DEV_BUS(info->PciInfo),
|
||||||
PCI_DEV_DEV(info->PciInfo),
|
PCI_DEV_DEV(info->PciInfo),
|
||||||
PCI_DEV_FUNC(info->PciInfo));
|
PCI_DEV_FUNC(info->PciInfo));
|
||||||
|
#endif
|
||||||
info->MMIOAddr = PCI_REGION_BASE(info->PciInfo, 2, REGION_MEM) & ~0xffULL;
|
info->MMIOAddr = PCI_REGION_BASE(info->PciInfo, 2, REGION_MEM) & ~0xffULL;
|
||||||
info->MMIOSize = PCI_REGION_SIZE(info->PciInfo, 2);
|
info->MMIOSize = PCI_REGION_SIZE(info->PciInfo, 2);
|
||||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "TOTO SAYS %016llx\n",
|
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "TOTO SAYS %016llx\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user