OSDN Git Service

centralise pci ids into one place and use scripts to generate files for
authorDave Airlie <airlied@linux.ie>
Wed, 21 Apr 2004 12:13:31 +0000 (12:13 +0000)
committerDave Airlie <airlied@linux.ie>
Wed, 21 Apr 2004 12:13:31 +0000 (12:13 +0000)
    kernel

21 files changed:
bsd-core/drm_drv.c
bsd/drm_drv.h
linux-core/Makefile
linux-core/drmP.h
linux-core/drm_drv.c
linux-core/savage.h
linux/Makefile
linux/drmP.h
linux/drm_drv.h
linux/gamma.h
linux/i810.h
linux/i830.h
linux/savage.h
shared-core/tdfx_drv.h
shared/mach64.h
shared/mga.h
shared/r128.h
shared/radeon.h
shared/sis.h
shared/tdfx.h
shared/via.h

index 7184e3d..1b5d170 100644 (file)
@@ -225,8 +225,10 @@ static struct cdevsw DRM(cdevsw) = {
 #endif
 };
 
+#include "drm_pciids.h"
+
 static drm_pci_id_list_t DRM(pciidlist)[] = {
-       DRIVER_PCI_IDS
+       DRM(PCI_IDS)
 };
 
 static int DRM(probe)(device_t dev)
index 7184e3d..1b5d170 100644 (file)
@@ -225,8 +225,10 @@ static struct cdevsw DRM(cdevsw) = {
 #endif
 };
 
+#include "drm_pciids.h"
+
 static drm_pci_id_list_t DRM(pciidlist)[] = {
-       DRIVER_PCI_IDS
+       DRM(PCI_IDS)
 };
 
 static int DRM(probe)(device_t dev)
index b175888..dc21459 100644 (file)
@@ -208,7 +208,10 @@ SHAREDDIR := ../shared
 HASSHARED := $(shell if [ -d $(SHAREDDIR) ]; then echo y; fi)
 
 ifeq ($(HASSHARED),y)
-includes:: $(SHAREDSRC)
+includes:: $(SHAREDSRC) drm_pciids.h
+
+drm_pciids.h: $(SHAREDDIR)/drm_pciids.txt
+       sh ../scripts/create_linux_pci_lists.sh < $(SHAREDDIR)/drm_pciids.txt
 
 $(SHAREDSRC):
        @if [ -r $(SHAREDDIR)/$@ ]; then \
index 09556b8..e30dd6d 100644 (file)
@@ -255,6 +255,10 @@ static inline void class_simple_destroy(struct class_simple *cs){};
 
 static inline struct class_simple *class_simple_create(struct module *owner, char *name) { return NULL; }
 
+#ifndef pci_pretty_name
+#define pci_pretty_name(x) x->name
+#endif
+
 #endif
 
 #ifndef REMAP_PAGE_RANGE_5_ARGS
@@ -423,14 +427,6 @@ do {                                                                       \
 typedef int drm_ioctl_t( struct inode *inode, struct file *filp,
                         unsigned int cmd, unsigned long arg );
 
-typedef struct drm_pci_id_list
-{
-       int vendor;
-       int device;
-       long driver_private;
-       char *name;
-} drm_pci_id_list_t;
-
 typedef struct drm_ioctl_desc {
        drm_ioctl_t          *func;
        int                  auth_needed;
index 35876dc..cdeb9b6 100644 (file)
@@ -540,8 +540,10 @@ static int DRM(takedown)( drm_device_t *dev )
        return 0;
 }
 
-static drm_pci_id_list_t DRM(pciidlist)[] = {
-       DRIVER_PCI_IDS
+#include "drm_pciids.h"
+
+static struct pci_device_id DRM(pciidlist)[] = {
+       DRM(PCI_IDS)
 };
 
 static int DRM(probe)(struct pci_dev *pdev)
@@ -551,17 +553,17 @@ static int DRM(probe)(struct pci_dev *pdev)
        int retcode;
 #endif
        int i;
-       char *desc = NULL;
+       int is_compat = 0;
 
        DRM_DEBUG( "\n" );
 
        for (i = 0; DRM(pciidlist)[i].vendor != 0; i++) {
                if ((DRM(pciidlist)[i].vendor == pdev->vendor) &&
                    (DRM(pciidlist)[i].device == pdev->device)) {
-                       desc = DRM(pciidlist)[i].name;
+                       is_compat = 1;
                }
        }
-       if (desc == NULL)
+       if (is_compat == 0)
                return -ENODEV;
 
        if (DRM(numdevs) >= MAX_DEVICES)
@@ -623,7 +625,7 @@ static int DRM(probe)(struct pci_dev *pdev)
        }
 #endif
        DRM(numdevs)++; /* no errors, mark it reserved */
-       
+
        DRM_INFO( "Initialized %s %d.%d.%d %s on minor %d: %s\n",
                DRIVER_NAME,
                DRIVER_MAJOR,
@@ -631,7 +633,8 @@ static int DRM(probe)(struct pci_dev *pdev)
                DRIVER_PATCHLEVEL,
                DRIVER_DATE,
                dev->minor,
-               desc );
+               pci_pretty_name(pdev)
+               );
 
        DRIVER_POSTINIT();
 
index 5ccd22d..fb828ce 100644 (file)
 #define __HAVE_MTRR            1
 #define __HAVE_CTX_BITMAP      1
 
-#define DRIVER_PCI_IDS                                                 \
-        {0x5333, 0x8a22, 0, "Savage4"},                                 \
-        {0x5333, 0x8a23, 0, "Savage4"},                                 \
-       {0x5333, 0x8c10, 0, "Savage/MX-MV"},                            \
-       {0x5333, 0x8c11, 0, "Savage/MX"},                               \
-       {0x5333, 0x8c12, 0, "Savage/IX-MV"},                            \
-       {0x5333, 0x8c13, 0, "Savage/IX"},                               \
-       {0x5333, 0x8c20, 0, "Savage 3D"},                               \
-       {0x5333, 0x8c21, 0, "Savage 3D/MV"},                            \
-       {0x5333, 0x8c22, 0, "SuperSavage MX/128"},                      \
-       {0x5333, 0x8c24, 0, "SuperSavage MX/64"},                       \
-       {0x5333, 0x8c26, 0, "SuperSavage MX/64C"},                      \
-       {0x5333, 0x8c2a, 0, "SuperSavage IX/128 SDR"},                  \
-       {0x5333, 0x8c2b, 0, "SuperSavage IX/128 DDR"},                  \
-       {0x5333, 0x8c2c, 0, "SuperSavage IX/64 SDR"},                   \
-       {0x5333, 0x8c2d, 0, "SuperSavage IX/64 DDR"},                   \
-       {0x5333, 0x8c2e, 0, "SuperSavage IX/C SDR"},                    \
-       {0x5333, 0x8c2f, 0, "SuperSavage IX/C DDR"},                    \
-       {0x5333, 0x8a25, 0, "ProSavage PM133"},                         \
-       {0x5333, 0x8a26, 0, "ProSavage KM133"},                         \
-       {0x5333, 0x8d01, 0, "ProSavage PN133"},                         \
-       {0x5333, 0x8d02, 0, "ProSavage KN133"},                         \
-       {0x5333, 0x8d04, 0, "ProSavage DDR"}
-
 #endif
index b175888..dc21459 100644 (file)
@@ -208,7 +208,10 @@ SHAREDDIR := ../shared
 HASSHARED := $(shell if [ -d $(SHAREDDIR) ]; then echo y; fi)
 
 ifeq ($(HASSHARED),y)
-includes:: $(SHAREDSRC)
+includes:: $(SHAREDSRC) drm_pciids.h
+
+drm_pciids.h: $(SHAREDDIR)/drm_pciids.txt
+       sh ../scripts/create_linux_pci_lists.sh < $(SHAREDDIR)/drm_pciids.txt
 
 $(SHAREDSRC):
        @if [ -r $(SHAREDDIR)/$@ ]; then \
index 09556b8..e30dd6d 100644 (file)
@@ -255,6 +255,10 @@ static inline void class_simple_destroy(struct class_simple *cs){};
 
 static inline struct class_simple *class_simple_create(struct module *owner, char *name) { return NULL; }
 
+#ifndef pci_pretty_name
+#define pci_pretty_name(x) x->name
+#endif
+
 #endif
 
 #ifndef REMAP_PAGE_RANGE_5_ARGS
@@ -423,14 +427,6 @@ do {                                                                       \
 typedef int drm_ioctl_t( struct inode *inode, struct file *filp,
                         unsigned int cmd, unsigned long arg );
 
-typedef struct drm_pci_id_list
-{
-       int vendor;
-       int device;
-       long driver_private;
-       char *name;
-} drm_pci_id_list_t;
-
 typedef struct drm_ioctl_desc {
        drm_ioctl_t          *func;
        int                  auth_needed;
index 35876dc..cdeb9b6 100644 (file)
@@ -540,8 +540,10 @@ static int DRM(takedown)( drm_device_t *dev )
        return 0;
 }
 
-static drm_pci_id_list_t DRM(pciidlist)[] = {
-       DRIVER_PCI_IDS
+#include "drm_pciids.h"
+
+static struct pci_device_id DRM(pciidlist)[] = {
+       DRM(PCI_IDS)
 };
 
 static int DRM(probe)(struct pci_dev *pdev)
@@ -551,17 +553,17 @@ static int DRM(probe)(struct pci_dev *pdev)
        int retcode;
 #endif
        int i;
-       char *desc = NULL;
+       int is_compat = 0;
 
        DRM_DEBUG( "\n" );
 
        for (i = 0; DRM(pciidlist)[i].vendor != 0; i++) {
                if ((DRM(pciidlist)[i].vendor == pdev->vendor) &&
                    (DRM(pciidlist)[i].device == pdev->device)) {
-                       desc = DRM(pciidlist)[i].name;
+                       is_compat = 1;
                }
        }
-       if (desc == NULL)
+       if (is_compat == 0)
                return -ENODEV;
 
        if (DRM(numdevs) >= MAX_DEVICES)
@@ -623,7 +625,7 @@ static int DRM(probe)(struct pci_dev *pdev)
        }
 #endif
        DRM(numdevs)++; /* no errors, mark it reserved */
-       
+
        DRM_INFO( "Initialized %s %d.%d.%d %s on minor %d: %s\n",
                DRIVER_NAME,
                DRIVER_MAJOR,
@@ -631,7 +633,8 @@ static int DRM(probe)(struct pci_dev *pdev)
                DRIVER_PATCHLEVEL,
                DRIVER_DATE,
                dev->minor,
-               desc );
+               pci_pretty_name(pdev)
+               );
 
        DRIVER_POSTINIT();
 
index d4712ef..dcd6490 100644 (file)
        [DRM_IOCTL_NR(DRM_IOCTL_GAMMA_INIT)] = { gamma_dma_init,  1, 1 }, \
        [DRM_IOCTL_NR(DRM_IOCTL_GAMMA_COPY)] = { gamma_dma_copy,  1, 1 }
 
-#define DRIVER_PCI_IDS                                                 \
-       {0x3d3d, 0x0008, 0, "3DLabs GLINT Gamma G1"},                   \
-       {0, 0, 0, NULL}
-
 #define IOCTL_TABLE_NAME       DRM(ioctls)
 #define IOCTL_FUNC_NAME        DRM(ioctl)
 
index ffa06c0..aee2eff 100644 (file)
        [DRM_IOCTL_NR(DRM_IOCTL_I810_RSTATUS)] = { i810_rstatus,    1, 0 }, \
        [DRM_IOCTL_NR(DRM_IOCTL_I810_FLIP)] =    { i810_flip_bufs,  1, 0 }
 
-#define DRIVER_PCI_IDS                                                 \
-       {0x8086, 0x7121, 0, "Intel i810 GMCH"},                         \
-       {0x8086, 0x7123, 0, "Intel i810-DC100 GMCH"},                   \
-       {0x8086, 0x7125, 0, "Intel i810E GMCH"},                        \
-       {0x8086, 0x1132, 0, "Intel i815 GMCH"},                         \
-       {0, 0, 0, NULL}
-
-
 #define __HAVE_COUNTERS         4
 #define __HAVE_COUNTER6         _DRM_STAT_IRQ
 #define __HAVE_COUNTER7         _DRM_STAT_PRIMARY
index 93570c9..48d9cdd 100644 (file)
        [DRM_IOCTL_NR(DRM_IOCTL_I830_GETPARAM)] = { i830_getparam,  1, 0 }, \
        [DRM_IOCTL_NR(DRM_IOCTL_I830_SETPARAM)] = { i830_setparam,  1, 0 } 
 
-#define DRIVER_PCI_IDS                                                 \
-       {0x8086, 0x3577, 0, "Intel i830M GMCH"},                        \
-       {0x8086, 0x2562, 0, "Intel i845G GMCH"},                        \
-       {0x8086, 0x3582, 0, "Intel i852GM/i855GM GMCH"},                \
-       {0x8086, 0x2572, 0, "Intel i865G GMCH"},                \
-       {0, 0, 0, NULL}
-
 #define __HAVE_COUNTERS         4
 #define __HAVE_COUNTER6         _DRM_STAT_IRQ
 #define __HAVE_COUNTER7         _DRM_STAT_PRIMARY
index 5ccd22d..fb828ce 100644 (file)
 #define __HAVE_MTRR            1
 #define __HAVE_CTX_BITMAP      1
 
-#define DRIVER_PCI_IDS                                                 \
-        {0x5333, 0x8a22, 0, "Savage4"},                                 \
-        {0x5333, 0x8a23, 0, "Savage4"},                                 \
-       {0x5333, 0x8c10, 0, "Savage/MX-MV"},                            \
-       {0x5333, 0x8c11, 0, "Savage/MX"},                               \
-       {0x5333, 0x8c12, 0, "Savage/IX-MV"},                            \
-       {0x5333, 0x8c13, 0, "Savage/IX"},                               \
-       {0x5333, 0x8c20, 0, "Savage 3D"},                               \
-       {0x5333, 0x8c21, 0, "Savage 3D/MV"},                            \
-       {0x5333, 0x8c22, 0, "SuperSavage MX/128"},                      \
-       {0x5333, 0x8c24, 0, "SuperSavage MX/64"},                       \
-       {0x5333, 0x8c26, 0, "SuperSavage MX/64C"},                      \
-       {0x5333, 0x8c2a, 0, "SuperSavage IX/128 SDR"},                  \
-       {0x5333, 0x8c2b, 0, "SuperSavage IX/128 DDR"},                  \
-       {0x5333, 0x8c2c, 0, "SuperSavage IX/64 SDR"},                   \
-       {0x5333, 0x8c2d, 0, "SuperSavage IX/64 DDR"},                   \
-       {0x5333, 0x8c2e, 0, "SuperSavage IX/C SDR"},                    \
-       {0x5333, 0x8c2f, 0, "SuperSavage IX/C DDR"},                    \
-       {0x5333, 0x8a25, 0, "ProSavage PM133"},                         \
-       {0x5333, 0x8a26, 0, "ProSavage KM133"},                         \
-       {0x5333, 0x8d01, 0, "ProSavage PN133"},                         \
-       {0x5333, 0x8d02, 0, "ProSavage KN133"},                         \
-       {0x5333, 0x8d04, 0, "ProSavage DDR"}
-
 #endif
index 642b08d..6b067db 100644 (file)
 #define DRIVER_MINOR           0
 #define DRIVER_PATCHLEVEL      0
 
-#define DRIVER_PCI_IDS                                                 \
-       {0x121a, 0x0003, 0, "3dfx Voodoo Banshee"},                     \
-       {0x121a, 0x0004, 0, "3dfx Voodoo3 2000"},                       \
-       {0x121a, 0x0005, 0, "3dfx Voodoo3 3000"},                       \
-       {0x121a, 0x0007, 0, "3dfx Voodoo4"},                            \
-       {0x121a, 0x0009, 0, "3dfx Voodoo5"},                            \
-       {0, 0, 0, NULL}
-
 #endif
index d081e07..f8be393 100644 (file)
        [DRM_IOCTL_NR(DRM_IOCTL_MACH64_FLUSH)]    = { mach64_dma_flush,      1, 0 },    \
        [DRM_IOCTL_NR(DRM_IOCTL_MACH64_GETPARAM)] = { mach64_get_param,      1, 0 }
 
-#define DRIVER_PCI_IDS                                                  \
-       {0x1002, 0x4749, 0, "3D Rage Pro"},                             \
-       {0x1002, 0x4750, 0, "3D Rage Pro 215GP"},                       \
-       {0x1002, 0x4751, 0, "3D Rage Pro 215GQ"},                       \
-       {0x1002, 0x4742, 0, "3D Rage Pro AGP 1X/2X"},                   \
-       {0x1002, 0x4744, 0, "3D Rage Pro AGP 1X"},                      \
-       {0x1002, 0x4c49, 0, "3D Rage LT Pro"},                          \
-       {0x1002, 0x4c50, 0, "3D Rage LT Pro"},                          \
-       {0x1002, 0x4c51, 0, "3D Rage LT Pro"},                          \
-       {0x1002, 0x4c42, 0, "3D Rage LT Pro AGP-133"},                  \
-       {0x1002, 0x4c44, 0, "3D Rage LT Pro AGP-66"},                   \
-       {0x1002, 0x474c, 0, "Rage XC"},                                 \
-       {0x1002, 0x474f, 0, "Rage XL"},                                 \
-       {0x1002, 0x4752, 0, "Rage XL"},                                 \
-       {0x1002, 0x4753, 0, "Rage XC"},                                 \
-       {0x1002, 0x474d, 0, "Rage XL AGP 2X"},                          \
-       {0x1002, 0x474e, 0, "Rage XC AGP"},                             \
-       {0x1002, 0x4c52, 0, "Rage Mobility P/M"},                       \
-       {0x1002, 0x4c53, 0, "Rage Mobility L"},                         \
-       {0x1002, 0x4c4d, 0, "Rage Mobility P/M AGP 2X"},                \
-       {0x1002, 0x4c4e, 0, "Rage Mobility L AGP 2X"},                  \
-       {0, 0, 0, NULL}
-
 /* Driver customization:
  */
 #define DRIVER_PRETAKEDOWN() do {                                      \
index 05fa9eb..702857a 100644 (file)
        [DRM_IOCTL_NR(DRM_IOCTL_MGA_BLIT)]    = { mga_dma_blit,    1, 0 }, \
        [DRM_IOCTL_NR(DRM_IOCTL_MGA_GETPARAM)]= { mga_getparam,    1, 0 },
 
-#define DRIVER_PCI_IDS                                                 \
-       {0x102b, 0x0521, 0, "Matrox G200 (AGP)"},                       \
-       {0x102b, 0x0525, 0, "Matrox G400/G450 (AGP)"},                  \
-       {0x102b, 0x2527, 0, "Matrox G550 (AGP)"},                       \
-       {0, 0, 0, NULL}
-
 #define __HAVE_COUNTERS         3
 #define __HAVE_COUNTER6         _DRM_STAT_IRQ
 #define __HAVE_COUNTER7         _DRM_STAT_PRIMARY
index ffbe3aa..9dfe189 100644 (file)
    [DRM_IOCTL_NR(DRM_IOCTL_R128_INDIRECT)]   = { r128_cce_indirect, 1, 1 }, \
    [DRM_IOCTL_NR(DRM_IOCTL_R128_GETPARAM)]   = { r128_getparam, 1, 0 },
 
-#define DRIVER_PCI_IDS                                                 \
-       {0x1002, 0x4c45, 0, "ATI Rage 128 Mobility LE (PCI)"},          \
-       {0x1002, 0x4c46, 0, "ATI Rage 128 Mobility LF (AGP)"},          \
-       {0x1002, 0x4d46, 0, "ATI Rage 128 Mobility MF (AGP)"},          \
-       {0x1002, 0x4d4c, 0, "ATI Rage 128 Mobility ML (AGP)"},          \
-       {0x1002, 0x5041, 0, "ATI Rage 128 Pro PA (PCI)"},               \
-       {0x1002, 0x5042, 0, "ATI Rage 128 Pro PB (AGP)"},               \
-       {0x1002, 0x5043, 0, "ATI Rage 128 Pro PC (AGP)"},               \
-       {0x1002, 0x5044, 0, "ATI Rage 128 Pro PD (PCI)"},               \
-       {0x1002, 0x5045, 0, "ATI Rage 128 Pro PE (AGP)"},               \
-       {0x1002, 0x5046, 0, "ATI Rage 128 Pro PF (AGP)"},               \
-       {0x1002, 0x5047, 0, "ATI Rage 128 Pro PG (PCI)"},               \
-       {0x1002, 0x5048, 0, "ATI Rage 128 Pro PH (AGP)"},               \
-       {0x1002, 0x5049, 0, "ATI Rage 128 Pro PI (AGP)"},               \
-       {0x1002, 0x504A, 0, "ATI Rage 128 Pro PJ (PCI)"},               \
-       {0x1002, 0x504B, 0, "ATI Rage 128 Pro PK (AGP)"},               \
-       {0x1002, 0x504C, 0, "ATI Rage 128 Pro PL (AGP)"},               \
-       {0x1002, 0x504D, 0, "ATI Rage 128 Pro PM (PCI)"},               \
-       {0x1002, 0x504E, 0, "ATI Rage 128 Pro PN (AGP)"},               \
-       {0x1002, 0x504F, 0, "ATI Rage 128 Pro PO (AGP)"},               \
-       {0x1002, 0x5050, 0, "ATI Rage 128 Pro PP (PCI)"},               \
-       {0x1002, 0x5051, 0, "ATI Rage 128 Pro PQ (AGP)"},               \
-       {0x1002, 0x5052, 0, "ATI Rage 128 Pro PR (PCI)"},               \
-       {0x1002, 0x5053, 0, "ATI Rage 128 Pro PS (PCI)"},               \
-       {0x1002, 0x5054, 0, "ATI Rage 128 Pro PT (AGP)"},               \
-       {0x1002, 0x5055, 0, "ATI Rage 128 Pro PU (AGP)"},               \
-       {0x1002, 0x5056, 0, "ATI Rage 128 Pro PV (PCI)"},               \
-       {0x1002, 0x5057, 0, "ATI Rage 128 Pro PW (AGP)"},               \
-       {0x1002, 0x5058, 0, "ATI Rage 128 Pro PX (AGP)"},               \
-       {0x1002, 0x5245, 0, "ATI Rage 128 RE (PCI)"},                   \
-       {0x1002, 0x5246, 0, "ATI Rage 128 RF (AGP)"},                   \
-       {0x1002, 0x5247, 0, "ATI Rage 128 RG (AGP)"},                   \
-       {0x1002, 0x524b, 0, "ATI Rage 128 RK (PCI)"},                   \
-       {0x1002, 0x524c, 0, "ATI Rage 128 RL (AGP)"},                   \
-       {0x1002, 0x534d, 0, "ATI Rage 128 SM (AGP)"},                   \
-       {0x1002, 0x5446, 0, "ATI Rage 128 Pro Ultra TF (AGP)"},         \
-       {0x1002, 0x544C, 0, "ATI Rage 128 Pro Ultra TL (AGP)"},         \
-       {0x1002, 0x5452, 0, "ATI Rage 128 Pro Ultra TR (AGP)"},         \
-       {0, 0, 0, NULL}
-
 /* Driver customization:
  */
 #define DRIVER_PRERELEASE() do {                                       \
index fc392fa..77e36ef 100644 (file)
  [DRM_IOCTL_NR(DRM_IOCTL_RADEON_IRQ_WAIT)]   = { radeon_irq_wait,    1, 0 }, \
  [DRM_IOCTL_NR(DRM_IOCTL_RADEON_SETPARAM)]   = { radeon_cp_setparam, 1, 0 }, \
 
-#define DRIVER_PCI_IDS                                                 \
-       {0x1002, 0x4136, 0, "ATI Radeon RS100 IGP 320M"},               \
-       {0x1002, 0x4137, 0, "ATI Radeon RS200 IGP"},                    \
-       {0x1002, 0x4237, 0, "ATI Radeon RS250 IGP"},                    \
-       {0x1002, 0x4242, 0, "ATI Radeon BB R200 AIW 8500DV"},           \
-       {0x1002, 0x4242, 0, "ATI Radeon BC R200"},                      \
-       {0x1002, 0x4336, 0, "ATI Radeon RS100 Mobility U1"},            \
-       {0x1002, 0x4337, 0, "ATI Radeon RS200 Mobility IGP 340M"},      \
-       {0x1002, 0x4437, 0, "ATI Radeon RS250 Mobility IGP"},           \
-       {0x1002, 0x4964, 0, "ATI Radeon Id R250 9000"},                 \
-       {0x1002, 0x4965, 0, "ATI Radeon Ie R250 9000"},                 \
-       {0x1002, 0x4966, 0, "ATI Radeon If R250 9000"},                 \
-       {0x1002, 0x4967, 0, "ATI Radeon Ig R250 9000"},                 \
-       {0x1002, 0x4C57, 0, "ATI Radeon LW Mobility 7500 M7"},          \
-       {0x1002, 0x4C58, 0, "ATI Radeon LX RV200 Mobility FireGL 7800 M7"}, \
-       {0x1002, 0x4C59, 0, "ATI Radeon LY Mobility M6"},               \
-       {0x1002, 0x4C5A, 0, "ATI Radeon LZ Mobility M6"},               \
-       {0x1002, 0x4C64, 0, "ATI Radeon Ld R250 Mobility 9000 M9"},     \
-       {0x1002, 0x4C65, 0, "ATI Radeon Le R250 Mobility 9000 M9"},     \
-       {0x1002, 0x4C66, 0, "ATI Radeon Lf R250 Mobility 9000 M9"},     \
-       {0x1002, 0x4C67, 0, "ATI Radeon Lg R250 Mobility 9000 M9"},     \
-       {0x1002, 0x5144, 0, "ATI Radeon QD R100"},                      \
-       {0x1002, 0x5145, 0, "ATI Radeon QE R100"},                      \
-       {0x1002, 0x5146, 0, "ATI Radeon QF R100"},                      \
-       {0x1002, 0x5147, 0, "ATI Radeon QG R100"},                      \
-       {0x1002, 0x5148, 0, "ATI Radeon QH R200 8500"},                 \
-       {0x1002, 0x5149, 0, "ATI Radeon QI R200"},                      \
-       {0x1002, 0x514A, 0, "ATI Radeon QJ R200"},                      \
-       {0x1002, 0x514B, 0, "ATI Radeon QK R200"},                      \
-       {0x1002, 0x514C, 0, "ATI Radeon QL R200 8500 LE"},              \
-       {0x1002, 0x514D, 0, "ATI Radeon QM R200 9100"},                 \
-       {0x1002, 0x514E, 0, "ATI Radeon QN R200 8500 LE"},              \
-       {0x1002, 0x514F, 0, "ATI Radeon QO R200 8500 LE"},              \
-       {0x1002, 0x5157, 0, "ATI Radeon QW RV200 7500"},                \
-       {0x1002, 0x5158, 0, "ATI Radeon QX RV200 7500"},                \
-       {0x1002, 0x5159, 0, "ATI Radeon QY RV100 7000/VE"},             \
-       {0x1002, 0x515A, 0, "ATI Radeon QZ RV100 7000/VE"},             \
-       {0x1002, 0x5168, 0, "ATI Radeon Qh R200"},                      \
-       {0x1002, 0x5169, 0, "ATI Radeon Qi R200"},                      \
-       {0x1002, 0x516A, 0, "ATI Radeon Qj R200"},                      \
-       {0x1002, 0x516B, 0, "ATI Radeon Qk R200"},                      \
-       {0x1002, 0x516C, 0, "ATI Radeon Ql R200"},                      \
-       {0x1002, 0x5834, 0, "ATI Radeon RS300 IGP"},                    \
-       {0x1002, 0x5835, 0, "ATI Radeon RS300 Mobility IGP"},           \
-       {0x1002, 0x5836, 0, "ATI Radeon RS300 IGP"},                    \
-       {0x1002, 0x5837, 0, "ATI Radeon RS300 IGP"},                    \
-       {0x1002, 0x5960, 0, "ATI Radeon RV280 9200"},                   \
-       {0x1002, 0x5961, 0, "ATI Radeon RV280 9200 SE"},                \
-       {0x1002, 0x5962, 0, "ATI Radeon RV280 9200"},                   \
-       {0x1002, 0x5963, 0, "ATI Radeon RV280 9200"},                   \
-       {0x1002, 0x5964, 0, "ATI Radeon RV280 9200 SE"},                \
-       {0x1002, 0x5968, 0, "ATI Radeon RV280 9200"},                   \
-       {0x1002, 0x5969, 0, "ATI Radeon RV280 9200"},                   \
-       {0x1002, 0x596A, 0, "ATI Radeon RV280 9200"},                   \
-       {0x1002, 0x596B, 0, "ATI Radeon RV280 9200"},                   \
-       {0x1002, 0x5c61, 0, "ATI Radeon RV280 Mobility"},               \
-       {0x1002, 0x5c62, 0, "ATI Radeon RV280"},                        \
-       {0x1002, 0x5c63, 0, "ATI Radeon RV280 Mobility"},               \
-       {0x1002, 0x5c64, 0, "ATI Radeon RV280"},                        \
-       {0, 0, 0, NULL}
-
 #define DRIVER_FILE_FIELDS                                             \
        int64_t radeon_fb_delta;                                        \
 
index d29ed0d..c6315d7 100644 (file)
  * Name it sisdrv_##x as there's a conflict with sis_free/malloc in the kernel
  * that's used for fb devices 
  */
-#ifdef __linux__
 #define DRM(x) sisdrv_##x
-#else
-#define DRM(x) sis_##x
-#endif
 
 /* General customization:
  */
        [DRM_IOCTL_NR(DRM_IOCTL_SIS_AGP_FREE)]  = { sis_ioctl_agp_free, 1, 0 }, \
        [DRM_IOCTL_NR(DRM_IOCTL_SIS_FB_INIT)]   = { sis_fb_init,        1, 1 }
 
-#define DRIVER_PCI_IDS                                                 \
-       {0x1039, 0x0300, 0, "SiS 300/305"},                             \
-       {0x1039, 0x5300, 0, "SiS 540"},                                 \
-       {0x1039, 0x6300, 0, "SiS 630"},                                 \
-       {0x1039, 0x7300, 0, "SiS 730"},                                 \
-       {0, 0, 0, NULL}
-
 #define __HAVE_COUNTERS                5
 
 /* Buffer customization:
index 642b08d..6b067db 100644 (file)
 #define DRIVER_MINOR           0
 #define DRIVER_PATCHLEVEL      0
 
-#define DRIVER_PCI_IDS                                                 \
-       {0x121a, 0x0003, 0, "3dfx Voodoo Banshee"},                     \
-       {0x121a, 0x0004, 0, "3dfx Voodoo3 2000"},                       \
-       {0x121a, 0x0005, 0, "3dfx Voodoo3 3000"},                       \
-       {0x121a, 0x0007, 0, "3dfx Voodoo4"},                            \
-       {0x121a, 0x0009, 0, "3dfx Voodoo5"},                            \
-       {0, 0, 0, NULL}
-
 #endif
index 7974dfb..46ac653 100644 (file)
@@ -52,11 +52,4 @@ extern int via_final_context(int context);
 #define DRIVER_CTX_CTOR via_init_context
 #define DRIVER_CTX_DTOR via_final_context
 
-#define DRIVER_PCI_IDS                         \
-    {0x1106, 0x3022, 0, "VIA CLE266 3022"},    \
-    {0x1106, 0x3122, 0, "VIA CLE266"},         \
-    {0x1106, 0x7205, 0, "VIA KM400"},          \
-    {0x1106, 0x7204, 0, "VIA K8M800"},         \
-           {0, 0, 0, NULL}
-
 #endif