From: Kristian Høgsberg Date: Wed, 20 Aug 2008 15:08:52 +0000 (-0400) Subject: i915: Add chip set ID param. X-Git-Tag: v2.6.28-rc1~255^2~23 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ed4c9c4acf948b42b138747fcb8843ecb1a24ce4;p=linux-2.6-omap-h63xx.git i915: Add chip set ID param. Signed-off-by: Kristian Høgsberg Signed-off-by: Eric Anholt Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index f167ff68a4b..ea85d71cab0 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -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; diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h index 59d08fca25a..eb4b35031a5 100644 --- a/include/drm/i915_drm.h +++ b/include/drm/i915_drm.h @@ -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 {