diff options
Diffstat (limited to 'drivers/char/drm/r128_cce.c')
-rw-r--r-- | drivers/char/drm/r128_cce.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/char/drm/r128_cce.c b/drivers/char/drm/r128_cce.c index eabb4c42c319..d1e762e4eb54 100644 --- a/drivers/char/drm/r128_cce.c +++ b/drivers/char/drm/r128_cce.c | |||
@@ -81,7 +81,7 @@ static u32 r128_cce_microcode[] = { | |||
81 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 | 81 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
82 | }; | 82 | }; |
83 | 83 | ||
84 | static int R128_READ_PLL(drm_device_t * dev, int addr) | 84 | static int R128_READ_PLL(struct drm_device * dev, int addr) |
85 | { | 85 | { |
86 | drm_r128_private_t *dev_priv = dev->dev_private; | 86 | drm_r128_private_t *dev_priv = dev->dev_private; |
87 | 87 | ||
@@ -271,7 +271,7 @@ static void r128_do_cce_stop(drm_r128_private_t * dev_priv) | |||
271 | 271 | ||
272 | /* Reset the engine. This will stop the CCE if it is running. | 272 | /* Reset the engine. This will stop the CCE if it is running. |
273 | */ | 273 | */ |
274 | static int r128_do_engine_reset(drm_device_t * dev) | 274 | static int r128_do_engine_reset(struct drm_device * dev) |
275 | { | 275 | { |
276 | drm_r128_private_t *dev_priv = dev->dev_private; | 276 | drm_r128_private_t *dev_priv = dev->dev_private; |
277 | u32 clock_cntl_index, mclk_cntl, gen_reset_cntl; | 277 | u32 clock_cntl_index, mclk_cntl, gen_reset_cntl; |
@@ -308,7 +308,7 @@ static int r128_do_engine_reset(drm_device_t * dev) | |||
308 | return 0; | 308 | return 0; |
309 | } | 309 | } |
310 | 310 | ||
311 | static void r128_cce_init_ring_buffer(drm_device_t * dev, | 311 | static void r128_cce_init_ring_buffer(struct drm_device * dev, |
312 | drm_r128_private_t * dev_priv) | 312 | drm_r128_private_t * dev_priv) |
313 | { | 313 | { |
314 | u32 ring_start; | 314 | u32 ring_start; |
@@ -347,7 +347,7 @@ static void r128_cce_init_ring_buffer(drm_device_t * dev, | |||
347 | R128_WRITE(R128_BUS_CNTL, tmp); | 347 | R128_WRITE(R128_BUS_CNTL, tmp); |
348 | } | 348 | } |
349 | 349 | ||
350 | static int r128_do_init_cce(drm_device_t * dev, drm_r128_init_t * init) | 350 | static int r128_do_init_cce(struct drm_device * dev, drm_r128_init_t * init) |
351 | { | 351 | { |
352 | drm_r128_private_t *dev_priv; | 352 | drm_r128_private_t *dev_priv; |
353 | 353 | ||
@@ -584,7 +584,7 @@ static int r128_do_init_cce(drm_device_t * dev, drm_r128_init_t * init) | |||
584 | return 0; | 584 | return 0; |
585 | } | 585 | } |
586 | 586 | ||
587 | int r128_do_cleanup_cce(drm_device_t * dev) | 587 | int r128_do_cleanup_cce(struct drm_device * dev) |
588 | { | 588 | { |
589 | 589 | ||
590 | /* Make sure interrupts are disabled here because the uninstall ioctl | 590 | /* Make sure interrupts are disabled here because the uninstall ioctl |
@@ -769,7 +769,7 @@ int r128_fullscreen(DRM_IOCTL_ARGS) | |||
769 | #define R128_BUFFER_FREE 0 | 769 | #define R128_BUFFER_FREE 0 |
770 | 770 | ||
771 | #if 0 | 771 | #if 0 |
772 | static int r128_freelist_init(drm_device_t * dev) | 772 | static int r128_freelist_init(struct drm_device * dev) |
773 | { | 773 | { |
774 | drm_device_dma_t *dma = dev->dma; | 774 | drm_device_dma_t *dma = dev->dma; |
775 | drm_r128_private_t *dev_priv = dev->dev_private; | 775 | drm_r128_private_t *dev_priv = dev->dev_private; |
@@ -815,7 +815,7 @@ static int r128_freelist_init(drm_device_t * dev) | |||
815 | } | 815 | } |
816 | #endif | 816 | #endif |
817 | 817 | ||
818 | static drm_buf_t *r128_freelist_get(drm_device_t * dev) | 818 | static drm_buf_t *r128_freelist_get(struct drm_device * dev) |
819 | { | 819 | { |
820 | drm_device_dma_t *dma = dev->dma; | 820 | drm_device_dma_t *dma = dev->dma; |
821 | drm_r128_private_t *dev_priv = dev->dev_private; | 821 | drm_r128_private_t *dev_priv = dev->dev_private; |
@@ -853,7 +853,7 @@ static drm_buf_t *r128_freelist_get(drm_device_t * dev) | |||
853 | return NULL; | 853 | return NULL; |
854 | } | 854 | } |
855 | 855 | ||
856 | void r128_freelist_reset(drm_device_t * dev) | 856 | void r128_freelist_reset(struct drm_device * dev) |
857 | { | 857 | { |
858 | drm_device_dma_t *dma = dev->dma; | 858 | drm_device_dma_t *dma = dev->dma; |
859 | int i; | 859 | int i; |
@@ -886,7 +886,7 @@ int r128_wait_ring(drm_r128_private_t * dev_priv, int n) | |||
886 | return DRM_ERR(EBUSY); | 886 | return DRM_ERR(EBUSY); |
887 | } | 887 | } |
888 | 888 | ||
889 | static int r128_cce_get_buffers(DRMFILE filp, drm_device_t * dev, drm_dma_t * d) | 889 | static int r128_cce_get_buffers(DRMFILE filp, struct drm_device * dev, struct drm_dma * d) |
890 | { | 890 | { |
891 | int i; | 891 | int i; |
892 | drm_buf_t *buf; | 892 | drm_buf_t *buf; |
@@ -915,8 +915,8 @@ int r128_cce_buffers(DRM_IOCTL_ARGS) | |||
915 | DRM_DEVICE; | 915 | DRM_DEVICE; |
916 | drm_device_dma_t *dma = dev->dma; | 916 | drm_device_dma_t *dma = dev->dma; |
917 | int ret = 0; | 917 | int ret = 0; |
918 | drm_dma_t __user *argp = (void __user *)data; | 918 | struct drm_dma __user *argp = (void __user *)data; |
919 | drm_dma_t d; | 919 | struct drm_dma d; |
920 | 920 | ||
921 | LOCK_TEST_WITH_RETURN(dev, filp); | 921 | LOCK_TEST_WITH_RETURN(dev, filp); |
922 | 922 | ||