diff options
author | Eric Anholt <eric@anholt.net> | 2007-09-02 22:06:45 -0400 |
---|---|---|
committer | Dave Airlie <airlied@optimus.(none)> | 2007-10-14 20:38:20 -0400 |
commit | c153f45f9b7e30289157bba3ff5682291df16caa (patch) | |
tree | 33f21e1ebd83ec548751f3d490afe6230ab99972 /drivers/char/drm/i915_drv.h | |
parent | b589ee5943a9610ebaea6e4e3433f2ae4d812b0b (diff) |
drm: Replace DRM_IOCTL_ARGS with (dev, data, file_priv) and remove DRM_DEVICE.
The data is now in kernel space, copied in/out as appropriate according to t
This results in DRM_COPY_{TO,FROM}_USER going away, and error paths to deal
with those failures. This also means that XFree86 4.2.0 support for i810 DR
is lost.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/i915_drv.h')
-rw-r--r-- | drivers/char/drm/i915_drv.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/drivers/char/drm/i915_drv.h b/drivers/char/drm/i915_drv.h index 12fcd33dfda6..e064292e703a 100644 --- a/drivers/char/drm/i915_drv.h +++ b/drivers/char/drm/i915_drv.h | |||
@@ -116,7 +116,7 @@ typedef struct drm_i915_private { | |||
116 | unsigned int swaps_pending; | 116 | unsigned int swaps_pending; |
117 | } drm_i915_private_t; | 117 | } drm_i915_private_t; |
118 | 118 | ||
119 | extern drm_ioctl_desc_t i915_ioctls[]; | 119 | extern struct drm_ioctl_desc i915_ioctls[]; |
120 | extern int i915_max_ioctl; | 120 | extern int i915_max_ioctl; |
121 | 121 | ||
122 | /* i915_dma.c */ | 122 | /* i915_dma.c */ |
@@ -130,8 +130,10 @@ extern long i915_compat_ioctl(struct file *filp, unsigned int cmd, | |||
130 | unsigned long arg); | 130 | unsigned long arg); |
131 | 131 | ||
132 | /* i915_irq.c */ | 132 | /* i915_irq.c */ |
133 | extern int i915_irq_emit(DRM_IOCTL_ARGS); | 133 | extern int i915_irq_emit(struct drm_device *dev, void *data, |
134 | extern int i915_irq_wait(DRM_IOCTL_ARGS); | 134 | struct drm_file *file_priv); |
135 | extern int i915_irq_wait(struct drm_device *dev, void *data, | ||
136 | struct drm_file *file_priv); | ||
135 | 137 | ||
136 | extern int i915_driver_vblank_wait(struct drm_device *dev, unsigned int *sequence); | 138 | extern int i915_driver_vblank_wait(struct drm_device *dev, unsigned int *sequence); |
137 | extern int i915_driver_vblank_wait2(struct drm_device *dev, unsigned int *sequence); | 139 | extern int i915_driver_vblank_wait2(struct drm_device *dev, unsigned int *sequence); |
@@ -139,15 +141,22 @@ extern irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS); | |||
139 | extern void i915_driver_irq_preinstall(struct drm_device * dev); | 141 | extern void i915_driver_irq_preinstall(struct drm_device * dev); |
140 | extern void i915_driver_irq_postinstall(struct drm_device * dev); | 142 | extern void i915_driver_irq_postinstall(struct drm_device * dev); |
141 | extern void i915_driver_irq_uninstall(struct drm_device * dev); | 143 | extern void i915_driver_irq_uninstall(struct drm_device * dev); |
142 | extern int i915_vblank_pipe_set(DRM_IOCTL_ARGS); | 144 | extern int i915_vblank_pipe_set(struct drm_device *dev, void *data, |
143 | extern int i915_vblank_pipe_get(DRM_IOCTL_ARGS); | 145 | struct drm_file *file_priv); |
144 | extern int i915_vblank_swap(DRM_IOCTL_ARGS); | 146 | extern int i915_vblank_pipe_get(struct drm_device *dev, void *data, |
147 | struct drm_file *file_priv); | ||
148 | extern int i915_vblank_swap(struct drm_device *dev, void *data, | ||
149 | struct drm_file *file_priv); | ||
145 | 150 | ||
146 | /* i915_mem.c */ | 151 | /* i915_mem.c */ |
147 | extern int i915_mem_alloc(DRM_IOCTL_ARGS); | 152 | extern int i915_mem_alloc(struct drm_device *dev, void *data, |
148 | extern int i915_mem_free(DRM_IOCTL_ARGS); | 153 | struct drm_file *file_priv); |
149 | extern int i915_mem_init_heap(DRM_IOCTL_ARGS); | 154 | extern int i915_mem_free(struct drm_device *dev, void *data, |
150 | extern int i915_mem_destroy_heap(DRM_IOCTL_ARGS); | 155 | struct drm_file *file_priv); |
156 | extern int i915_mem_init_heap(struct drm_device *dev, void *data, | ||
157 | struct drm_file *file_priv); | ||
158 | extern int i915_mem_destroy_heap(struct drm_device *dev, void *data, | ||
159 | struct drm_file *file_priv); | ||
151 | extern void i915_mem_takedown(struct mem_block **heap); | 160 | extern void i915_mem_takedown(struct mem_block **heap); |
152 | extern void i915_mem_release(struct drm_device * dev, | 161 | extern void i915_mem_release(struct drm_device * dev, |
153 | struct drm_file *file_priv, struct mem_block *heap); | 162 | struct drm_file *file_priv, struct mem_block *heap); |