aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/i915_irq.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_irq.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_irq.c')
-rw-r--r--drivers/char/drm/i915_irq.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/char/drm/i915_irq.c b/drivers/char/drm/i915_irq.c
index a5989315ec8c..4b4b2ce89863 100644
--- a/drivers/char/drm/i915_irq.c
+++ b/drivers/char/drm/i915_irq.c
@@ -42,7 +42,7 @@
42 * 42 *
43 * This function will be called with the HW lock held. 43 * This function will be called with the HW lock held.
44 */ 44 */
45static void i915_vblank_tasklet(drm_device_t *dev) 45static void i915_vblank_tasklet(struct drm_device *dev)
46{ 46{
47 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 47 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
48 unsigned long irqflags; 48 unsigned long irqflags;
@@ -211,7 +211,7 @@ static void i915_vblank_tasklet(drm_device_t *dev)
211 211
212irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS) 212irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
213{ 213{
214 drm_device_t *dev = (drm_device_t *) arg; 214 struct drm_device *dev = (struct drm_device *) arg;
215 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 215 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
216 u16 temp; 216 u16 temp;
217 217
@@ -257,7 +257,7 @@ irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
257 return IRQ_HANDLED; 257 return IRQ_HANDLED;
258} 258}
259 259
260static int i915_emit_irq(drm_device_t * dev) 260static int i915_emit_irq(struct drm_device * dev)
261{ 261{
262 drm_i915_private_t *dev_priv = dev->dev_private; 262 drm_i915_private_t *dev_priv = dev->dev_private;
263 RING_LOCALS; 263 RING_LOCALS;
@@ -283,7 +283,7 @@ static int i915_emit_irq(drm_device_t * dev)
283 return dev_priv->counter; 283 return dev_priv->counter;
284} 284}
285 285
286static int i915_wait_irq(drm_device_t * dev, int irq_nr) 286static int i915_wait_irq(struct drm_device * dev, int irq_nr)
287{ 287{
288 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 288 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
289 int ret = 0; 289 int ret = 0;
@@ -309,7 +309,7 @@ static int i915_wait_irq(drm_device_t * dev, int irq_nr)
309 return ret; 309 return ret;
310} 310}
311 311
312static int i915_driver_vblank_do_wait(drm_device_t *dev, unsigned int *sequence, 312static int i915_driver_vblank_do_wait(struct drm_device *dev, unsigned int *sequence,
313 atomic_t *counter) 313 atomic_t *counter)
314{ 314{
315 drm_i915_private_t *dev_priv = dev->dev_private; 315 drm_i915_private_t *dev_priv = dev->dev_private;
@@ -331,12 +331,12 @@ static int i915_driver_vblank_do_wait(drm_device_t *dev, unsigned int *sequence,
331} 331}
332 332
333 333
334int i915_driver_vblank_wait(drm_device_t *dev, unsigned int *sequence) 334int i915_driver_vblank_wait(struct drm_device *dev, unsigned int *sequence)
335{ 335{
336 return i915_driver_vblank_do_wait(dev, sequence, &dev->vbl_received); 336 return i915_driver_vblank_do_wait(dev, sequence, &dev->vbl_received);
337} 337}
338 338
339int i915_driver_vblank_wait2(drm_device_t *dev, unsigned int *sequence) 339int i915_driver_vblank_wait2(struct drm_device *dev, unsigned int *sequence)
340{ 340{
341 return i915_driver_vblank_do_wait(dev, sequence, &dev->vbl_received2); 341 return i915_driver_vblank_do_wait(dev, sequence, &dev->vbl_received2);
342} 342}
@@ -389,7 +389,7 @@ int i915_irq_wait(DRM_IOCTL_ARGS)
389 return i915_wait_irq(dev, irqwait.irq_seq); 389 return i915_wait_irq(dev, irqwait.irq_seq);
390} 390}
391 391
392static void i915_enable_interrupt (drm_device_t *dev) 392static void i915_enable_interrupt (struct drm_device *dev)
393{ 393{
394 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 394 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
395 u16 flag; 395 u16 flag;
@@ -569,7 +569,7 @@ int i915_vblank_swap(DRM_IOCTL_ARGS)
569 569
570/* drm_dma.h hooks 570/* drm_dma.h hooks
571*/ 571*/
572void i915_driver_irq_preinstall(drm_device_t * dev) 572void i915_driver_irq_preinstall(struct drm_device * dev)
573{ 573{
574 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 574 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
575 575
@@ -578,7 +578,7 @@ void i915_driver_irq_preinstall(drm_device_t * dev)
578 I915_WRITE16(I915REG_INT_ENABLE_R, 0x0); 578 I915_WRITE16(I915REG_INT_ENABLE_R, 0x0);
579} 579}
580 580
581void i915_driver_irq_postinstall(drm_device_t * dev) 581void i915_driver_irq_postinstall(struct drm_device * dev)
582{ 582{
583 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 583 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
584 584
@@ -592,7 +592,7 @@ void i915_driver_irq_postinstall(drm_device_t * dev)
592 DRM_INIT_WAITQUEUE(&dev_priv->irq_queue); 592 DRM_INIT_WAITQUEUE(&dev_priv->irq_queue);
593} 593}
594 594
595void i915_driver_irq_uninstall(drm_device_t * dev) 595void i915_driver_irq_uninstall(struct drm_device * dev)
596{ 596{
597 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 597 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
598 u16 temp; 598 u16 temp;