OSDN Git Service

Add 965GM macro bits
authorJesse Barnes <jesse.barnes@intel.com>
Mon, 24 Sep 2007 22:40:55 +0000 (15:40 -0700)
committerJesse Barnes <jesse.barnes@intel.com>
Mon, 24 Sep 2007 22:40:55 +0000 (15:40 -0700)
Update IS_MOBILE macro to include new IS_I965GM test.

shared-core/i915_drv.h

index d6b64b6..2d2d3a2 100644 (file)
@@ -1160,6 +1160,7 @@ extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller);
                       (dev)->pci_device == 0x2A02 || \
                       (dev)->pci_device == 0x2A12)
 
+#define IS_I965GM(dev) (((dev)->pci_device == 0x2A02))
 
 #define IS_I9XX(dev) (IS_I915G(dev) || IS_I915GM(dev) || IS_I945G(dev) || \
                      IS_I945GM(dev) || IS_I965G(dev))
@@ -1169,7 +1170,7 @@ extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller);
                        (dev)->pci_device == 0x29D2) 
 
 #define IS_MOBILE(dev) (IS_I830(dev) || IS_I85X(dev) || IS_I915GM(dev) || \
-                       IS_I945GM(dev))
+                       IS_I945GM(dev) || IS_I965GM(dev))
 
 #define PRIMARY_RINGBUFFER_SIZE         (128*1024)