i915: Add chip set ID param.
authorKristian Høgsberg <krh@redhat.com>
Wed, 20 Aug 2008 15:08:52 +0000 (11:08 -0400)
committerDave Airlie <airlied@linux.ie>
Fri, 17 Oct 2008 21:10:12 +0000 (07:10 +1000)
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_dma.c
include/drm/i915_drm.h

index f167ff68a4bf191f2724b0362925442175c2dc97..ea85d71cab04c331f1d2dbf4e95a22581ca7a1ec 100644 (file)
@@ -689,6 +689,9 @@ static int i915_getparam(struct drm_device *dev, void *data,
        case I915_PARAM_LAST_DISPATCH:
                value = READ_BREADCRUMB(dev_priv);
                break;
+       case I915_PARAM_CHIPSET_ID:
+               value = dev->pci_device;
+               break;
        case I915_PARAM_HAS_GEM:
                value = 1;
                break;
index 59d08fca25a46ee999ec386d6a223c6d8f44cbaa..eb4b35031a55601ac333490650a4a48082b6faca 100644 (file)
@@ -230,6 +230,7 @@ typedef struct drm_i915_irq_wait {
 #define I915_PARAM_IRQ_ACTIVE            1
 #define I915_PARAM_ALLOW_BATCHBUFFER     2
 #define I915_PARAM_LAST_DISPATCH         3
+#define I915_PARAM_CHIPSET_ID            4
 #define I915_PARAM_HAS_GEM               5
 
 typedef struct drm_i915_getparam {