enable i915 32/64 bit ioctls
authorDave Airlie <airlied@linux.ie>
Fri, 11 Nov 2005 12:23:18 +0000 (12:23 +0000)
committerDave Airlie <airlied@linux.ie>
Fri, 11 Nov 2005 12:23:18 +0000 (12:23 +0000)
linux-core/i915_drv.c
shared-core/i915_drv.h

index e8cd8c0..5efa442 100644 (file)
@@ -66,6 +66,9 @@ static struct drm_driver driver = {
                .mmap = drm_mmap,
                .poll = drm_poll,
                .fasync = drm_fasync,
+#if defined(CONFIG_COMPAT) && LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9)
+               .compat_ioctl = i915_compat_ioctl,
+#endif
                },
        .pci_driver = {
                .name = DRIVER_NAME,
index 600deab..7bd1321 100644 (file)
@@ -105,6 +105,8 @@ extern int i915_driver_load(struct drm_device *, unsigned long flags);
 extern void i915_driver_lastclose(drm_device_t * dev);
 extern void i915_driver_preclose(drm_device_t * dev, DRMFILE filp);
 extern int i915_driver_device_is_agp(drm_device_t * dev);
+extern long i915_compat_ioctl(struct file *filp, unsigned int cmd,
+                             unsigned long arg);
 
 /* i915_irq.c */
 extern int i915_irq_emit(DRM_IOCTL_ARGS);