summaryrefslogtreecommitdiff
path: root/src/savage_dri.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-08-23 18:21:37 -0700
committerIan Romanick <idr@us.ibm.com>2007-08-23 18:21:37 -0700
commit1eec792391d9ce9127817107100a53382f167749 (patch)
tree79250c55dce20fbe7423ad990aff0cf05d21292a /src/savage_dri.c
parent4a87cab2765df548a3b5d796e19568a2576306b8 (diff)
parentffc5ba7f0b1cdefdcecf6bd47018b6a4924bfc44 (diff)
Merge branch 'pci-rework'
Diffstat (limited to 'src/savage_dri.c')
-rw-r--r--src/savage_dri.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/savage_dri.c b/src/savage_dri.c
index 6f79d94..aca0b8c 100644
--- a/src/savage_dri.c
+++ b/src/savage_dri.c
@@ -467,8 +467,8 @@ static Bool SAVAGEDRIAgpInit(ScreenPtr pScreen)
xf86DrvMsg( pScreen->myNum, X_INFO,
"[agp] Mode 0x%08lx [AGP 0x%04x/0x%04x; Card 0x%04x/0x%04x]\n",
mode, vendor, device,
- psav->PciInfo->vendor,
- psav->PciInfo->chipType );
+ VENDOR_ID(psav->PciInfo),
+ DEVICE_ID(psav->PciInfo));
if ( drmAgpEnable( psav->drmFD, mode ) < 0 ) {
xf86DrvMsg( pScreen->myNum, X_ERROR, "[agp] AGP not enabled\n" );
@@ -882,7 +882,11 @@ Bool SAVAGEDRIScreenInit( ScreenPtr pScreen )
sprintf(pDRIInfo->busIdString,
"PCI:%d:%d:%d",
psav->PciInfo->bus,
+#ifdef PCIACCESS
+ psav->PciInfo->dev,
+#else
psav->PciInfo->device,
+#endif
psav->PciInfo->func);
}
pDRIInfo->ddxDriverMajorVersion = SAVAGE_VERSION_MAJOR;