aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/via_dmablit.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-07-11 01:53:27 -0400
committerDave Airlie <airlied@linux.ie>2007-07-11 01:53:27 -0400
commit84b1fd103dbbe01b5905db1444d3fc8afa9a7207 (patch)
tree2088f4c8e68553e2d4f5d55fa7a714eb3fa09f9e /drivers/char/drm/via_dmablit.c
parentc60ce623bd16137627009d05e311d877729f2ad6 (diff)
drm: remove drm_file_t, drm_device_t and drm_head_t typedefs
some drivers still todo. Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/via_dmablit.c')
-rw-r--r--drivers/char/drm/via_dmablit.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/char/drm/via_dmablit.c b/drivers/char/drm/via_dmablit.c
index 2881a06b6f55..fdb8609dd76f 100644
--- a/drivers/char/drm/via_dmablit.c
+++ b/drivers/char/drm/via_dmablit.c
@@ -207,7 +207,7 @@ via_free_sg_info(struct pci_dev *pdev, drm_via_sg_info_t *vsg)
207 */ 207 */
208 208
209static void 209static void
210via_fire_dmablit(drm_device_t *dev, drm_via_sg_info_t *vsg, int engine) 210via_fire_dmablit(struct drm_device *dev, drm_via_sg_info_t *vsg, int engine)
211{ 211{
212 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; 212 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private;
213 213
@@ -289,7 +289,7 @@ via_alloc_desc_pages(drm_via_sg_info_t *vsg)
289} 289}
290 290
291static void 291static void
292via_abort_dmablit(drm_device_t *dev, int engine) 292via_abort_dmablit(struct drm_device *dev, int engine)
293{ 293{
294 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; 294 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private;
295 295
@@ -297,7 +297,7 @@ via_abort_dmablit(drm_device_t *dev, int engine)
297} 297}
298 298
299static void 299static void
300via_dmablit_engine_off(drm_device_t *dev, int engine) 300via_dmablit_engine_off(struct drm_device *dev, int engine)
301{ 301{
302 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; 302 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private;
303 303
@@ -314,7 +314,7 @@ via_dmablit_engine_off(drm_device_t *dev, int engine)
314 */ 314 */
315 315
316void 316void
317via_dmablit_handler(drm_device_t *dev, int engine, int from_irq) 317via_dmablit_handler(struct drm_device *dev, int engine, int from_irq)
318{ 318{
319 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; 319 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private;
320 drm_via_blitq_t *blitq = dev_priv->blit_queues + engine; 320 drm_via_blitq_t *blitq = dev_priv->blit_queues + engine;
@@ -433,7 +433,7 @@ via_dmablit_active(drm_via_blitq_t *blitq, int engine, uint32_t handle, wait_que
433 */ 433 */
434 434
435static int 435static int
436via_dmablit_sync(drm_device_t *dev, uint32_t handle, int engine) 436via_dmablit_sync(struct drm_device *dev, uint32_t handle, int engine)
437{ 437{
438 438
439 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; 439 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private;
@@ -466,7 +466,7 @@ static void
466via_dmablit_timer(unsigned long data) 466via_dmablit_timer(unsigned long data)
467{ 467{
468 drm_via_blitq_t *blitq = (drm_via_blitq_t *) data; 468 drm_via_blitq_t *blitq = (drm_via_blitq_t *) data;
469 drm_device_t *dev = blitq->dev; 469 struct drm_device *dev = blitq->dev;
470 int engine = (int) 470 int engine = (int)
471 (blitq - ((drm_via_private_t *)dev->dev_private)->blit_queues); 471 (blitq - ((drm_via_private_t *)dev->dev_private)->blit_queues);
472 472
@@ -502,7 +502,7 @@ static void
502via_dmablit_workqueue(struct work_struct *work) 502via_dmablit_workqueue(struct work_struct *work)
503{ 503{
504 drm_via_blitq_t *blitq = container_of(work, drm_via_blitq_t, wq); 504 drm_via_blitq_t *blitq = container_of(work, drm_via_blitq_t, wq);
505 drm_device_t *dev = blitq->dev; 505 struct drm_device *dev = blitq->dev;
506 unsigned long irqsave; 506 unsigned long irqsave;
507 drm_via_sg_info_t *cur_sg; 507 drm_via_sg_info_t *cur_sg;
508 int cur_released; 508 int cur_released;
@@ -545,7 +545,7 @@ via_dmablit_workqueue(struct work_struct *work)
545 545
546 546
547void 547void
548via_init_dmablit(drm_device_t *dev) 548via_init_dmablit(struct drm_device *dev)
549{ 549{
550 int i,j; 550 int i,j;
551 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; 551 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private;
@@ -582,7 +582,7 @@ via_init_dmablit(drm_device_t *dev)
582 582
583 583
584static int 584static int
585via_build_sg_info(drm_device_t *dev, drm_via_sg_info_t *vsg, drm_via_dmablit_t *xfer) 585via_build_sg_info(struct drm_device *dev, drm_via_sg_info_t *vsg, drm_via_dmablit_t *xfer)
586{ 586{
587 int draw = xfer->to_fb; 587 int draw = xfer->to_fb;
588 int ret = 0; 588 int ret = 0;
@@ -730,7 +730,7 @@ via_dmablit_release_slot(drm_via_blitq_t *blitq)
730 730
731 731
732static int 732static int
733via_dmablit(drm_device_t *dev, drm_via_dmablit_t *xfer) 733via_dmablit(struct drm_device *dev, drm_via_dmablit_t *xfer)
734{ 734{
735 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private; 735 drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private;
736 drm_via_sg_info_t *vsg; 736 drm_via_sg_info_t *vsg;