From 1110957ba703475847b8e72023c6edcbd1068aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 4 Oct 2007 11:32:48 +0200 Subject: radeon: Fix for pci-rework. Surprisingly easy, thanks to George's pci-rework changes. --- src/radeon_video.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/radeon_video.c') diff --git a/src/radeon_video.c b/src/radeon_video.c index dca96954..26857a56 100644 --- a/src/radeon_video.c +++ b/src/radeon_video.c @@ -1213,9 +1213,11 @@ RADEONResetVideo(ScrnInfoPtr pScrn) xvAdjustment = MAKE_ATOM("XV_DEBUG_ADJUSTMENT"); - sprintf(tmp, "RXXX:%d.%d.%d", info->PciInfo->vendor, info->PciInfo->chipType, info->PciInfo->chipRev); + sprintf(tmp, "RXXX:%d.%d.%d", PCI_DEV_VENDOR_ID(info->PciInfo), + PCI_DEV_DEVICE_ID(info->PciInfo), PCI_DEV_REVISION(info->PciInfo)); pPriv->device_id = MAKE_ATOM(tmp); - sprintf(tmp, "PCI:%02d:%02d.%d", info->PciInfo->bus, info->PciInfo->device, info->PciInfo->func); + sprintf(tmp, "PCI:%02d:%02d.%d", PCI_DEV_BUS(info->PciInfo), + PCI_DEV_DEV(info->PciInfo), PCI_DEV_FUNC(info->PciInfo)); pPriv->location_id = MAKE_ATOM(tmp); sprintf(tmp, "INSTANCE:%d", pScrn->scrnIndex); pPriv->instance_id = MAKE_ATOM(tmp); -- cgit v1.2.3