diff options
author | Ian Romanick <idr@us.ibm.com> | 2007-08-23 18:21:37 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2007-08-23 18:21:37 -0700 |
commit | 1eec792391d9ce9127817107100a53382f167749 (patch) | |
tree | 79250c55dce20fbe7423ad990aff0cf05d21292a /src/savage_dri.c | |
parent | 4a87cab2765df548a3b5d796e19568a2576306b8 (diff) | |
parent | ffc5ba7f0b1cdefdcecf6bd47018b6a4924bfc44 (diff) |
Merge branch 'pci-rework'
Diffstat (limited to 'src/savage_dri.c')
-rw-r--r-- | src/savage_dri.c | 8 |
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; |