diff options
author | Dave Airlie <airlied@linux.ie> | 2007-07-11 02:09:54 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-11 02:09:54 -0400 |
commit | eddca551a3e7be2fed54282f255f18efe9ead131 (patch) | |
tree | 7beb8c03af45cc9659a3ff5e6483f2ed7c31527d /drivers/char/drm/i810_dma.c | |
parent | 84b1fd103dbbe01b5905db1444d3fc8afa9a7207 (diff) |
drm: fixup other drivers for typedef removals
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/i810_dma.c')
-rw-r--r-- | drivers/char/drm/i810_dma.c | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/drivers/char/drm/i810_dma.c b/drivers/char/drm/i810_dma.c index 53b8a7931955..ca82cddb4a22 100644 --- a/drivers/char/drm/i810_dma.c +++ b/drivers/char/drm/i810_dma.c | |||
@@ -45,7 +45,7 @@ | |||
45 | #define I810_BUF_UNMAPPED 0 | 45 | #define I810_BUF_UNMAPPED 0 |
46 | #define I810_BUF_MAPPED 1 | 46 | #define I810_BUF_MAPPED 1 |
47 | 47 | ||
48 | static drm_buf_t *i810_freelist_get(drm_device_t * dev) | 48 | static drm_buf_t *i810_freelist_get(struct drm_device * dev) |
49 | { | 49 | { |
50 | drm_device_dma_t *dma = dev->dma; | 50 | drm_device_dma_t *dma = dev->dma; |
51 | int i; | 51 | int i; |
@@ -70,7 +70,7 @@ static drm_buf_t *i810_freelist_get(drm_device_t * dev) | |||
70 | * yet, the hardware updates in use for us once its on the ring buffer. | 70 | * yet, the hardware updates in use for us once its on the ring buffer. |
71 | */ | 71 | */ |
72 | 72 | ||
73 | static int i810_freelist_put(drm_device_t * dev, drm_buf_t * buf) | 73 | static int i810_freelist_put(struct drm_device * dev, drm_buf_t * buf) |
74 | { | 74 | { |
75 | drm_i810_buf_priv_t *buf_priv = buf->dev_private; | 75 | drm_i810_buf_priv_t *buf_priv = buf->dev_private; |
76 | int used; | 76 | int used; |
@@ -87,8 +87,8 @@ static int i810_freelist_put(drm_device_t * dev, drm_buf_t * buf) | |||
87 | 87 | ||
88 | static int i810_mmap_buffers(struct file *filp, struct vm_area_struct *vma) | 88 | static int i810_mmap_buffers(struct file *filp, struct vm_area_struct *vma) |
89 | { | 89 | { |
90 | drm_file_t *priv = filp->private_data; | 90 | struct drm_file *priv = filp->private_data; |
91 | drm_device_t *dev; | 91 | struct drm_device *dev; |
92 | drm_i810_private_t *dev_priv; | 92 | drm_i810_private_t *dev_priv; |
93 | drm_buf_t *buf; | 93 | drm_buf_t *buf; |
94 | drm_i810_buf_priv_t *buf_priv; | 94 | drm_i810_buf_priv_t *buf_priv; |
@@ -122,8 +122,8 @@ static const struct file_operations i810_buffer_fops = { | |||
122 | 122 | ||
123 | static int i810_map_buffer(drm_buf_t * buf, struct file *filp) | 123 | static int i810_map_buffer(drm_buf_t * buf, struct file *filp) |
124 | { | 124 | { |
125 | drm_file_t *priv = filp->private_data; | 125 | struct drm_file *priv = filp->private_data; |
126 | drm_device_t *dev = priv->head->dev; | 126 | struct drm_device *dev = priv->head->dev; |
127 | drm_i810_buf_priv_t *buf_priv = buf->dev_private; | 127 | drm_i810_buf_priv_t *buf_priv = buf->dev_private; |
128 | drm_i810_private_t *dev_priv = dev->dev_private; | 128 | drm_i810_private_t *dev_priv = dev->dev_private; |
129 | const struct file_operations *old_fops; | 129 | const struct file_operations *old_fops; |
@@ -172,7 +172,7 @@ static int i810_unmap_buffer(drm_buf_t * buf) | |||
172 | return retcode; | 172 | return retcode; |
173 | } | 173 | } |
174 | 174 | ||
175 | static int i810_dma_get_buffer(drm_device_t * dev, drm_i810_dma_t * d, | 175 | static int i810_dma_get_buffer(struct drm_device * dev, drm_i810_dma_t * d, |
176 | struct file *filp) | 176 | struct file *filp) |
177 | { | 177 | { |
178 | drm_buf_t *buf; | 178 | drm_buf_t *buf; |
@@ -202,7 +202,7 @@ static int i810_dma_get_buffer(drm_device_t * dev, drm_i810_dma_t * d, | |||
202 | return retcode; | 202 | return retcode; |
203 | } | 203 | } |
204 | 204 | ||
205 | static int i810_dma_cleanup(drm_device_t * dev) | 205 | static int i810_dma_cleanup(struct drm_device * dev) |
206 | { | 206 | { |
207 | drm_device_dma_t *dma = dev->dma; | 207 | drm_device_dma_t *dma = dev->dma; |
208 | 208 | ||
@@ -243,7 +243,7 @@ static int i810_dma_cleanup(drm_device_t * dev) | |||
243 | return 0; | 243 | return 0; |
244 | } | 244 | } |
245 | 245 | ||
246 | static int i810_wait_ring(drm_device_t * dev, int n) | 246 | static int i810_wait_ring(struct drm_device * dev, int n) |
247 | { | 247 | { |
248 | drm_i810_private_t *dev_priv = dev->dev_private; | 248 | drm_i810_private_t *dev_priv = dev->dev_private; |
249 | drm_i810_ring_buffer_t *ring = &(dev_priv->ring); | 249 | drm_i810_ring_buffer_t *ring = &(dev_priv->ring); |
@@ -276,7 +276,7 @@ static int i810_wait_ring(drm_device_t * dev, int n) | |||
276 | return iters; | 276 | return iters; |
277 | } | 277 | } |
278 | 278 | ||
279 | static void i810_kernel_lost_context(drm_device_t * dev) | 279 | static void i810_kernel_lost_context(struct drm_device * dev) |
280 | { | 280 | { |
281 | drm_i810_private_t *dev_priv = dev->dev_private; | 281 | drm_i810_private_t *dev_priv = dev->dev_private; |
282 | drm_i810_ring_buffer_t *ring = &(dev_priv->ring); | 282 | drm_i810_ring_buffer_t *ring = &(dev_priv->ring); |
@@ -288,7 +288,7 @@ static void i810_kernel_lost_context(drm_device_t * dev) | |||
288 | ring->space += ring->Size; | 288 | ring->space += ring->Size; |
289 | } | 289 | } |
290 | 290 | ||
291 | static int i810_freelist_init(drm_device_t * dev, drm_i810_private_t * dev_priv) | 291 | static int i810_freelist_init(struct drm_device * dev, drm_i810_private_t * dev_priv) |
292 | { | 292 | { |
293 | drm_device_dma_t *dma = dev->dma; | 293 | drm_device_dma_t *dma = dev->dma; |
294 | int my_idx = 24; | 294 | int my_idx = 24; |
@@ -323,7 +323,7 @@ static int i810_freelist_init(drm_device_t * dev, drm_i810_private_t * dev_priv) | |||
323 | return 0; | 323 | return 0; |
324 | } | 324 | } |
325 | 325 | ||
326 | static int i810_dma_initialize(drm_device_t * dev, | 326 | static int i810_dma_initialize(struct drm_device * dev, |
327 | drm_i810_private_t * dev_priv, | 327 | drm_i810_private_t * dev_priv, |
328 | drm_i810_init_t * init) | 328 | drm_i810_init_t * init) |
329 | { | 329 | { |
@@ -476,8 +476,8 @@ static int i810_dma_init_compat(drm_i810_init_t * init, unsigned long arg) | |||
476 | static int i810_dma_init(struct inode *inode, struct file *filp, | 476 | static int i810_dma_init(struct inode *inode, struct file *filp, |
477 | unsigned int cmd, unsigned long arg) | 477 | unsigned int cmd, unsigned long arg) |
478 | { | 478 | { |
479 | drm_file_t *priv = filp->private_data; | 479 | struct drm_file *priv = filp->private_data; |
480 | drm_device_t *dev = priv->head->dev; | 480 | struct drm_device *dev = priv->head->dev; |
481 | drm_i810_private_t *dev_priv; | 481 | drm_i810_private_t *dev_priv; |
482 | drm_i810_init_t init; | 482 | drm_i810_init_t init; |
483 | int retcode = 0; | 483 | int retcode = 0; |
@@ -534,7 +534,7 @@ static int i810_dma_init(struct inode *inode, struct file *filp, | |||
534 | * Use 'volatile' & local var tmp to force the emitted values to be | 534 | * Use 'volatile' & local var tmp to force the emitted values to be |
535 | * identical to the verified ones. | 535 | * identical to the verified ones. |
536 | */ | 536 | */ |
537 | static void i810EmitContextVerified(drm_device_t * dev, | 537 | static void i810EmitContextVerified(struct drm_device * dev, |
538 | volatile unsigned int *code) | 538 | volatile unsigned int *code) |
539 | { | 539 | { |
540 | drm_i810_private_t *dev_priv = dev->dev_private; | 540 | drm_i810_private_t *dev_priv = dev->dev_private; |
@@ -567,7 +567,7 @@ static void i810EmitContextVerified(drm_device_t * dev, | |||
567 | ADVANCE_LP_RING(); | 567 | ADVANCE_LP_RING(); |
568 | } | 568 | } |
569 | 569 | ||
570 | static void i810EmitTexVerified(drm_device_t * dev, volatile unsigned int *code) | 570 | static void i810EmitTexVerified(struct drm_device * dev, volatile unsigned int *code) |
571 | { | 571 | { |
572 | drm_i810_private_t *dev_priv = dev->dev_private; | 572 | drm_i810_private_t *dev_priv = dev->dev_private; |
573 | int i, j = 0; | 573 | int i, j = 0; |
@@ -600,7 +600,7 @@ static void i810EmitTexVerified(drm_device_t * dev, volatile unsigned int *code) | |||
600 | 600 | ||
601 | /* Need to do some additional checking when setting the dest buffer. | 601 | /* Need to do some additional checking when setting the dest buffer. |
602 | */ | 602 | */ |
603 | static void i810EmitDestVerified(drm_device_t * dev, | 603 | static void i810EmitDestVerified(struct drm_device * dev, |
604 | volatile unsigned int *code) | 604 | volatile unsigned int *code) |
605 | { | 605 | { |
606 | drm_i810_private_t *dev_priv = dev->dev_private; | 606 | drm_i810_private_t *dev_priv = dev->dev_private; |
@@ -635,7 +635,7 @@ static void i810EmitDestVerified(drm_device_t * dev, | |||
635 | ADVANCE_LP_RING(); | 635 | ADVANCE_LP_RING(); |
636 | } | 636 | } |
637 | 637 | ||
638 | static void i810EmitState(drm_device_t * dev) | 638 | static void i810EmitState(struct drm_device * dev) |
639 | { | 639 | { |
640 | drm_i810_private_t *dev_priv = dev->dev_private; | 640 | drm_i810_private_t *dev_priv = dev->dev_private; |
641 | drm_i810_sarea_t *sarea_priv = dev_priv->sarea_priv; | 641 | drm_i810_sarea_t *sarea_priv = dev_priv->sarea_priv; |
@@ -666,14 +666,14 @@ static void i810EmitState(drm_device_t * dev) | |||
666 | 666 | ||
667 | /* need to verify | 667 | /* need to verify |
668 | */ | 668 | */ |
669 | static void i810_dma_dispatch_clear(drm_device_t * dev, int flags, | 669 | static void i810_dma_dispatch_clear(struct drm_device * dev, int flags, |
670 | unsigned int clear_color, | 670 | unsigned int clear_color, |
671 | unsigned int clear_zval) | 671 | unsigned int clear_zval) |
672 | { | 672 | { |
673 | drm_i810_private_t *dev_priv = dev->dev_private; | 673 | drm_i810_private_t *dev_priv = dev->dev_private; |
674 | drm_i810_sarea_t *sarea_priv = dev_priv->sarea_priv; | 674 | drm_i810_sarea_t *sarea_priv = dev_priv->sarea_priv; |
675 | int nbox = sarea_priv->nbox; | 675 | int nbox = sarea_priv->nbox; |
676 | drm_clip_rect_t *pbox = sarea_priv->boxes; | 676 | struct drm_clip_rect *pbox = sarea_priv->boxes; |
677 | int pitch = dev_priv->pitch; | 677 | int pitch = dev_priv->pitch; |
678 | int cpp = 2; | 678 | int cpp = 2; |
679 | int i; | 679 | int i; |
@@ -741,12 +741,12 @@ static void i810_dma_dispatch_clear(drm_device_t * dev, int flags, | |||
741 | } | 741 | } |
742 | } | 742 | } |
743 | 743 | ||
744 | static void i810_dma_dispatch_swap(drm_device_t * dev) | 744 | static void i810_dma_dispatch_swap(struct drm_device * dev) |
745 | { | 745 | { |
746 | drm_i810_private_t *dev_priv = dev->dev_private; | 746 | drm_i810_private_t *dev_priv = dev->dev_private; |
747 | drm_i810_sarea_t *sarea_priv = dev_priv->sarea_priv; | 747 | drm_i810_sarea_t *sarea_priv = dev_priv->sarea_priv; |
748 | int nbox = sarea_priv->nbox; | 748 | int nbox = sarea_priv->nbox; |
749 | drm_clip_rect_t *pbox = sarea_priv->boxes; | 749 | struct drm_clip_rect *pbox = sarea_priv->boxes; |
750 | int pitch = dev_priv->pitch; | 750 | int pitch = dev_priv->pitch; |
751 | int cpp = 2; | 751 | int cpp = 2; |
752 | int i; | 752 | int i; |
@@ -787,13 +787,13 @@ static void i810_dma_dispatch_swap(drm_device_t * dev) | |||
787 | } | 787 | } |
788 | } | 788 | } |
789 | 789 | ||
790 | static void i810_dma_dispatch_vertex(drm_device_t * dev, | 790 | static void i810_dma_dispatch_vertex(struct drm_device * dev, |
791 | drm_buf_t * buf, int discard, int used) | 791 | drm_buf_t * buf, int discard, int used) |
792 | { | 792 | { |
793 | drm_i810_private_t *dev_priv = dev->dev_private; | 793 | drm_i810_private_t *dev_priv = dev->dev_private; |
794 | drm_i810_buf_priv_t *buf_priv = buf->dev_private; | 794 | drm_i810_buf_priv_t *buf_priv = buf->dev_private; |
795 | drm_i810_sarea_t *sarea_priv = dev_priv->sarea_priv; | 795 | drm_i810_sarea_t *sarea_priv = dev_priv->sarea_priv; |
796 | drm_clip_rect_t *box = sarea_priv->boxes; | 796 | struct drm_clip_rect *box = sarea_priv->boxes; |
797 | int nbox = sarea_priv->nbox; | 797 | int nbox = sarea_priv->nbox; |
798 | unsigned long address = (unsigned long)buf->bus_address; | 798 | unsigned long address = (unsigned long)buf->bus_address; |
799 | unsigned long start = address - dev->agp->base; | 799 | unsigned long start = address - dev->agp->base; |
@@ -867,7 +867,7 @@ static void i810_dma_dispatch_vertex(drm_device_t * dev, | |||
867 | } | 867 | } |
868 | } | 868 | } |
869 | 869 | ||
870 | static void i810_dma_dispatch_flip(drm_device_t * dev) | 870 | static void i810_dma_dispatch_flip(struct drm_device * dev) |
871 | { | 871 | { |
872 | drm_i810_private_t *dev_priv = dev->dev_private; | 872 | drm_i810_private_t *dev_priv = dev->dev_private; |
873 | int pitch = dev_priv->pitch; | 873 | int pitch = dev_priv->pitch; |
@@ -914,7 +914,7 @@ static void i810_dma_dispatch_flip(drm_device_t * dev) | |||
914 | 914 | ||
915 | } | 915 | } |
916 | 916 | ||
917 | static void i810_dma_quiescent(drm_device_t * dev) | 917 | static void i810_dma_quiescent(struct drm_device * dev) |
918 | { | 918 | { |
919 | drm_i810_private_t *dev_priv = dev->dev_private; | 919 | drm_i810_private_t *dev_priv = dev->dev_private; |
920 | RING_LOCALS; | 920 | RING_LOCALS; |
@@ -933,7 +933,7 @@ static void i810_dma_quiescent(drm_device_t * dev) | |||
933 | i810_wait_ring(dev, dev_priv->ring.Size - 8); | 933 | i810_wait_ring(dev, dev_priv->ring.Size - 8); |
934 | } | 934 | } |
935 | 935 | ||
936 | static int i810_flush_queue(drm_device_t * dev) | 936 | static int i810_flush_queue(struct drm_device * dev) |
937 | { | 937 | { |
938 | drm_i810_private_t *dev_priv = dev->dev_private; | 938 | drm_i810_private_t *dev_priv = dev->dev_private; |
939 | drm_device_dma_t *dma = dev->dma; | 939 | drm_device_dma_t *dma = dev->dma; |
@@ -968,7 +968,7 @@ static int i810_flush_queue(drm_device_t * dev) | |||
968 | } | 968 | } |
969 | 969 | ||
970 | /* Must be called with the lock held */ | 970 | /* Must be called with the lock held */ |
971 | static void i810_reclaim_buffers(drm_device_t * dev, struct file *filp) | 971 | static void i810_reclaim_buffers(struct drm_device * dev, struct file *filp) |
972 | { | 972 | { |
973 | drm_device_dma_t *dma = dev->dma; | 973 | drm_device_dma_t *dma = dev->dma; |
974 | int i; | 974 | int i; |
@@ -1001,8 +1001,8 @@ static void i810_reclaim_buffers(drm_device_t * dev, struct file *filp) | |||
1001 | static int i810_flush_ioctl(struct inode *inode, struct file *filp, | 1001 | static int i810_flush_ioctl(struct inode *inode, struct file *filp, |
1002 | unsigned int cmd, unsigned long arg) | 1002 | unsigned int cmd, unsigned long arg) |
1003 | { | 1003 | { |
1004 | drm_file_t *priv = filp->private_data; | 1004 | struct drm_file *priv = filp->private_data; |
1005 | drm_device_t *dev = priv->head->dev; | 1005 | struct drm_device *dev = priv->head->dev; |
1006 | 1006 | ||
1007 | LOCK_TEST_WITH_RETURN(dev, filp); | 1007 | LOCK_TEST_WITH_RETURN(dev, filp); |
1008 | 1008 | ||
@@ -1013,8 +1013,8 @@ static int i810_flush_ioctl(struct inode *inode, struct file *filp, | |||
1013 | static int i810_dma_vertex(struct inode *inode, struct file *filp, | 1013 | static int i810_dma_vertex(struct inode *inode, struct file *filp, |
1014 | unsigned int cmd, unsigned long arg) | 1014 | unsigned int cmd, unsigned long arg) |
1015 | { | 1015 | { |
1016 | drm_file_t *priv = filp->private_data; | 1016 | struct drm_file *priv = filp->private_data; |
1017 | drm_device_t *dev = priv->head->dev; | 1017 | struct drm_device *dev = priv->head->dev; |
1018 | drm_device_dma_t *dma = dev->dma; | 1018 | drm_device_dma_t *dma = dev->dma; |
1019 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; | 1019 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; |
1020 | u32 *hw_status = dev_priv->hw_status_page; | 1020 | u32 *hw_status = dev_priv->hw_status_page; |
@@ -1049,8 +1049,8 @@ static int i810_dma_vertex(struct inode *inode, struct file *filp, | |||
1049 | static int i810_clear_bufs(struct inode *inode, struct file *filp, | 1049 | static int i810_clear_bufs(struct inode *inode, struct file *filp, |
1050 | unsigned int cmd, unsigned long arg) | 1050 | unsigned int cmd, unsigned long arg) |
1051 | { | 1051 | { |
1052 | drm_file_t *priv = filp->private_data; | 1052 | struct drm_file *priv = filp->private_data; |
1053 | drm_device_t *dev = priv->head->dev; | 1053 | struct drm_device *dev = priv->head->dev; |
1054 | drm_i810_clear_t clear; | 1054 | drm_i810_clear_t clear; |
1055 | 1055 | ||
1056 | if (copy_from_user | 1056 | if (copy_from_user |
@@ -1072,8 +1072,8 @@ static int i810_clear_bufs(struct inode *inode, struct file *filp, | |||
1072 | static int i810_swap_bufs(struct inode *inode, struct file *filp, | 1072 | static int i810_swap_bufs(struct inode *inode, struct file *filp, |
1073 | unsigned int cmd, unsigned long arg) | 1073 | unsigned int cmd, unsigned long arg) |
1074 | { | 1074 | { |
1075 | drm_file_t *priv = filp->private_data; | 1075 | struct drm_file *priv = filp->private_data; |
1076 | drm_device_t *dev = priv->head->dev; | 1076 | struct drm_device *dev = priv->head->dev; |
1077 | 1077 | ||
1078 | DRM_DEBUG("i810_swap_bufs\n"); | 1078 | DRM_DEBUG("i810_swap_bufs\n"); |
1079 | 1079 | ||
@@ -1086,8 +1086,8 @@ static int i810_swap_bufs(struct inode *inode, struct file *filp, | |||
1086 | static int i810_getage(struct inode *inode, struct file *filp, unsigned int cmd, | 1086 | static int i810_getage(struct inode *inode, struct file *filp, unsigned int cmd, |
1087 | unsigned long arg) | 1087 | unsigned long arg) |
1088 | { | 1088 | { |
1089 | drm_file_t *priv = filp->private_data; | 1089 | struct drm_file *priv = filp->private_data; |
1090 | drm_device_t *dev = priv->head->dev; | 1090 | struct drm_device *dev = priv->head->dev; |
1091 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; | 1091 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; |
1092 | u32 *hw_status = dev_priv->hw_status_page; | 1092 | u32 *hw_status = dev_priv->hw_status_page; |
1093 | drm_i810_sarea_t *sarea_priv = (drm_i810_sarea_t *) | 1093 | drm_i810_sarea_t *sarea_priv = (drm_i810_sarea_t *) |
@@ -1100,8 +1100,8 @@ static int i810_getage(struct inode *inode, struct file *filp, unsigned int cmd, | |||
1100 | static int i810_getbuf(struct inode *inode, struct file *filp, unsigned int cmd, | 1100 | static int i810_getbuf(struct inode *inode, struct file *filp, unsigned int cmd, |
1101 | unsigned long arg) | 1101 | unsigned long arg) |
1102 | { | 1102 | { |
1103 | drm_file_t *priv = filp->private_data; | 1103 | struct drm_file *priv = filp->private_data; |
1104 | drm_device_t *dev = priv->head->dev; | 1104 | struct drm_device *dev = priv->head->dev; |
1105 | int retcode = 0; | 1105 | int retcode = 0; |
1106 | drm_i810_dma_t d; | 1106 | drm_i810_dma_t d; |
1107 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; | 1107 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; |
@@ -1121,7 +1121,7 @@ static int i810_getbuf(struct inode *inode, struct file *filp, unsigned int cmd, | |||
1121 | DRM_DEBUG("i810_dma: %d returning %d, granted = %d\n", | 1121 | DRM_DEBUG("i810_dma: %d returning %d, granted = %d\n", |
1122 | current->pid, retcode, d.granted); | 1122 | current->pid, retcode, d.granted); |
1123 | 1123 | ||
1124 | if (copy_to_user((drm_dma_t __user *) arg, &d, sizeof(d))) | 1124 | if (copy_to_user((void __user *) arg, &d, sizeof(d))) |
1125 | return -EFAULT; | 1125 | return -EFAULT; |
1126 | sarea_priv->last_dispatch = (int)hw_status[5]; | 1126 | sarea_priv->last_dispatch = (int)hw_status[5]; |
1127 | 1127 | ||
@@ -1142,7 +1142,7 @@ static int i810_docopy(struct inode *inode, struct file *filp, unsigned int cmd, | |||
1142 | return 0; | 1142 | return 0; |
1143 | } | 1143 | } |
1144 | 1144 | ||
1145 | static void i810_dma_dispatch_mc(drm_device_t * dev, drm_buf_t * buf, int used, | 1145 | static void i810_dma_dispatch_mc(struct drm_device * dev, drm_buf_t * buf, int used, |
1146 | unsigned int last_render) | 1146 | unsigned int last_render) |
1147 | { | 1147 | { |
1148 | drm_i810_private_t *dev_priv = dev->dev_private; | 1148 | drm_i810_private_t *dev_priv = dev->dev_private; |
@@ -1205,8 +1205,8 @@ static void i810_dma_dispatch_mc(drm_device_t * dev, drm_buf_t * buf, int used, | |||
1205 | static int i810_dma_mc(struct inode *inode, struct file *filp, | 1205 | static int i810_dma_mc(struct inode *inode, struct file *filp, |
1206 | unsigned int cmd, unsigned long arg) | 1206 | unsigned int cmd, unsigned long arg) |
1207 | { | 1207 | { |
1208 | drm_file_t *priv = filp->private_data; | 1208 | struct drm_file *priv = filp->private_data; |
1209 | drm_device_t *dev = priv->head->dev; | 1209 | struct drm_device *dev = priv->head->dev; |
1210 | drm_device_dma_t *dma = dev->dma; | 1210 | drm_device_dma_t *dma = dev->dma; |
1211 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; | 1211 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; |
1212 | u32 *hw_status = dev_priv->hw_status_page; | 1212 | u32 *hw_status = dev_priv->hw_status_page; |
@@ -1236,8 +1236,8 @@ static int i810_dma_mc(struct inode *inode, struct file *filp, | |||
1236 | static int i810_rstatus(struct inode *inode, struct file *filp, | 1236 | static int i810_rstatus(struct inode *inode, struct file *filp, |
1237 | unsigned int cmd, unsigned long arg) | 1237 | unsigned int cmd, unsigned long arg) |
1238 | { | 1238 | { |
1239 | drm_file_t *priv = filp->private_data; | 1239 | struct drm_file *priv = filp->private_data; |
1240 | drm_device_t *dev = priv->head->dev; | 1240 | struct drm_device *dev = priv->head->dev; |
1241 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; | 1241 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; |
1242 | 1242 | ||
1243 | return (int)(((u32 *) (dev_priv->hw_status_page))[4]); | 1243 | return (int)(((u32 *) (dev_priv->hw_status_page))[4]); |
@@ -1246,8 +1246,8 @@ static int i810_rstatus(struct inode *inode, struct file *filp, | |||
1246 | static int i810_ov0_info(struct inode *inode, struct file *filp, | 1246 | static int i810_ov0_info(struct inode *inode, struct file *filp, |
1247 | unsigned int cmd, unsigned long arg) | 1247 | unsigned int cmd, unsigned long arg) |
1248 | { | 1248 | { |
1249 | drm_file_t *priv = filp->private_data; | 1249 | struct drm_file *priv = filp->private_data; |
1250 | drm_device_t *dev = priv->head->dev; | 1250 | struct drm_device *dev = priv->head->dev; |
1251 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; | 1251 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; |
1252 | drm_i810_overlay_t data; | 1252 | drm_i810_overlay_t data; |
1253 | 1253 | ||
@@ -1262,8 +1262,8 @@ static int i810_ov0_info(struct inode *inode, struct file *filp, | |||
1262 | static int i810_fstatus(struct inode *inode, struct file *filp, | 1262 | static int i810_fstatus(struct inode *inode, struct file *filp, |
1263 | unsigned int cmd, unsigned long arg) | 1263 | unsigned int cmd, unsigned long arg) |
1264 | { | 1264 | { |
1265 | drm_file_t *priv = filp->private_data; | 1265 | struct drm_file *priv = filp->private_data; |
1266 | drm_device_t *dev = priv->head->dev; | 1266 | struct drm_device *dev = priv->head->dev; |
1267 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; | 1267 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; |
1268 | 1268 | ||
1269 | LOCK_TEST_WITH_RETURN(dev, filp); | 1269 | LOCK_TEST_WITH_RETURN(dev, filp); |
@@ -1274,8 +1274,8 @@ static int i810_fstatus(struct inode *inode, struct file *filp, | |||
1274 | static int i810_ov0_flip(struct inode *inode, struct file *filp, | 1274 | static int i810_ov0_flip(struct inode *inode, struct file *filp, |
1275 | unsigned int cmd, unsigned long arg) | 1275 | unsigned int cmd, unsigned long arg) |
1276 | { | 1276 | { |
1277 | drm_file_t *priv = filp->private_data; | 1277 | struct drm_file *priv = filp->private_data; |
1278 | drm_device_t *dev = priv->head->dev; | 1278 | struct drm_device *dev = priv->head->dev; |
1279 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; | 1279 | drm_i810_private_t *dev_priv = (drm_i810_private_t *) dev->dev_private; |
1280 | 1280 | ||
1281 | LOCK_TEST_WITH_RETURN(dev, filp); | 1281 | LOCK_TEST_WITH_RETURN(dev, filp); |
@@ -1288,7 +1288,7 @@ static int i810_ov0_flip(struct inode *inode, struct file *filp, | |||
1288 | 1288 | ||
1289 | /* Not sure why this isn't set all the time: | 1289 | /* Not sure why this isn't set all the time: |
1290 | */ | 1290 | */ |
1291 | static void i810_do_init_pageflip(drm_device_t * dev) | 1291 | static void i810_do_init_pageflip(struct drm_device * dev) |
1292 | { | 1292 | { |
1293 | drm_i810_private_t *dev_priv = dev->dev_private; | 1293 | drm_i810_private_t *dev_priv = dev->dev_private; |
1294 | 1294 | ||
@@ -1298,7 +1298,7 @@ static void i810_do_init_pageflip(drm_device_t * dev) | |||
1298 | dev_priv->sarea_priv->pf_current_page = dev_priv->current_page; | 1298 | dev_priv->sarea_priv->pf_current_page = dev_priv->current_page; |
1299 | } | 1299 | } |
1300 | 1300 | ||
1301 | static int i810_do_cleanup_pageflip(drm_device_t * dev) | 1301 | static int i810_do_cleanup_pageflip(struct drm_device * dev) |
1302 | { | 1302 | { |
1303 | drm_i810_private_t *dev_priv = dev->dev_private; | 1303 | drm_i810_private_t *dev_priv = dev->dev_private; |
1304 | 1304 | ||
@@ -1313,8 +1313,8 @@ static int i810_do_cleanup_pageflip(drm_device_t * dev) | |||
1313 | static int i810_flip_bufs(struct inode *inode, struct file *filp, | 1313 | static int i810_flip_bufs(struct inode *inode, struct file *filp, |
1314 | unsigned int cmd, unsigned long arg) | 1314 | unsigned int cmd, unsigned long arg) |
1315 | { | 1315 | { |
1316 | drm_file_t *priv = filp->private_data; | 1316 | struct drm_file *priv = filp->private_data; |
1317 | drm_device_t *dev = priv->head->dev; | 1317 | struct drm_device *dev = priv->head->dev; |
1318 | drm_i810_private_t *dev_priv = dev->dev_private; | 1318 | drm_i810_private_t *dev_priv = dev->dev_private; |
1319 | 1319 | ||
1320 | DRM_DEBUG("%s\n", __FUNCTION__); | 1320 | DRM_DEBUG("%s\n", __FUNCTION__); |
@@ -1328,7 +1328,7 @@ static int i810_flip_bufs(struct inode *inode, struct file *filp, | |||
1328 | return 0; | 1328 | return 0; |
1329 | } | 1329 | } |
1330 | 1330 | ||
1331 | int i810_driver_load(drm_device_t *dev, unsigned long flags) | 1331 | int i810_driver_load(struct drm_device *dev, unsigned long flags) |
1332 | { | 1332 | { |
1333 | /* i810 has 4 more counters */ | 1333 | /* i810 has 4 more counters */ |
1334 | dev->counters += 4; | 1334 | dev->counters += 4; |
@@ -1340,12 +1340,12 @@ int i810_driver_load(drm_device_t *dev, unsigned long flags) | |||
1340 | return 0; | 1340 | return 0; |
1341 | } | 1341 | } |
1342 | 1342 | ||
1343 | void i810_driver_lastclose(drm_device_t * dev) | 1343 | void i810_driver_lastclose(struct drm_device * dev) |
1344 | { | 1344 | { |
1345 | i810_dma_cleanup(dev); | 1345 | i810_dma_cleanup(dev); |
1346 | } | 1346 | } |
1347 | 1347 | ||
1348 | void i810_driver_preclose(drm_device_t * dev, DRMFILE filp) | 1348 | void i810_driver_preclose(struct drm_device * dev, DRMFILE filp) |
1349 | { | 1349 | { |
1350 | if (dev->dev_private) { | 1350 | if (dev->dev_private) { |
1351 | drm_i810_private_t *dev_priv = dev->dev_private; | 1351 | drm_i810_private_t *dev_priv = dev->dev_private; |
@@ -1355,12 +1355,12 @@ void i810_driver_preclose(drm_device_t * dev, DRMFILE filp) | |||
1355 | } | 1355 | } |
1356 | } | 1356 | } |
1357 | 1357 | ||
1358 | void i810_driver_reclaim_buffers_locked(drm_device_t * dev, struct file *filp) | 1358 | void i810_driver_reclaim_buffers_locked(struct drm_device * dev, struct file *filp) |
1359 | { | 1359 | { |
1360 | i810_reclaim_buffers(dev, filp); | 1360 | i810_reclaim_buffers(dev, filp); |
1361 | } | 1361 | } |
1362 | 1362 | ||
1363 | int i810_driver_dma_quiescent(drm_device_t * dev) | 1363 | int i810_driver_dma_quiescent(struct drm_device * dev) |
1364 | { | 1364 | { |
1365 | i810_dma_quiescent(dev); | 1365 | i810_dma_quiescent(dev); |
1366 | return 0; | 1366 | return 0; |
@@ -1397,7 +1397,7 @@ int i810_max_ioctl = DRM_ARRAY_SIZE(i810_ioctls); | |||
1397 | * \returns | 1397 | * \returns |
1398 | * A value of 1 is always retured to indictate every i810 is AGP. | 1398 | * A value of 1 is always retured to indictate every i810 is AGP. |
1399 | */ | 1399 | */ |
1400 | int i810_driver_device_is_agp(drm_device_t * dev) | 1400 | int i810_driver_device_is_agp(struct drm_device * dev) |
1401 | { | 1401 | { |
1402 | return 1; | 1402 | return 1; |
1403 | } | 1403 | } |