|
@@ -34,6 +34,7 @@
|
|
#include "drmP.h"
|
|
#include "drmP.h"
|
|
#include "drm.h"
|
|
#include "drm.h"
|
|
#include "i915_drm.h"
|
|
#include "i915_drm.h"
|
|
|
|
+#include "i915_drv.h"
|
|
|
|
|
|
typedef struct _drm_i915_batchbuffer32 {
|
|
typedef struct _drm_i915_batchbuffer32 {
|
|
int start; /* agp offset */
|
|
int start; /* agp offset */
|
|
@@ -181,7 +182,7 @@ static int compat_i915_alloc(struct file *file, unsigned int cmd,
|
|
(unsigned long)request);
|
|
(unsigned long)request);
|
|
}
|
|
}
|
|
|
|
|
|
-drm_ioctl_compat_t *i915_compat_ioctls[] = {
|
|
|
|
|
|
+static drm_ioctl_compat_t *i915_compat_ioctls[] = {
|
|
[DRM_I915_BATCHBUFFER] = compat_i915_batchbuffer,
|
|
[DRM_I915_BATCHBUFFER] = compat_i915_batchbuffer,
|
|
[DRM_I915_CMDBUFFER] = compat_i915_cmdbuffer,
|
|
[DRM_I915_CMDBUFFER] = compat_i915_cmdbuffer,
|
|
[DRM_I915_GETPARAM] = compat_i915_getparam,
|
|
[DRM_I915_GETPARAM] = compat_i915_getparam,
|
|
@@ -189,6 +190,7 @@ drm_ioctl_compat_t *i915_compat_ioctls[] = {
|
|
[DRM_I915_ALLOC] = compat_i915_alloc
|
|
[DRM_I915_ALLOC] = compat_i915_alloc
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+#ifdef CONFIG_COMPAT
|
|
/**
|
|
/**
|
|
* Called whenever a 32-bit process running under a 64-bit kernel
|
|
* Called whenever a 32-bit process running under a 64-bit kernel
|
|
* performs an ioctl on /dev/dri/card<n>.
|
|
* performs an ioctl on /dev/dri/card<n>.
|
|
@@ -217,3 +219,4 @@ long i915_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
|
|
|
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
+#endif
|