diff options
author | Dave Airlie <airlied@linux.ie> | 2007-07-11 01:53:27 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-11 01:53:27 -0400 |
commit | 84b1fd103dbbe01b5905db1444d3fc8afa9a7207 (patch) | |
tree | 2088f4c8e68553e2d4f5d55fa7a714eb3fa09f9e /drivers/char/drm/drm_irq.c | |
parent | c60ce623bd16137627009d05e311d877729f2ad6 (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/drm_irq.c')
-rw-r--r-- | drivers/char/drm/drm_irq.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/char/drm/drm_irq.c b/drivers/char/drm/drm_irq.c index 6b2b3d626ced..bbdad83f6d8c 100644 --- a/drivers/char/drm/drm_irq.c +++ b/drivers/char/drm/drm_irq.c | |||
@@ -53,8 +53,8 @@ | |||
53 | int drm_irq_by_busid(struct inode *inode, struct file *filp, | 53 | int drm_irq_by_busid(struct inode *inode, struct file *filp, |
54 | unsigned int cmd, unsigned long arg) | 54 | unsigned int cmd, unsigned long arg) |
55 | { | 55 | { |
56 | drm_file_t *priv = filp->private_data; | 56 | struct drm_file *priv = filp->private_data; |
57 | drm_device_t *dev = priv->head->dev; | 57 | struct drm_device *dev = priv->head->dev; |
58 | struct drm_irq_busid __user *argp = (void __user *)arg; | 58 | struct drm_irq_busid __user *argp = (void __user *)arg; |
59 | struct drm_irq_busid p; | 59 | struct drm_irq_busid p; |
60 | 60 | ||
@@ -87,7 +87,7 @@ int drm_irq_by_busid(struct inode *inode, struct file *filp, | |||
87 | * \c drm_driver_irq_preinstall() and \c drm_driver_irq_postinstall() functions | 87 | * \c drm_driver_irq_preinstall() and \c drm_driver_irq_postinstall() functions |
88 | * before and after the installation. | 88 | * before and after the installation. |
89 | */ | 89 | */ |
90 | static int drm_irq_install(drm_device_t * dev) | 90 | static int drm_irq_install(struct drm_device * dev) |
91 | { | 91 | { |
92 | int ret; | 92 | int ret; |
93 | unsigned long sh_flags = 0; | 93 | unsigned long sh_flags = 0; |
@@ -155,7 +155,7 @@ static int drm_irq_install(drm_device_t * dev) | |||
155 | * | 155 | * |
156 | * Calls the driver's \c drm_driver_irq_uninstall() function, and stops the irq. | 156 | * Calls the driver's \c drm_driver_irq_uninstall() function, and stops the irq. |
157 | */ | 157 | */ |
158 | int drm_irq_uninstall(drm_device_t * dev) | 158 | int drm_irq_uninstall(struct drm_device * dev) |
159 | { | 159 | { |
160 | int irq_enabled; | 160 | int irq_enabled; |
161 | 161 | ||
@@ -197,8 +197,8 @@ EXPORT_SYMBOL(drm_irq_uninstall); | |||
197 | int drm_control(struct inode *inode, struct file *filp, | 197 | int drm_control(struct inode *inode, struct file *filp, |
198 | unsigned int cmd, unsigned long arg) | 198 | unsigned int cmd, unsigned long arg) |
199 | { | 199 | { |
200 | drm_file_t *priv = filp->private_data; | 200 | struct drm_file *priv = filp->private_data; |
201 | drm_device_t *dev = priv->head->dev; | 201 | struct drm_device *dev = priv->head->dev; |
202 | struct drm_control ctl; | 202 | struct drm_control ctl; |
203 | 203 | ||
204 | /* if we haven't irq we fallback for compatibility reasons - this used to be a separate function in drm_dma.h */ | 204 | /* if we haven't irq we fallback for compatibility reasons - this used to be a separate function in drm_dma.h */ |
@@ -244,8 +244,8 @@ int drm_control(struct inode *inode, struct file *filp, | |||
244 | */ | 244 | */ |
245 | int drm_wait_vblank(DRM_IOCTL_ARGS) | 245 | int drm_wait_vblank(DRM_IOCTL_ARGS) |
246 | { | 246 | { |
247 | drm_file_t *priv = filp->private_data; | 247 | struct drm_file *priv = filp->private_data; |
248 | drm_device_t *dev = priv->head->dev; | 248 | struct drm_device *dev = priv->head->dev; |
249 | union drm_wait_vblank __user *argp = (void __user *)data; | 249 | union drm_wait_vblank __user *argp = (void __user *)data; |
250 | union drm_wait_vblank vblwait; | 250 | union drm_wait_vblank vblwait; |
251 | struct timeval now; | 251 | struct timeval now; |
@@ -371,7 +371,7 @@ int drm_wait_vblank(DRM_IOCTL_ARGS) | |||
371 | * | 371 | * |
372 | * If a signal is not requested, then calls vblank_wait(). | 372 | * If a signal is not requested, then calls vblank_wait(). |
373 | */ | 373 | */ |
374 | void drm_vbl_send_signals(drm_device_t * dev) | 374 | void drm_vbl_send_signals(struct drm_device * dev) |
375 | { | 375 | { |
376 | unsigned long flags; | 376 | unsigned long flags; |
377 | int i; | 377 | int i; |
@@ -416,7 +416,7 @@ EXPORT_SYMBOL(drm_vbl_send_signals); | |||
416 | */ | 416 | */ |
417 | static void drm_locked_tasklet_func(unsigned long data) | 417 | static void drm_locked_tasklet_func(unsigned long data) |
418 | { | 418 | { |
419 | drm_device_t *dev = (drm_device_t*)data; | 419 | struct drm_device *dev = (struct drm_device *)data; |
420 | unsigned long irqflags; | 420 | unsigned long irqflags; |
421 | 421 | ||
422 | spin_lock_irqsave(&dev->tasklet_lock, irqflags); | 422 | spin_lock_irqsave(&dev->tasklet_lock, irqflags); |
@@ -453,7 +453,7 @@ static void drm_locked_tasklet_func(unsigned long data) | |||
453 | * context, it must not make any assumptions about this. Also, the HW lock will | 453 | * context, it must not make any assumptions about this. Also, the HW lock will |
454 | * be held with the kernel context or any client context. | 454 | * be held with the kernel context or any client context. |
455 | */ | 455 | */ |
456 | void drm_locked_tasklet(drm_device_t *dev, void (*func)(drm_device_t*)) | 456 | void drm_locked_tasklet(struct drm_device *dev, void (*func)(struct drm_device *)) |
457 | { | 457 | { |
458 | unsigned long irqflags; | 458 | unsigned long irqflags; |
459 | static DECLARE_TASKLET(drm_tasklet, drm_locked_tasklet_func, 0); | 459 | static DECLARE_TASKLET(drm_tasklet, drm_locked_tasklet_func, 0); |