diff options
Diffstat (limited to 'drivers/char/drm/radeon_drv.h')
-rw-r--r-- | drivers/char/drm/radeon_drv.h | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/drivers/char/drm/radeon_drv.h b/drivers/char/drm/radeon_drv.h index 3b3d9357201c..e4077bc212b3 100644 --- a/drivers/char/drm/radeon_drv.h +++ b/drivers/char/drm/radeon_drv.h | |||
@@ -188,7 +188,7 @@ struct mem_block { | |||
188 | struct mem_block *prev; | 188 | struct mem_block *prev; |
189 | int start; | 189 | int start; |
190 | int size; | 190 | int size; |
191 | DRMFILE filp; /* 0: free, -1: heap, other: real files */ | 191 | struct drm_file *file_priv; /* NULL: free, -1: heap, other: real files */ |
192 | }; | 192 | }; |
193 | 193 | ||
194 | struct radeon_surface { | 194 | struct radeon_surface { |
@@ -203,7 +203,7 @@ struct radeon_virt_surface { | |||
203 | u32 lower; | 203 | u32 lower; |
204 | u32 upper; | 204 | u32 upper; |
205 | u32 flags; | 205 | u32 flags; |
206 | DRMFILE filp; | 206 | struct drm_file *file_priv; |
207 | }; | 207 | }; |
208 | 208 | ||
209 | typedef struct drm_radeon_private { | 209 | typedef struct drm_radeon_private { |
@@ -307,7 +307,7 @@ typedef struct drm_radeon_kcmd_buffer { | |||
307 | } drm_radeon_kcmd_buffer_t; | 307 | } drm_radeon_kcmd_buffer_t; |
308 | 308 | ||
309 | extern int radeon_no_wb; | 309 | extern int radeon_no_wb; |
310 | extern drm_ioctl_desc_t radeon_ioctls[]; | 310 | extern struct drm_ioctl_desc radeon_ioctls[]; |
311 | extern int radeon_max_ioctl; | 311 | extern int radeon_max_ioctl; |
312 | 312 | ||
313 | /* Check whether the given hardware address is inside the framebuffer or the | 313 | /* Check whether the given hardware address is inside the framebuffer or the |
@@ -326,15 +326,15 @@ static __inline__ int radeon_check_offset(drm_radeon_private_t *dev_priv, | |||
326 | } | 326 | } |
327 | 327 | ||
328 | /* radeon_cp.c */ | 328 | /* radeon_cp.c */ |
329 | extern int radeon_cp_init(DRM_IOCTL_ARGS); | 329 | extern int radeon_cp_init(struct drm_device *dev, void *data, struct drm_file *file_priv); |
330 | extern int radeon_cp_start(DRM_IOCTL_ARGS); | 330 | extern int radeon_cp_start(struct drm_device *dev, void *data, struct drm_file *file_priv); |
331 | extern int radeon_cp_stop(DRM_IOCTL_ARGS); | 331 | extern int radeon_cp_stop(struct drm_device *dev, void *data, struct drm_file *file_priv); |
332 | extern int radeon_cp_reset(DRM_IOCTL_ARGS); | 332 | extern int radeon_cp_reset(struct drm_device *dev, void *data, struct drm_file *file_priv); |
333 | extern int radeon_cp_idle(DRM_IOCTL_ARGS); | 333 | extern int radeon_cp_idle(struct drm_device *dev, void *data, struct drm_file *file_priv); |
334 | extern int radeon_cp_resume(DRM_IOCTL_ARGS); | 334 | extern int radeon_cp_resume(struct drm_device *dev, void *data, struct drm_file *file_priv); |
335 | extern int radeon_engine_reset(DRM_IOCTL_ARGS); | 335 | extern int radeon_engine_reset(struct drm_device *dev, void *data, struct drm_file *file_priv); |
336 | extern int radeon_fullscreen(DRM_IOCTL_ARGS); | 336 | extern int radeon_fullscreen(struct drm_device *dev, void *data, struct drm_file *file_priv); |
337 | extern int radeon_cp_buffers(DRM_IOCTL_ARGS); | 337 | extern int radeon_cp_buffers(struct drm_device *dev, void *data, struct drm_file *file_priv); |
338 | 338 | ||
339 | extern void radeon_freelist_reset(struct drm_device * dev); | 339 | extern void radeon_freelist_reset(struct drm_device * dev); |
340 | extern struct drm_buf *radeon_freelist_get(struct drm_device * dev); | 340 | extern struct drm_buf *radeon_freelist_get(struct drm_device * dev); |
@@ -347,15 +347,16 @@ extern int radeon_driver_preinit(struct drm_device *dev, unsigned long flags); | |||
347 | extern int radeon_presetup(struct drm_device *dev); | 347 | extern int radeon_presetup(struct drm_device *dev); |
348 | extern int radeon_driver_postcleanup(struct drm_device *dev); | 348 | extern int radeon_driver_postcleanup(struct drm_device *dev); |
349 | 349 | ||
350 | extern int radeon_mem_alloc(DRM_IOCTL_ARGS); | 350 | extern int radeon_mem_alloc(struct drm_device *dev, void *data, struct drm_file *file_priv); |
351 | extern int radeon_mem_free(DRM_IOCTL_ARGS); | 351 | extern int radeon_mem_free(struct drm_device *dev, void *data, struct drm_file *file_priv); |
352 | extern int radeon_mem_init_heap(DRM_IOCTL_ARGS); | 352 | extern int radeon_mem_init_heap(struct drm_device *dev, void *data, struct drm_file *file_priv); |
353 | extern void radeon_mem_takedown(struct mem_block **heap); | 353 | extern void radeon_mem_takedown(struct mem_block **heap); |
354 | extern void radeon_mem_release(DRMFILE filp, struct mem_block *heap); | 354 | extern void radeon_mem_release(struct drm_file *file_priv, |
355 | struct mem_block *heap); | ||
355 | 356 | ||
356 | /* radeon_irq.c */ | 357 | /* radeon_irq.c */ |
357 | extern int radeon_irq_emit(DRM_IOCTL_ARGS); | 358 | extern int radeon_irq_emit(struct drm_device *dev, void *data, struct drm_file *file_priv); |
358 | extern int radeon_irq_wait(DRM_IOCTL_ARGS); | 359 | extern int radeon_irq_wait(struct drm_device *dev, void *data, struct drm_file *file_priv); |
359 | 360 | ||
360 | extern void radeon_do_release(struct drm_device * dev); | 361 | extern void radeon_do_release(struct drm_device * dev); |
361 | extern int radeon_driver_vblank_wait(struct drm_device * dev, | 362 | extern int radeon_driver_vblank_wait(struct drm_device * dev, |
@@ -372,7 +373,7 @@ extern int radeon_vblank_crtc_set(struct drm_device *dev, int64_t value); | |||
372 | extern int radeon_driver_load(struct drm_device *dev, unsigned long flags); | 373 | extern int radeon_driver_load(struct drm_device *dev, unsigned long flags); |
373 | extern int radeon_driver_unload(struct drm_device *dev); | 374 | extern int radeon_driver_unload(struct drm_device *dev); |
374 | extern int radeon_driver_firstopen(struct drm_device *dev); | 375 | extern int radeon_driver_firstopen(struct drm_device *dev); |
375 | extern void radeon_driver_preclose(struct drm_device * dev, DRMFILE filp); | 376 | extern void radeon_driver_preclose(struct drm_device * dev, struct drm_file *file_priv); |
376 | extern void radeon_driver_postclose(struct drm_device * dev, struct drm_file * filp); | 377 | extern void radeon_driver_postclose(struct drm_device * dev, struct drm_file * filp); |
377 | extern void radeon_driver_lastclose(struct drm_device * dev); | 378 | extern void radeon_driver_lastclose(struct drm_device * dev); |
378 | extern int radeon_driver_open(struct drm_device * dev, struct drm_file * filp_priv); | 379 | extern int radeon_driver_open(struct drm_device * dev, struct drm_file * filp_priv); |
@@ -382,8 +383,8 @@ extern long radeon_compat_ioctl(struct file *filp, unsigned int cmd, | |||
382 | /* r300_cmdbuf.c */ | 383 | /* r300_cmdbuf.c */ |
383 | extern void r300_init_reg_flags(void); | 384 | extern void r300_init_reg_flags(void); |
384 | 385 | ||
385 | extern int r300_do_cp_cmdbuf(struct drm_device * dev, DRMFILE filp, | 386 | extern int r300_do_cp_cmdbuf(struct drm_device * dev, |
386 | struct drm_file * filp_priv, | 387 | struct drm_file *file_priv, |
387 | drm_radeon_kcmd_buffer_t * cmdbuf); | 388 | drm_radeon_kcmd_buffer_t * cmdbuf); |
388 | 389 | ||
389 | /* Flags for stats.boxes | 390 | /* Flags for stats.boxes |