aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2009-12-16 15:16:15 -0500
committerEric Anholt <eric@anholt.net>2009-12-16 16:52:17 -0500
commit49ae35f2dd1ff78ee88d5f8a38d0af63c3ad9f71 (patch)
tree300b82d11e4a32ed2e02285682496f60f206f35b /drivers/gpu/drm/i915/i915_drv.c
parenta2565377a5c31e25c77c7cabaf6752abe9a2d83a (diff)
drm/i915: Move PCI IDs into i915 driver
The old include/drm/drm_pciids.h used to be generated from the libdrm git repo. We don't use that anymore so just use a local list in the driver like everybody else. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c42
1 files changed, 40 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 6978a22f70e7..b6ec949361e2 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -33,7 +33,6 @@
33#include "i915_drm.h" 33#include "i915_drm.h"
34#include "i915_drv.h" 34#include "i915_drv.h"
35 35
36#include "drm_pciids.h"
37#include <linux/console.h> 36#include <linux/console.h>
38#include "drm_crtc_helper.h" 37#include "drm_crtc_helper.h"
39 38
@@ -48,8 +47,47 @@ module_param_named(powersave, i915_powersave, int, 0400);
48 47
49static struct drm_driver driver; 48static struct drm_driver driver;
50 49
50#define INTEL_VGA_DEVICE(id) { \
51 .class = PCI_CLASS_DISPLAY_VGA << 8, \
52 .class_mask = 0xffff00, \
53 .vendor = 0x8086, \
54 .device = id, \
55 .subvendor = PCI_ANY_ID, \
56 .subdevice = PCI_ANY_ID, \
57 .driver_data = 0 }
58
51static struct pci_device_id pciidlist[] = { 59static struct pci_device_id pciidlist[] = {
52 i915_PCI_IDS 60 INTEL_VGA_DEVICE(0x3577),
61 INTEL_VGA_DEVICE(0x2562),
62 INTEL_VGA_DEVICE(0x3582),
63 INTEL_VGA_DEVICE(0x2572),
64 INTEL_VGA_DEVICE(0x2582),
65 INTEL_VGA_DEVICE(0x258a),
66 INTEL_VGA_DEVICE(0x2592),
67 INTEL_VGA_DEVICE(0x2772),
68 INTEL_VGA_DEVICE(0x27a2),
69 INTEL_VGA_DEVICE(0x27ae),
70 INTEL_VGA_DEVICE(0x2972),
71 INTEL_VGA_DEVICE(0x2982),
72 INTEL_VGA_DEVICE(0x2992),
73 INTEL_VGA_DEVICE(0x29a2),
74 INTEL_VGA_DEVICE(0x29b2),
75 INTEL_VGA_DEVICE(0x29c2),
76 INTEL_VGA_DEVICE(0x29d2),
77 INTEL_VGA_DEVICE(0x2a02),
78 INTEL_VGA_DEVICE(0x2a12),
79 INTEL_VGA_DEVICE(0x2a42),
80 INTEL_VGA_DEVICE(0x2e02),
81 INTEL_VGA_DEVICE(0x2e12),
82 INTEL_VGA_DEVICE(0x2e22),
83 INTEL_VGA_DEVICE(0x2e32),
84 INTEL_VGA_DEVICE(0x2e42),
85 INTEL_VGA_DEVICE(0xa001),
86 INTEL_VGA_DEVICE(0xa011),
87 INTEL_VGA_DEVICE(0x35e8),
88 INTEL_VGA_DEVICE(0x0042),
89 INTEL_VGA_DEVICE(0x0046),
90 {0, 0, 0}
53}; 91};
54 92
55#if defined(CONFIG_DRM_I915_KMS) 93#if defined(CONFIG_DRM_I915_KMS)