From b6923b39539c34c2a589197def5eee72a9d719bf Mon Sep 17 00:00:00 2001 From: Jeff Hartmann Date: Wed, 8 Aug 2001 16:10:47 +0000 Subject: 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' --- linux-core/tdfx_drv.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'linux-core/tdfx_drv.c') 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) -- cgit v1.2.3