diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2007-03-18 16:15:20 +0200 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2007-03-21 20:18:54 +0200 |
commit | 321db6d87c9110654ab386e5ec270116eca1e04f (patch) | |
tree | cc8b1e8ba11d0bef543567c448754de3076d1e38 /src/ati.c | |
parent | dfd07b6e99020d1db43d7ce0cae4423d8c6b1f05 (diff) |
[mach64] Add macros for pci-rework source-code compatibilty.
Diffstat (limited to 'src/ati.c')
-rw-r--r-- | src/ati.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -57,6 +57,8 @@ #include "config.h" #endif +#include "atipcirename.h" + #include "ati.h" #include "atichip.h" #include "ativersion.h" @@ -118,12 +120,13 @@ ATIProbe { for (i = 0; (pVideo = xf86PciVideoInfo[i++]); ) { - if ((pVideo->vendor != PCI_VENDOR_ATI) || - (pVideo->chipType == PCI_CHIP_MACH32)) + if ((PCI_DEV_VENDOR_ID(pVideo) != PCI_VENDOR_ATI) || + (PCI_DEV_DEVICE_ID(pVideo) == PCI_CHIP_MACH32)) continue; /* Check for Rage128's, Radeon's and later adapters */ - Chip = ATIChipID(pVideo->chipType, pVideo->chipRev); + Chip = ATIChipID(PCI_DEV_DEVICE_ID(pVideo), PCI_DEV_REVISION(pVideo)); + if (Chip > ATI_CHIP_Mach64) { if (Chip <= ATI_CHIP_Rage128) |