aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/i915_dma.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/i915_dma.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/i915_dma.c')
-rw-r--r--drivers/char/drm/i915_dma.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/char/drm/i915_dma.c b/drivers/char/drm/i915_dma.c
index 977c74857383..3359cc2b9736 100644
--- a/drivers/char/drm/i915_dma.c
+++ b/drivers/char/drm/i915_dma.c
@@ -47,7 +47,7 @@
47 * the head pointer changes, so that EBUSY only happens if the ring 47 * the head pointer changes, so that EBUSY only happens if the ring
48 * actually stalls for (eg) 3 seconds. 48 * actually stalls for (eg) 3 seconds.
49 */ 49 */
50int i915_wait_ring(drm_device_t * dev, int n, const char *caller) 50int i915_wait_ring(struct drm_device * dev, int n, const char *caller)
51{ 51{
52 drm_i915_private_t *dev_priv = dev->dev_private; 52 drm_i915_private_t *dev_priv = dev->dev_private;
53 drm_i915_ring_buffer_t *ring = &(dev_priv->ring); 53 drm_i915_ring_buffer_t *ring = &(dev_priv->ring);
@@ -73,7 +73,7 @@ int i915_wait_ring(drm_device_t * dev, int n, const char *caller)
73 return DRM_ERR(EBUSY); 73 return DRM_ERR(EBUSY);
74} 74}
75 75
76void i915_kernel_lost_context(drm_device_t * dev) 76void i915_kernel_lost_context(struct drm_device * dev)
77{ 77{
78 drm_i915_private_t *dev_priv = dev->dev_private; 78 drm_i915_private_t *dev_priv = dev->dev_private;
79 drm_i915_ring_buffer_t *ring = &(dev_priv->ring); 79 drm_i915_ring_buffer_t *ring = &(dev_priv->ring);
@@ -88,7 +88,7 @@ void i915_kernel_lost_context(drm_device_t * dev)
88 dev_priv->sarea_priv->perf_boxes |= I915_BOX_RING_EMPTY; 88 dev_priv->sarea_priv->perf_boxes |= I915_BOX_RING_EMPTY;
89} 89}
90 90
91static int i915_dma_cleanup(drm_device_t * dev) 91static int i915_dma_cleanup(struct drm_device * dev)
92{ 92{
93 /* Make sure interrupts are disabled here because the uninstall ioctl 93 /* Make sure interrupts are disabled here because the uninstall ioctl
94 * may not have been called from userspace and after dev_private 94 * may not have been called from userspace and after dev_private
@@ -126,7 +126,7 @@ static int i915_dma_cleanup(drm_device_t * dev)
126 return 0; 126 return 0;
127} 127}
128 128
129static int i915_initialize(drm_device_t * dev, 129static int i915_initialize(struct drm_device * dev,
130 drm_i915_private_t * dev_priv, 130 drm_i915_private_t * dev_priv,
131 drm_i915_init_t * init) 131 drm_i915_init_t * init)
132{ 132{
@@ -211,7 +211,7 @@ static int i915_initialize(drm_device_t * dev,
211 return 0; 211 return 0;
212} 212}
213 213
214static int i915_dma_resume(drm_device_t * dev) 214static int i915_dma_resume(struct drm_device * dev)
215{ 215{
216 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 216 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
217 217
@@ -357,7 +357,7 @@ static int validate_cmd(int cmd)
357 return ret; 357 return ret;
358} 358}
359 359
360static int i915_emit_cmds(drm_device_t * dev, int __user * buffer, int dwords) 360static int i915_emit_cmds(struct drm_device * dev, int __user * buffer, int dwords)
361{ 361{
362 drm_i915_private_t *dev_priv = dev->dev_private; 362 drm_i915_private_t *dev_priv = dev->dev_private;
363 int i; 363 int i;
@@ -396,7 +396,7 @@ static int i915_emit_cmds(drm_device_t * dev, int __user * buffer, int dwords)
396 return 0; 396 return 0;
397} 397}
398 398
399static int i915_emit_box(drm_device_t * dev, 399static int i915_emit_box(struct drm_device * dev,
400 struct drm_clip_rect __user * boxes, 400 struct drm_clip_rect __user * boxes,
401 int i, int DR1, int DR4) 401 int i, int DR1, int DR4)
402{ 402{
@@ -439,7 +439,7 @@ static int i915_emit_box(drm_device_t * dev,
439 * emit. For now, do it in both places: 439 * emit. For now, do it in both places:
440 */ 440 */
441 441
442static void i915_emit_breadcrumb(drm_device_t *dev) 442static void i915_emit_breadcrumb(struct drm_device *dev)
443{ 443{
444 drm_i915_private_t *dev_priv = dev->dev_private; 444 drm_i915_private_t *dev_priv = dev->dev_private;
445 RING_LOCALS; 445 RING_LOCALS;
@@ -457,7 +457,7 @@ static void i915_emit_breadcrumb(drm_device_t *dev)
457 ADVANCE_LP_RING(); 457 ADVANCE_LP_RING();
458} 458}
459 459
460static int i915_dispatch_cmdbuffer(drm_device_t * dev, 460static int i915_dispatch_cmdbuffer(struct drm_device * dev,
461 drm_i915_cmdbuffer_t * cmd) 461 drm_i915_cmdbuffer_t * cmd)
462{ 462{
463 int nbox = cmd->num_cliprects; 463 int nbox = cmd->num_cliprects;
@@ -489,7 +489,7 @@ static int i915_dispatch_cmdbuffer(drm_device_t * dev,
489 return 0; 489 return 0;
490} 490}
491 491
492static int i915_dispatch_batchbuffer(drm_device_t * dev, 492static int i915_dispatch_batchbuffer(struct drm_device * dev,
493 drm_i915_batchbuffer_t * batch) 493 drm_i915_batchbuffer_t * batch)
494{ 494{
495 drm_i915_private_t *dev_priv = dev->dev_private; 495 drm_i915_private_t *dev_priv = dev->dev_private;
@@ -535,7 +535,7 @@ static int i915_dispatch_batchbuffer(drm_device_t * dev,
535 return 0; 535 return 0;
536} 536}
537 537
538static int i915_dispatch_flip(drm_device_t * dev) 538static int i915_dispatch_flip(struct drm_device * dev)
539{ 539{
540 drm_i915_private_t *dev_priv = dev->dev_private; 540 drm_i915_private_t *dev_priv = dev->dev_private;
541 RING_LOCALS; 541 RING_LOCALS;
@@ -583,7 +583,7 @@ static int i915_dispatch_flip(drm_device_t * dev)
583 return 0; 583 return 0;
584} 584}
585 585
586static int i915_quiescent(drm_device_t * dev) 586static int i915_quiescent(struct drm_device * dev)
587{ 587{
588 drm_i915_private_t *dev_priv = dev->dev_private; 588 drm_i915_private_t *dev_priv = dev->dev_private;
589 589
@@ -792,7 +792,7 @@ static int i915_set_status_page(DRM_IOCTL_ARGS)
792 return 0; 792 return 0;
793} 793}
794 794
795int i915_driver_load(drm_device_t *dev, unsigned long flags) 795int i915_driver_load(struct drm_device *dev, unsigned long flags)
796{ 796{
797 /* i915 has 4 more counters */ 797 /* i915 has 4 more counters */
798 dev->counters += 4; 798 dev->counters += 4;
@@ -804,7 +804,7 @@ int i915_driver_load(drm_device_t *dev, unsigned long flags)
804 return 0; 804 return 0;
805} 805}
806 806
807void i915_driver_lastclose(drm_device_t * dev) 807void i915_driver_lastclose(struct drm_device * dev)
808{ 808{
809 if (dev->dev_private) { 809 if (dev->dev_private) {
810 drm_i915_private_t *dev_priv = dev->dev_private; 810 drm_i915_private_t *dev_priv = dev->dev_private;
@@ -813,7 +813,7 @@ void i915_driver_lastclose(drm_device_t * dev)
813 i915_dma_cleanup(dev); 813 i915_dma_cleanup(dev);
814} 814}
815 815
816void i915_driver_preclose(drm_device_t * dev, DRMFILE filp) 816void i915_driver_preclose(struct drm_device * dev, DRMFILE filp)
817{ 817{
818 if (dev->dev_private) { 818 if (dev->dev_private) {
819 drm_i915_private_t *dev_priv = dev->dev_private; 819 drm_i915_private_t *dev_priv = dev->dev_private;
@@ -854,7 +854,7 @@ int i915_max_ioctl = DRM_ARRAY_SIZE(i915_ioctls);
854 * \returns 854 * \returns
855 * A value of 1 is always retured to indictate every i9x5 is AGP. 855 * A value of 1 is always retured to indictate every i9x5 is AGP.
856 */ 856 */
857int i915_driver_device_is_agp(drm_device_t * dev) 857int i915_driver_device_is_agp(struct drm_device * dev)
858{ 858{
859 return 1; 859 return 1;
860} 860}