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/i830_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/i830_dma.c')
-rw-r--r-- | drivers/char/drm/i830_dma.c | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/drivers/char/drm/i830_dma.c b/drivers/char/drm/i830_dma.c index 3103258df61e..57ce074a5597 100644 --- a/drivers/char/drm/i830_dma.c +++ b/drivers/char/drm/i830_dma.c | |||
@@ -47,7 +47,7 @@ | |||
47 | #define I830_BUF_UNMAPPED 0 | 47 | #define I830_BUF_UNMAPPED 0 |
48 | #define I830_BUF_MAPPED 1 | 48 | #define I830_BUF_MAPPED 1 |
49 | 49 | ||
50 | static drm_buf_t *i830_freelist_get(drm_device_t * dev) | 50 | static drm_buf_t *i830_freelist_get(struct drm_device * dev) |
51 | { | 51 | { |
52 | drm_device_dma_t *dma = dev->dma; | 52 | drm_device_dma_t *dma = dev->dma; |
53 | int i; | 53 | int i; |
@@ -72,7 +72,7 @@ static drm_buf_t *i830_freelist_get(drm_device_t * dev) | |||
72 | * yet, the hardware updates in use for us once its on the ring buffer. | 72 | * yet, the hardware updates in use for us once its on the ring buffer. |
73 | */ | 73 | */ |
74 | 74 | ||
75 | static int i830_freelist_put(drm_device_t * dev, drm_buf_t * buf) | 75 | static int i830_freelist_put(struct drm_device * dev, drm_buf_t * buf) |
76 | { | 76 | { |
77 | drm_i830_buf_priv_t *buf_priv = buf->dev_private; | 77 | drm_i830_buf_priv_t *buf_priv = buf->dev_private; |
78 | int used; | 78 | int used; |
@@ -89,8 +89,8 @@ static int i830_freelist_put(drm_device_t * dev, drm_buf_t * buf) | |||
89 | 89 | ||
90 | static int i830_mmap_buffers(struct file *filp, struct vm_area_struct *vma) | 90 | static int i830_mmap_buffers(struct file *filp, struct vm_area_struct *vma) |
91 | { | 91 | { |
92 | drm_file_t *priv = filp->private_data; | 92 | struct drm_file *priv = filp->private_data; |
93 | drm_device_t *dev; | 93 | struct drm_device *dev; |
94 | drm_i830_private_t *dev_priv; | 94 | drm_i830_private_t *dev_priv; |
95 | drm_buf_t *buf; | 95 | drm_buf_t *buf; |
96 | drm_i830_buf_priv_t *buf_priv; | 96 | drm_i830_buf_priv_t *buf_priv; |
@@ -124,8 +124,8 @@ static const struct file_operations i830_buffer_fops = { | |||
124 | 124 | ||
125 | static int i830_map_buffer(drm_buf_t * buf, struct file *filp) | 125 | static int i830_map_buffer(drm_buf_t * buf, struct file *filp) |
126 | { | 126 | { |
127 | drm_file_t *priv = filp->private_data; | 127 | struct drm_file *priv = filp->private_data; |
128 | drm_device_t *dev = priv->head->dev; | 128 | struct drm_device *dev = priv->head->dev; |
129 | drm_i830_buf_priv_t *buf_priv = buf->dev_private; | 129 | drm_i830_buf_priv_t *buf_priv = buf->dev_private; |
130 | drm_i830_private_t *dev_priv = dev->dev_private; | 130 | drm_i830_private_t *dev_priv = dev->dev_private; |
131 | const struct file_operations *old_fops; | 131 | const struct file_operations *old_fops; |
@@ -176,7 +176,7 @@ static int i830_unmap_buffer(drm_buf_t * buf) | |||
176 | return retcode; | 176 | return retcode; |
177 | } | 177 | } |
178 | 178 | ||
179 | static int i830_dma_get_buffer(drm_device_t * dev, drm_i830_dma_t * d, | 179 | static int i830_dma_get_buffer(struct drm_device * dev, drm_i830_dma_t * d, |
180 | struct file *filp) | 180 | struct file *filp) |
181 | { | 181 | { |
182 | drm_buf_t *buf; | 182 | drm_buf_t *buf; |
@@ -206,7 +206,7 @@ static int i830_dma_get_buffer(drm_device_t * dev, drm_i830_dma_t * d, | |||
206 | return retcode; | 206 | return retcode; |
207 | } | 207 | } |
208 | 208 | ||
209 | static int i830_dma_cleanup(drm_device_t * dev) | 209 | static int i830_dma_cleanup(struct drm_device * dev) |
210 | { | 210 | { |
211 | drm_device_dma_t *dma = dev->dma; | 211 | drm_device_dma_t *dma = dev->dma; |
212 | 212 | ||
@@ -247,7 +247,7 @@ static int i830_dma_cleanup(drm_device_t * dev) | |||
247 | return 0; | 247 | return 0; |
248 | } | 248 | } |
249 | 249 | ||
250 | int i830_wait_ring(drm_device_t * dev, int n, const char *caller) | 250 | int i830_wait_ring(struct drm_device * dev, int n, const char *caller) |
251 | { | 251 | { |
252 | drm_i830_private_t *dev_priv = dev->dev_private; | 252 | drm_i830_private_t *dev_priv = dev->dev_private; |
253 | drm_i830_ring_buffer_t *ring = &(dev_priv->ring); | 253 | drm_i830_ring_buffer_t *ring = &(dev_priv->ring); |
@@ -281,7 +281,7 @@ int i830_wait_ring(drm_device_t * dev, int n, const char *caller) | |||
281 | return iters; | 281 | return iters; |
282 | } | 282 | } |
283 | 283 | ||
284 | static void i830_kernel_lost_context(drm_device_t * dev) | 284 | static void i830_kernel_lost_context(struct drm_device * dev) |
285 | { | 285 | { |
286 | drm_i830_private_t *dev_priv = dev->dev_private; | 286 | drm_i830_private_t *dev_priv = dev->dev_private; |
287 | drm_i830_ring_buffer_t *ring = &(dev_priv->ring); | 287 | drm_i830_ring_buffer_t *ring = &(dev_priv->ring); |
@@ -296,7 +296,7 @@ static void i830_kernel_lost_context(drm_device_t * dev) | |||
296 | dev_priv->sarea_priv->perf_boxes |= I830_BOX_RING_EMPTY; | 296 | dev_priv->sarea_priv->perf_boxes |= I830_BOX_RING_EMPTY; |
297 | } | 297 | } |
298 | 298 | ||
299 | static int i830_freelist_init(drm_device_t * dev, drm_i830_private_t * dev_priv) | 299 | static int i830_freelist_init(struct drm_device * dev, drm_i830_private_t * dev_priv) |
300 | { | 300 | { |
301 | drm_device_dma_t *dma = dev->dma; | 301 | drm_device_dma_t *dma = dev->dma; |
302 | int my_idx = 36; | 302 | int my_idx = 36; |
@@ -330,7 +330,7 @@ static int i830_freelist_init(drm_device_t * dev, drm_i830_private_t * dev_priv) | |||
330 | return 0; | 330 | return 0; |
331 | } | 331 | } |
332 | 332 | ||
333 | static int i830_dma_initialize(drm_device_t * dev, | 333 | static int i830_dma_initialize(struct drm_device * dev, |
334 | drm_i830_private_t * dev_priv, | 334 | drm_i830_private_t * dev_priv, |
335 | drm_i830_init_t * init) | 335 | drm_i830_init_t * init) |
336 | { | 336 | { |
@@ -454,8 +454,8 @@ static int i830_dma_initialize(drm_device_t * dev, | |||
454 | static int i830_dma_init(struct inode *inode, struct file *filp, | 454 | static int i830_dma_init(struct inode *inode, struct file *filp, |
455 | unsigned int cmd, unsigned long arg) | 455 | unsigned int cmd, unsigned long arg) |
456 | { | 456 | { |
457 | drm_file_t *priv = filp->private_data; | 457 | struct drm_file *priv = filp->private_data; |
458 | drm_device_t *dev = priv->head->dev; | 458 | struct drm_device *dev = priv->head->dev; |
459 | drm_i830_private_t *dev_priv; | 459 | drm_i830_private_t *dev_priv; |
460 | drm_i830_init_t init; | 460 | drm_i830_init_t init; |
461 | int retcode = 0; | 461 | int retcode = 0; |
@@ -489,7 +489,7 @@ static int i830_dma_init(struct inode *inode, struct file *filp, | |||
489 | /* Most efficient way to verify state for the i830 is as it is | 489 | /* Most efficient way to verify state for the i830 is as it is |
490 | * emitted. Non-conformant state is silently dropped. | 490 | * emitted. Non-conformant state is silently dropped. |
491 | */ | 491 | */ |
492 | static void i830EmitContextVerified(drm_device_t * dev, unsigned int *code) | 492 | static void i830EmitContextVerified(struct drm_device * dev, unsigned int *code) |
493 | { | 493 | { |
494 | drm_i830_private_t *dev_priv = dev->dev_private; | 494 | drm_i830_private_t *dev_priv = dev->dev_private; |
495 | int i, j = 0; | 495 | int i, j = 0; |
@@ -534,7 +534,7 @@ static void i830EmitContextVerified(drm_device_t * dev, unsigned int *code) | |||
534 | ADVANCE_LP_RING(); | 534 | ADVANCE_LP_RING(); |
535 | } | 535 | } |
536 | 536 | ||
537 | static void i830EmitTexVerified(drm_device_t * dev, unsigned int *code) | 537 | static void i830EmitTexVerified(struct drm_device * dev, unsigned int *code) |
538 | { | 538 | { |
539 | drm_i830_private_t *dev_priv = dev->dev_private; | 539 | drm_i830_private_t *dev_priv = dev->dev_private; |
540 | int i, j = 0; | 540 | int i, j = 0; |
@@ -568,7 +568,7 @@ static void i830EmitTexVerified(drm_device_t * dev, unsigned int *code) | |||
568 | printk("rejected packet %x\n", code[0]); | 568 | printk("rejected packet %x\n", code[0]); |
569 | } | 569 | } |
570 | 570 | ||
571 | static void i830EmitTexBlendVerified(drm_device_t * dev, | 571 | static void i830EmitTexBlendVerified(struct drm_device * dev, |
572 | unsigned int *code, unsigned int num) | 572 | unsigned int *code, unsigned int num) |
573 | { | 573 | { |
574 | drm_i830_private_t *dev_priv = dev->dev_private; | 574 | drm_i830_private_t *dev_priv = dev->dev_private; |
@@ -593,7 +593,7 @@ static void i830EmitTexBlendVerified(drm_device_t * dev, | |||
593 | ADVANCE_LP_RING(); | 593 | ADVANCE_LP_RING(); |
594 | } | 594 | } |
595 | 595 | ||
596 | static void i830EmitTexPalette(drm_device_t * dev, | 596 | static void i830EmitTexPalette(struct drm_device * dev, |
597 | unsigned int *palette, int number, int is_shared) | 597 | unsigned int *palette, int number, int is_shared) |
598 | { | 598 | { |
599 | drm_i830_private_t *dev_priv = dev->dev_private; | 599 | drm_i830_private_t *dev_priv = dev->dev_private; |
@@ -620,7 +620,7 @@ static void i830EmitTexPalette(drm_device_t * dev, | |||
620 | 620 | ||
621 | /* Need to do some additional checking when setting the dest buffer. | 621 | /* Need to do some additional checking when setting the dest buffer. |
622 | */ | 622 | */ |
623 | static void i830EmitDestVerified(drm_device_t * dev, unsigned int *code) | 623 | static void i830EmitDestVerified(struct drm_device * dev, unsigned int *code) |
624 | { | 624 | { |
625 | drm_i830_private_t *dev_priv = dev->dev_private; | 625 | drm_i830_private_t *dev_priv = dev->dev_private; |
626 | unsigned int tmp; | 626 | unsigned int tmp; |
@@ -681,7 +681,7 @@ static void i830EmitDestVerified(drm_device_t * dev, unsigned int *code) | |||
681 | ADVANCE_LP_RING(); | 681 | ADVANCE_LP_RING(); |
682 | } | 682 | } |
683 | 683 | ||
684 | static void i830EmitStippleVerified(drm_device_t * dev, unsigned int *code) | 684 | static void i830EmitStippleVerified(struct drm_device * dev, unsigned int *code) |
685 | { | 685 | { |
686 | drm_i830_private_t *dev_priv = dev->dev_private; | 686 | drm_i830_private_t *dev_priv = dev->dev_private; |
687 | RING_LOCALS; | 687 | RING_LOCALS; |
@@ -692,7 +692,7 @@ static void i830EmitStippleVerified(drm_device_t * dev, unsigned int *code) | |||
692 | ADVANCE_LP_RING(); | 692 | ADVANCE_LP_RING(); |
693 | } | 693 | } |
694 | 694 | ||
695 | static void i830EmitState(drm_device_t * dev) | 695 | static void i830EmitState(struct drm_device * dev) |
696 | { | 696 | { |
697 | drm_i830_private_t *dev_priv = dev->dev_private; | 697 | drm_i830_private_t *dev_priv = dev->dev_private; |
698 | drm_i830_sarea_t *sarea_priv = dev_priv->sarea_priv; | 698 | drm_i830_sarea_t *sarea_priv = dev_priv->sarea_priv; |
@@ -795,7 +795,7 @@ static void i830EmitState(drm_device_t * dev) | |||
795 | * Performance monitoring functions | 795 | * Performance monitoring functions |
796 | */ | 796 | */ |
797 | 797 | ||
798 | static void i830_fill_box(drm_device_t * dev, | 798 | static void i830_fill_box(struct drm_device * dev, |
799 | int x, int y, int w, int h, int r, int g, int b) | 799 | int x, int y, int w, int h, int r, int g, int b) |
800 | { | 800 | { |
801 | drm_i830_private_t *dev_priv = dev->dev_private; | 801 | drm_i830_private_t *dev_priv = dev->dev_private; |
@@ -833,7 +833,7 @@ static void i830_fill_box(drm_device_t * dev, | |||
833 | ADVANCE_LP_RING(); | 833 | ADVANCE_LP_RING(); |
834 | } | 834 | } |
835 | 835 | ||
836 | static void i830_cp_performance_boxes(drm_device_t * dev) | 836 | static void i830_cp_performance_boxes(struct drm_device * dev) |
837 | { | 837 | { |
838 | drm_i830_private_t *dev_priv = dev->dev_private; | 838 | drm_i830_private_t *dev_priv = dev->dev_private; |
839 | 839 | ||
@@ -878,7 +878,7 @@ static void i830_cp_performance_boxes(drm_device_t * dev) | |||
878 | dev_priv->sarea_priv->perf_boxes = 0; | 878 | dev_priv->sarea_priv->perf_boxes = 0; |
879 | } | 879 | } |
880 | 880 | ||
881 | static void i830_dma_dispatch_clear(drm_device_t * dev, int flags, | 881 | static void i830_dma_dispatch_clear(struct drm_device * dev, int flags, |
882 | unsigned int clear_color, | 882 | unsigned int clear_color, |
883 | unsigned int clear_zval, | 883 | unsigned int clear_zval, |
884 | unsigned int clear_depthmask) | 884 | unsigned int clear_depthmask) |
@@ -886,7 +886,7 @@ static void i830_dma_dispatch_clear(drm_device_t * dev, int flags, | |||
886 | drm_i830_private_t *dev_priv = dev->dev_private; | 886 | drm_i830_private_t *dev_priv = dev->dev_private; |
887 | drm_i830_sarea_t *sarea_priv = dev_priv->sarea_priv; | 887 | drm_i830_sarea_t *sarea_priv = dev_priv->sarea_priv; |
888 | int nbox = sarea_priv->nbox; | 888 | int nbox = sarea_priv->nbox; |
889 | drm_clip_rect_t *pbox = sarea_priv->boxes; | 889 | struct drm_clip_rect *pbox = sarea_priv->boxes; |
890 | int pitch = dev_priv->pitch; | 890 | int pitch = dev_priv->pitch; |
891 | int cpp = dev_priv->cpp; | 891 | int cpp = dev_priv->cpp; |
892 | int i; | 892 | int i; |
@@ -973,12 +973,12 @@ static void i830_dma_dispatch_clear(drm_device_t * dev, int flags, | |||
973 | } | 973 | } |
974 | } | 974 | } |
975 | 975 | ||
976 | static void i830_dma_dispatch_swap(drm_device_t * dev) | 976 | static void i830_dma_dispatch_swap(struct drm_device * dev) |
977 | { | 977 | { |
978 | drm_i830_private_t *dev_priv = dev->dev_private; | 978 | drm_i830_private_t *dev_priv = dev->dev_private; |
979 | drm_i830_sarea_t *sarea_priv = dev_priv->sarea_priv; | 979 | drm_i830_sarea_t *sarea_priv = dev_priv->sarea_priv; |
980 | int nbox = sarea_priv->nbox; | 980 | int nbox = sarea_priv->nbox; |
981 | drm_clip_rect_t *pbox = sarea_priv->boxes; | 981 | struct drm_clip_rect *pbox = sarea_priv->boxes; |
982 | int pitch = dev_priv->pitch; | 982 | int pitch = dev_priv->pitch; |
983 | int cpp = dev_priv->cpp; | 983 | int cpp = dev_priv->cpp; |
984 | int i; | 984 | int i; |
@@ -1043,7 +1043,7 @@ static void i830_dma_dispatch_swap(drm_device_t * dev) | |||
1043 | } | 1043 | } |
1044 | } | 1044 | } |
1045 | 1045 | ||
1046 | static void i830_dma_dispatch_flip(drm_device_t * dev) | 1046 | static void i830_dma_dispatch_flip(struct drm_device * dev) |
1047 | { | 1047 | { |
1048 | drm_i830_private_t *dev_priv = dev->dev_private; | 1048 | drm_i830_private_t *dev_priv = dev->dev_private; |
1049 | RING_LOCALS; | 1049 | RING_LOCALS; |
@@ -1086,13 +1086,13 @@ static void i830_dma_dispatch_flip(drm_device_t * dev) | |||
1086 | dev_priv->sarea_priv->pf_current_page = dev_priv->current_page; | 1086 | dev_priv->sarea_priv->pf_current_page = dev_priv->current_page; |
1087 | } | 1087 | } |
1088 | 1088 | ||
1089 | static void i830_dma_dispatch_vertex(drm_device_t * dev, | 1089 | static void i830_dma_dispatch_vertex(struct drm_device * dev, |
1090 | drm_buf_t * buf, int discard, int used) | 1090 | drm_buf_t * buf, int discard, int used) |
1091 | { | 1091 | { |
1092 | drm_i830_private_t *dev_priv = dev->dev_private; | 1092 | drm_i830_private_t *dev_priv = dev->dev_private; |
1093 | drm_i830_buf_priv_t *buf_priv = buf->dev_private; | 1093 | drm_i830_buf_priv_t *buf_priv = buf->dev_private; |
1094 | drm_i830_sarea_t *sarea_priv = dev_priv->sarea_priv; | 1094 | drm_i830_sarea_t *sarea_priv = dev_priv->sarea_priv; |
1095 | drm_clip_rect_t *box = sarea_priv->boxes; | 1095 | struct drm_clip_rect *box = sarea_priv->boxes; |
1096 | int nbox = sarea_priv->nbox; | 1096 | int nbox = sarea_priv->nbox; |
1097 | unsigned long address = (unsigned long)buf->bus_address; | 1097 | unsigned long address = (unsigned long)buf->bus_address; |
1098 | unsigned long start = address - dev->agp->base; | 1098 | unsigned long start = address - dev->agp->base; |
@@ -1198,7 +1198,7 @@ static void i830_dma_dispatch_vertex(drm_device_t * dev, | |||
1198 | } | 1198 | } |
1199 | } | 1199 | } |
1200 | 1200 | ||
1201 | static void i830_dma_quiescent(drm_device_t * dev) | 1201 | static void i830_dma_quiescent(struct drm_device * dev) |
1202 | { | 1202 | { |
1203 | drm_i830_private_t *dev_priv = dev->dev_private; | 1203 | drm_i830_private_t *dev_priv = dev->dev_private; |
1204 | RING_LOCALS; | 1204 | RING_LOCALS; |
@@ -1215,7 +1215,7 @@ static void i830_dma_quiescent(drm_device_t * dev) | |||
1215 | i830_wait_ring(dev, dev_priv->ring.Size - 8, __FUNCTION__); | 1215 | i830_wait_ring(dev, dev_priv->ring.Size - 8, __FUNCTION__); |
1216 | } | 1216 | } |
1217 | 1217 | ||
1218 | static int i830_flush_queue(drm_device_t * dev) | 1218 | static int i830_flush_queue(struct drm_device * dev) |
1219 | { | 1219 | { |
1220 | drm_i830_private_t *dev_priv = dev->dev_private; | 1220 | drm_i830_private_t *dev_priv = dev->dev_private; |
1221 | drm_device_dma_t *dma = dev->dma; | 1221 | drm_device_dma_t *dma = dev->dma; |
@@ -1248,7 +1248,7 @@ static int i830_flush_queue(drm_device_t * dev) | |||
1248 | } | 1248 | } |
1249 | 1249 | ||
1250 | /* Must be called with the lock held */ | 1250 | /* Must be called with the lock held */ |
1251 | static void i830_reclaim_buffers(drm_device_t * dev, struct file *filp) | 1251 | static void i830_reclaim_buffers(struct drm_device * dev, struct file *filp) |
1252 | { | 1252 | { |
1253 | drm_device_dma_t *dma = dev->dma; | 1253 | drm_device_dma_t *dma = dev->dma; |
1254 | int i; | 1254 | int i; |
@@ -1281,8 +1281,8 @@ static void i830_reclaim_buffers(drm_device_t * dev, struct file *filp) | |||
1281 | static int i830_flush_ioctl(struct inode *inode, struct file *filp, | 1281 | static int i830_flush_ioctl(struct inode *inode, struct file *filp, |
1282 | unsigned int cmd, unsigned long arg) | 1282 | unsigned int cmd, unsigned long arg) |
1283 | { | 1283 | { |
1284 | drm_file_t *priv = filp->private_data; | 1284 | struct drm_file *priv = filp->private_data; |
1285 | drm_device_t *dev = priv->head->dev; | 1285 | struct drm_device *dev = priv->head->dev; |
1286 | 1286 | ||
1287 | LOCK_TEST_WITH_RETURN(dev, filp); | 1287 | LOCK_TEST_WITH_RETURN(dev, filp); |
1288 | 1288 | ||
@@ -1293,8 +1293,8 @@ static int i830_flush_ioctl(struct inode *inode, struct file *filp, | |||
1293 | static int i830_dma_vertex(struct inode *inode, struct file *filp, | 1293 | static int i830_dma_vertex(struct inode *inode, struct file *filp, |
1294 | unsigned int cmd, unsigned long arg) | 1294 | unsigned int cmd, unsigned long arg) |
1295 | { | 1295 | { |
1296 | drm_file_t *priv = filp->private_data; | 1296 | struct drm_file *priv = filp->private_data; |
1297 | drm_device_t *dev = priv->head->dev; | 1297 | struct drm_device *dev = priv->head->dev; |
1298 | drm_device_dma_t *dma = dev->dma; | 1298 | drm_device_dma_t *dma = dev->dma; |
1299 | drm_i830_private_t *dev_priv = (drm_i830_private_t *) dev->dev_private; | 1299 | drm_i830_private_t *dev_priv = (drm_i830_private_t *) dev->dev_private; |
1300 | u32 *hw_status = dev_priv->hw_status_page; | 1300 | u32 *hw_status = dev_priv->hw_status_page; |
@@ -1327,8 +1327,8 @@ static int i830_dma_vertex(struct inode *inode, struct file *filp, | |||
1327 | static int i830_clear_bufs(struct inode *inode, struct file *filp, | 1327 | static int i830_clear_bufs(struct inode *inode, struct file *filp, |
1328 | unsigned int cmd, unsigned long arg) | 1328 | unsigned int cmd, unsigned long arg) |
1329 | { | 1329 | { |
1330 | drm_file_t *priv = filp->private_data; | 1330 | struct drm_file *priv = filp->private_data; |
1331 | drm_device_t *dev = priv->head->dev; | 1331 | struct drm_device *dev = priv->head->dev; |
1332 | drm_i830_clear_t clear; | 1332 | drm_i830_clear_t clear; |
1333 | 1333 | ||
1334 | if (copy_from_user | 1334 | if (copy_from_user |
@@ -1351,8 +1351,8 @@ static int i830_clear_bufs(struct inode *inode, struct file *filp, | |||
1351 | static int i830_swap_bufs(struct inode *inode, struct file *filp, | 1351 | static int i830_swap_bufs(struct inode *inode, struct file *filp, |
1352 | unsigned int cmd, unsigned long arg) | 1352 | unsigned int cmd, unsigned long arg) |
1353 | { | 1353 | { |
1354 | drm_file_t *priv = filp->private_data; | 1354 | struct drm_file *priv = filp->private_data; |
1355 | drm_device_t *dev = priv->head->dev; | 1355 | struct drm_device *dev = priv->head->dev; |
1356 | 1356 | ||
1357 | DRM_DEBUG("i830_swap_bufs\n"); | 1357 | DRM_DEBUG("i830_swap_bufs\n"); |
1358 | 1358 | ||
@@ -1364,7 +1364,7 @@ static int i830_swap_bufs(struct inode *inode, struct file *filp, | |||
1364 | 1364 | ||
1365 | /* Not sure why this isn't set all the time: | 1365 | /* Not sure why this isn't set all the time: |
1366 | */ | 1366 | */ |
1367 | static void i830_do_init_pageflip(drm_device_t * dev) | 1367 | static void i830_do_init_pageflip(struct drm_device * dev) |
1368 | { | 1368 | { |
1369 | drm_i830_private_t *dev_priv = dev->dev_private; | 1369 | drm_i830_private_t *dev_priv = dev->dev_private; |
1370 | 1370 | ||
@@ -1374,7 +1374,7 @@ static void i830_do_init_pageflip(drm_device_t * dev) | |||
1374 | dev_priv->sarea_priv->pf_current_page = dev_priv->current_page; | 1374 | dev_priv->sarea_priv->pf_current_page = dev_priv->current_page; |
1375 | } | 1375 | } |
1376 | 1376 | ||
1377 | static int i830_do_cleanup_pageflip(drm_device_t * dev) | 1377 | static int i830_do_cleanup_pageflip(struct drm_device * dev) |
1378 | { | 1378 | { |
1379 | drm_i830_private_t *dev_priv = dev->dev_private; | 1379 | drm_i830_private_t *dev_priv = dev->dev_private; |
1380 | 1380 | ||
@@ -1389,8 +1389,8 @@ static int i830_do_cleanup_pageflip(drm_device_t * dev) | |||
1389 | static int i830_flip_bufs(struct inode *inode, struct file *filp, | 1389 | static int i830_flip_bufs(struct inode *inode, struct file *filp, |
1390 | unsigned int cmd, unsigned long arg) | 1390 | unsigned int cmd, unsigned long arg) |
1391 | { | 1391 | { |
1392 | drm_file_t *priv = filp->private_data; | 1392 | struct drm_file *priv = filp->private_data; |
1393 | drm_device_t *dev = priv->head->dev; | 1393 | struct drm_device *dev = priv->head->dev; |
1394 | drm_i830_private_t *dev_priv = dev->dev_private; | 1394 | drm_i830_private_t *dev_priv = dev->dev_private; |
1395 | 1395 | ||
1396 | DRM_DEBUG("%s\n", __FUNCTION__); | 1396 | DRM_DEBUG("%s\n", __FUNCTION__); |
@@ -1407,8 +1407,8 @@ static int i830_flip_bufs(struct inode *inode, struct file *filp, | |||
1407 | static int i830_getage(struct inode *inode, struct file *filp, unsigned int cmd, | 1407 | static int i830_getage(struct inode *inode, struct file *filp, unsigned int cmd, |
1408 | unsigned long arg) | 1408 | unsigned long arg) |
1409 | { | 1409 | { |
1410 | drm_file_t *priv = filp->private_data; | 1410 | struct drm_file *priv = filp->private_data; |
1411 | drm_device_t *dev = priv->head->dev; | 1411 | struct drm_device *dev = priv->head->dev; |
1412 | drm_i830_private_t *dev_priv = (drm_i830_private_t *) dev->dev_private; | 1412 | drm_i830_private_t *dev_priv = (drm_i830_private_t *) dev->dev_private; |
1413 | u32 *hw_status = dev_priv->hw_status_page; | 1413 | u32 *hw_status = dev_priv->hw_status_page; |
1414 | drm_i830_sarea_t *sarea_priv = (drm_i830_sarea_t *) | 1414 | drm_i830_sarea_t *sarea_priv = (drm_i830_sarea_t *) |
@@ -1421,8 +1421,8 @@ static int i830_getage(struct inode *inode, struct file *filp, unsigned int cmd, | |||
1421 | static int i830_getbuf(struct inode *inode, struct file *filp, unsigned int cmd, | 1421 | static int i830_getbuf(struct inode *inode, struct file *filp, unsigned int cmd, |
1422 | unsigned long arg) | 1422 | unsigned long arg) |
1423 | { | 1423 | { |
1424 | drm_file_t *priv = filp->private_data; | 1424 | struct drm_file *priv = filp->private_data; |
1425 | drm_device_t *dev = priv->head->dev; | 1425 | struct drm_device *dev = priv->head->dev; |
1426 | int retcode = 0; | 1426 | int retcode = 0; |
1427 | drm_i830_dma_t d; | 1427 | drm_i830_dma_t d; |
1428 | drm_i830_private_t *dev_priv = (drm_i830_private_t *) dev->dev_private; | 1428 | drm_i830_private_t *dev_priv = (drm_i830_private_t *) dev->dev_private; |
@@ -1443,7 +1443,7 @@ static int i830_getbuf(struct inode *inode, struct file *filp, unsigned int cmd, | |||
1443 | DRM_DEBUG("i830_dma: %d returning %d, granted = %d\n", | 1443 | DRM_DEBUG("i830_dma: %d returning %d, granted = %d\n", |
1444 | current->pid, retcode, d.granted); | 1444 | current->pid, retcode, d.granted); |
1445 | 1445 | ||
1446 | if (copy_to_user((drm_dma_t __user *) arg, &d, sizeof(d))) | 1446 | if (copy_to_user((void __user *) arg, &d, sizeof(d))) |
1447 | return -EFAULT; | 1447 | return -EFAULT; |
1448 | sarea_priv->last_dispatch = (int)hw_status[5]; | 1448 | sarea_priv->last_dispatch = (int)hw_status[5]; |
1449 | 1449 | ||
@@ -1466,8 +1466,8 @@ static int i830_docopy(struct inode *inode, struct file *filp, unsigned int cmd, | |||
1466 | static int i830_getparam(struct inode *inode, struct file *filp, | 1466 | static int i830_getparam(struct inode *inode, struct file *filp, |
1467 | unsigned int cmd, unsigned long arg) | 1467 | unsigned int cmd, unsigned long arg) |
1468 | { | 1468 | { |
1469 | drm_file_t *priv = filp->private_data; | 1469 | struct drm_file *priv = filp->private_data; |
1470 | drm_device_t *dev = priv->head->dev; | 1470 | struct drm_device *dev = priv->head->dev; |
1471 | drm_i830_private_t *dev_priv = dev->dev_private; | 1471 | drm_i830_private_t *dev_priv = dev->dev_private; |
1472 | drm_i830_getparam_t param; | 1472 | drm_i830_getparam_t param; |
1473 | int value; | 1473 | int value; |
@@ -1500,8 +1500,8 @@ static int i830_getparam(struct inode *inode, struct file *filp, | |||
1500 | static int i830_setparam(struct inode *inode, struct file *filp, | 1500 | static int i830_setparam(struct inode *inode, struct file *filp, |
1501 | unsigned int cmd, unsigned long arg) | 1501 | unsigned int cmd, unsigned long arg) |
1502 | { | 1502 | { |
1503 | drm_file_t *priv = filp->private_data; | 1503 | struct drm_file *priv = filp->private_data; |
1504 | drm_device_t *dev = priv->head->dev; | 1504 | struct drm_device *dev = priv->head->dev; |
1505 | drm_i830_private_t *dev_priv = dev->dev_private; | 1505 | drm_i830_private_t *dev_priv = dev->dev_private; |
1506 | drm_i830_setparam_t param; | 1506 | drm_i830_setparam_t param; |
1507 | 1507 | ||
@@ -1525,7 +1525,7 @@ static int i830_setparam(struct inode *inode, struct file *filp, | |||
1525 | return 0; | 1525 | return 0; |
1526 | } | 1526 | } |
1527 | 1527 | ||
1528 | int i830_driver_load(drm_device_t *dev, unsigned long flags) | 1528 | int i830_driver_load(struct drm_device *dev, unsigned long flags) |
1529 | { | 1529 | { |
1530 | /* i830 has 4 more counters */ | 1530 | /* i830 has 4 more counters */ |
1531 | dev->counters += 4; | 1531 | dev->counters += 4; |
@@ -1537,12 +1537,12 @@ int i830_driver_load(drm_device_t *dev, unsigned long flags) | |||
1537 | return 0; | 1537 | return 0; |
1538 | } | 1538 | } |
1539 | 1539 | ||
1540 | void i830_driver_lastclose(drm_device_t * dev) | 1540 | void i830_driver_lastclose(struct drm_device * dev) |
1541 | { | 1541 | { |
1542 | i830_dma_cleanup(dev); | 1542 | i830_dma_cleanup(dev); |
1543 | } | 1543 | } |
1544 | 1544 | ||
1545 | void i830_driver_preclose(drm_device_t * dev, DRMFILE filp) | 1545 | void i830_driver_preclose(struct drm_device * dev, DRMFILE filp) |
1546 | { | 1546 | { |
1547 | if (dev->dev_private) { | 1547 | if (dev->dev_private) { |
1548 | drm_i830_private_t *dev_priv = dev->dev_private; | 1548 | drm_i830_private_t *dev_priv = dev->dev_private; |
@@ -1552,12 +1552,12 @@ void i830_driver_preclose(drm_device_t * dev, DRMFILE filp) | |||
1552 | } | 1552 | } |
1553 | } | 1553 | } |
1554 | 1554 | ||
1555 | void i830_driver_reclaim_buffers_locked(drm_device_t * dev, struct file *filp) | 1555 | void i830_driver_reclaim_buffers_locked(struct drm_device * dev, struct file *filp) |
1556 | { | 1556 | { |
1557 | i830_reclaim_buffers(dev, filp); | 1557 | i830_reclaim_buffers(dev, filp); |
1558 | } | 1558 | } |
1559 | 1559 | ||
1560 | int i830_driver_dma_quiescent(drm_device_t * dev) | 1560 | int i830_driver_dma_quiescent(struct drm_device * dev) |
1561 | { | 1561 | { |
1562 | i830_dma_quiescent(dev); | 1562 | i830_dma_quiescent(dev); |
1563 | return 0; | 1563 | return 0; |
@@ -1593,7 +1593,7 @@ int i830_max_ioctl = DRM_ARRAY_SIZE(i830_ioctls); | |||
1593 | * \returns | 1593 | * \returns |
1594 | * A value of 1 is always retured to indictate every i8xx is AGP. | 1594 | * A value of 1 is always retured to indictate every i8xx is AGP. |
1595 | */ | 1595 | */ |
1596 | int i830_driver_device_is_agp(drm_device_t * dev) | 1596 | int i830_driver_device_is_agp(struct drm_device * dev) |
1597 | { | 1597 | { |
1598 | return 1; | 1598 | return 1; |
1599 | } | 1599 | } |