aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/i915_drv.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer.(none)>2005-07-07 07:51:26 -0400
committerDave Airlie <airlied@linux.ie>2005-07-07 07:51:26 -0400
commit8ca7c1df08210fd35fccf1559837c92baaa4da8f (patch)
tree06d09b81f0718bd12b7a0fe8985f4aa13d7d2bc7 /drivers/char/drm/i915_drv.h
parentc101f3136cc98a003d0d16be6fab7d0d950581a6 (diff)
drm: add 32/64 support for MGA/R128/i915
This adds compatiblity ioctls for mga/r128 and i915 DRM drivers. From: Paul Mackerras, David Airlie, Alan Hourihane, Egbert Eich. Signed-off-by: David Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/i915_drv.h')
-rw-r--r--drivers/char/drm/i915_drv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/drm/i915_drv.h b/drivers/char/drm/i915_drv.h
index fa940d64b85d..3a21223267cb 100644
--- a/drivers/char/drm/i915_drv.h
+++ b/drivers/char/drm/i915_drv.h
@@ -130,6 +130,10 @@ extern void i915_mem_takedown(struct mem_block **heap);
130extern void i915_mem_release(drm_device_t * dev, 130extern void i915_mem_release(drm_device_t * dev,
131 DRMFILE filp, struct mem_block *heap); 131 DRMFILE filp, struct mem_block *heap);
132 132
133extern long i915_compat_ioctl(struct file *filp, unsigned int cmd,
134 unsigned long arg)
135
136
133#define I915_READ(reg) DRM_READ32(dev_priv->mmio_map, reg) 137#define I915_READ(reg) DRM_READ32(dev_priv->mmio_map, reg)
134#define I915_WRITE(reg,val) DRM_WRITE32(dev_priv->mmio_map, reg, val) 138#define I915_WRITE(reg,val) DRM_WRITE32(dev_priv->mmio_map, reg, val)
135#define I915_READ16(reg) DRM_READ16(dev_priv->mmio_map, reg) 139#define I915_READ16(reg) DRM_READ16(dev_priv->mmio_map, reg)