i915: Add I915_PARAM_CHIPSET_ID param to get chipset ID.

main
Kristian Høgsberg 2008-02-05 12:27:48 -05:00 committed by Kristian Høgsberg
parent 4feb0638f1
commit ee15459483
2 changed files with 4 additions and 0 deletions

View File

@ -1210,6 +1210,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;
default:
DRM_ERROR("Unknown parameter %d\n", param->param);
return -EINVAL;

View File

@ -232,6 +232,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
typedef struct drm_i915_getparam {
int param;