diff options
author | Jeff Hartmann <jhartmann@valinux.com> | 2001-08-08 16:10:47 +0000 |
---|---|---|
committer | Jeff Hartmann <jhartmann@valinux.com> | 2001-08-08 16:10:47 +0000 |
commit | b6923b39539c34c2a589197def5eee72a9d719bf (patch) | |
tree | 8fc63d04fe2344377ef4123acbe38ff1fa3f3493 /linux-core/tdfx_drv.c | |
parent | 938a637d1fc33bc8ef14210d655c27d646ddc2d2 (diff) |
Update to the code I sent Linus and Alan this morning. Added some missing
agp chipsets to drm_agpsupport.h, redid the card detection common code
to use a structure (avoids endian porting issues), changed the tdfx
driver to use the kernel pci id '#defines'
Diffstat (limited to 'linux-core/tdfx_drv.c')
-rw-r--r-- | linux-core/tdfx_drv.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/linux-core/tdfx_drv.c b/linux-core/tdfx_drv.c index 94e5d41c..8f975875 100644 --- a/linux-core/tdfx_drv.c +++ b/linux-core/tdfx_drv.c @@ -44,11 +44,15 @@ #define DRIVER_MINOR 0 #define DRIVER_PATCHLEVEL 0 -static u_int DRM(idlist)[] = { - 0x121A0003, /* Banshee */ - 0x121A0005, /* Voodoo3 */ - 0x121A0009, /* Voodoo5 */ - 0 +#ifndef PCI_DEVICE_ID_3DFX_VOODOO5 +#define PCI_DEVICE_ID_3DFX_VOODOO5 0x0009 +#endif + +static drm_pci_list_t DRM(idlist)[] = { + { PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_BANSHEE }, + { PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_VOODOO3 }, + { PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_VOODOO5 }, + { 0, 0 } }; #define DRIVER_CARD_LIST DRM(idlist) |