35 #include <drm/i915_drm.h>
47 static int compat_i915_batchbuffer(
struct file *
file,
unsigned int cmd,
54 (&batchbuffer32, (
void __user *)arg,
sizeof(batchbuffer32)))
64 &batchbuffer->num_cliprects)
66 &batchbuffer->cliprects))
70 (
unsigned long)batchbuffer);
82 static int compat_i915_cmdbuffer(
struct file *
file,
unsigned int cmd,
89 (&cmdbuffer32, (
void __user *)arg,
sizeof(cmdbuffer32)))
101 &cmdbuffer->cliprects))
105 (
unsigned long)cmdbuffer);
112 static int compat_i915_irq_emit(
struct file *
file,
unsigned int cmd,
128 (
unsigned long)request);
135 static int compat_i915_getparam(
struct file *
file,
unsigned int cmd,
152 (
unsigned long)request);
162 static int compat_i915_alloc(
struct file *
file,
unsigned int cmd,
177 &request->region_offset))
181 (
unsigned long)request);
184 static drm_ioctl_compat_t *i915_compat_ioctls[] = {
202 long i915_compat_ioctl(
struct file *filp,
unsigned int cmd,
unsigned long arg)
204 unsigned int nr = DRM_IOCTL_NR(cmd);
205 drm_ioctl_compat_t *
fn =
NULL;
215 ret = (*fn) (filp,
cmd,
arg);