drm/i915: add support for E7221
authorDave Airlie <airlied@linux.ie>
Wed, 23 Jan 2008 06:44:51 +0000 (16:44 +1000)
committerDave Airlie <airlied@linux.ie>
Wed, 23 Jan 2008 06:44:51 +0000 (16:44 +1000)
shared-core/drm_pciids.txt
shared-core/i915_drv.h

index 83fbc90..b14b524 100644 (file)
 0x8086 0x3582 CHIP_I8XX "Intel i852GM/i855GM GMCH"
 0x8086 0x2572 CHIP_I8XX "Intel i865G GMCH"
 0x8086 0x2582 CHIP_I9XX|CHIP_I915 "Intel i915G"
+0x8086 0x258a CHIP_I9XX|CHIP_I915 "Intel E7221 (i915)"
 0x8086 0x2592 CHIP_I9XX|CHIP_I915 "Intel i915GM"
 0x8086 0x2772 CHIP_I9XX|CHIP_I915 "Intel i945G"
 0x8086 0x27A2 CHIP_I9XX|CHIP_I915 "Intel i945GM"
index 2c1f2c2..8260529 100644 (file)
@@ -1194,7 +1194,7 @@ extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller);
 #define IS_I855(dev) ((dev)->pci_device == 0x3582)
 #define IS_I865G(dev) ((dev)->pci_device == 0x2572)
 
-#define IS_I915G(dev) (dev->pci_device == 0x2582)/* || dev->pci_device == PCI_DEVICE_ID_INTELPCI_CHIP_E7221_G)*/
+#define IS_I915G(dev) ((dev)->pci_device == 0x2582) || (dev)->pci_device == 0x258a)
 #define IS_I915GM(dev) ((dev)->pci_device == 0x2592)
 #define IS_I945G(dev) ((dev)->pci_device == 0x2772)
 #define IS_I945GM(dev) ((dev)->pci_device == 0x27A2)