diff options
Diffstat (limited to 'drivers/char/drm/savage_bci.c')
-rw-r--r-- | drivers/char/drm/savage_bci.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/char/drm/savage_bci.c b/drivers/char/drm/savage_bci.c index 0321144e7a35..1061e7bb6854 100644 --- a/drivers/char/drm/savage_bci.c +++ b/drivers/char/drm/savage_bci.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #define SAVAGE_EVENT_USEC_TIMEOUT 5000000 /* 5s */ | 32 | #define SAVAGE_EVENT_USEC_TIMEOUT 5000000 /* 5s */ |
33 | #define SAVAGE_FREELIST_DEBUG 0 | 33 | #define SAVAGE_FREELIST_DEBUG 0 |
34 | 34 | ||
35 | static int savage_do_cleanup_bci(drm_device_t *dev); | 35 | static int savage_do_cleanup_bci(struct drm_device *dev); |
36 | 36 | ||
37 | static int | 37 | static int |
38 | savage_bci_wait_fifo_shadow(drm_savage_private_t * dev_priv, unsigned int n) | 38 | savage_bci_wait_fifo_shadow(drm_savage_private_t * dev_priv, unsigned int n) |
@@ -203,7 +203,7 @@ uint16_t savage_bci_emit_event(drm_savage_private_t * dev_priv, | |||
203 | /* | 203 | /* |
204 | * Freelist management | 204 | * Freelist management |
205 | */ | 205 | */ |
206 | static int savage_freelist_init(drm_device_t * dev) | 206 | static int savage_freelist_init(struct drm_device * dev) |
207 | { | 207 | { |
208 | drm_savage_private_t *dev_priv = dev->dev_private; | 208 | drm_savage_private_t *dev_priv = dev->dev_private; |
209 | drm_device_dma_t *dma = dev->dma; | 209 | drm_device_dma_t *dma = dev->dma; |
@@ -236,7 +236,7 @@ static int savage_freelist_init(drm_device_t * dev) | |||
236 | return 0; | 236 | return 0; |
237 | } | 237 | } |
238 | 238 | ||
239 | static drm_buf_t *savage_freelist_get(drm_device_t * dev) | 239 | static drm_buf_t *savage_freelist_get(struct drm_device * dev) |
240 | { | 240 | { |
241 | drm_savage_private_t *dev_priv = dev->dev_private; | 241 | drm_savage_private_t *dev_priv = dev->dev_private; |
242 | drm_savage_buf_priv_t *tail = dev_priv->tail.prev; | 242 | drm_savage_buf_priv_t *tail = dev_priv->tail.prev; |
@@ -269,7 +269,7 @@ static drm_buf_t *savage_freelist_get(drm_device_t * dev) | |||
269 | return NULL; | 269 | return NULL; |
270 | } | 270 | } |
271 | 271 | ||
272 | void savage_freelist_put(drm_device_t * dev, drm_buf_t * buf) | 272 | void savage_freelist_put(struct drm_device * dev, drm_buf_t * buf) |
273 | { | 273 | { |
274 | drm_savage_private_t *dev_priv = dev->dev_private; | 274 | drm_savage_private_t *dev_priv = dev->dev_private; |
275 | drm_savage_buf_priv_t *entry = buf->dev_private, *prev, *next; | 275 | drm_savage_buf_priv_t *entry = buf->dev_private, *prev, *next; |
@@ -535,7 +535,7 @@ static void savage_fake_dma_flush(drm_savage_private_t * dev_priv) | |||
535 | dev_priv->first_dma_page = dev_priv->current_dma_page = 0; | 535 | dev_priv->first_dma_page = dev_priv->current_dma_page = 0; |
536 | } | 536 | } |
537 | 537 | ||
538 | int savage_driver_load(drm_device_t *dev, unsigned long chipset) | 538 | int savage_driver_load(struct drm_device *dev, unsigned long chipset) |
539 | { | 539 | { |
540 | drm_savage_private_t *dev_priv; | 540 | drm_savage_private_t *dev_priv; |
541 | 541 | ||
@@ -558,7 +558,7 @@ int savage_driver_load(drm_device_t *dev, unsigned long chipset) | |||
558 | * in drm_addmap. Therefore we add them manually before the maps are | 558 | * in drm_addmap. Therefore we add them manually before the maps are |
559 | * initialized, and tear them down on last close. | 559 | * initialized, and tear them down on last close. |
560 | */ | 560 | */ |
561 | int savage_driver_firstopen(drm_device_t *dev) | 561 | int savage_driver_firstopen(struct drm_device *dev) |
562 | { | 562 | { |
563 | drm_savage_private_t *dev_priv = dev->dev_private; | 563 | drm_savage_private_t *dev_priv = dev->dev_private; |
564 | unsigned long mmio_base, fb_base, fb_size, aperture_base; | 564 | unsigned long mmio_base, fb_base, fb_size, aperture_base; |
@@ -655,7 +655,7 @@ int savage_driver_firstopen(drm_device_t *dev) | |||
655 | /* | 655 | /* |
656 | * Delete MTRRs and free device-private data. | 656 | * Delete MTRRs and free device-private data. |
657 | */ | 657 | */ |
658 | void savage_driver_lastclose(drm_device_t *dev) | 658 | void savage_driver_lastclose(struct drm_device *dev) |
659 | { | 659 | { |
660 | drm_savage_private_t *dev_priv = dev->dev_private; | 660 | drm_savage_private_t *dev_priv = dev->dev_private; |
661 | int i; | 661 | int i; |
@@ -667,7 +667,7 @@ void savage_driver_lastclose(drm_device_t *dev) | |||
667 | dev_priv->mtrr[i].size, DRM_MTRR_WC); | 667 | dev_priv->mtrr[i].size, DRM_MTRR_WC); |
668 | } | 668 | } |
669 | 669 | ||
670 | int savage_driver_unload(drm_device_t *dev) | 670 | int savage_driver_unload(struct drm_device *dev) |
671 | { | 671 | { |
672 | drm_savage_private_t *dev_priv = dev->dev_private; | 672 | drm_savage_private_t *dev_priv = dev->dev_private; |
673 | 673 | ||
@@ -676,7 +676,7 @@ int savage_driver_unload(drm_device_t *dev) | |||
676 | return 0; | 676 | return 0; |
677 | } | 677 | } |
678 | 678 | ||
679 | static int savage_do_init_bci(drm_device_t * dev, drm_savage_init_t * init) | 679 | static int savage_do_init_bci(struct drm_device * dev, drm_savage_init_t * init) |
680 | { | 680 | { |
681 | drm_savage_private_t *dev_priv = dev->dev_private; | 681 | drm_savage_private_t *dev_priv = dev->dev_private; |
682 | 682 | ||
@@ -898,7 +898,7 @@ static int savage_do_init_bci(drm_device_t * dev, drm_savage_init_t * init) | |||
898 | return 0; | 898 | return 0; |
899 | } | 899 | } |
900 | 900 | ||
901 | static int savage_do_cleanup_bci(drm_device_t * dev) | 901 | static int savage_do_cleanup_bci(struct drm_device * dev) |
902 | { | 902 | { |
903 | drm_savage_private_t *dev_priv = dev->dev_private; | 903 | drm_savage_private_t *dev_priv = dev->dev_private; |
904 | 904 | ||
@@ -1007,7 +1007,7 @@ static int savage_bci_event_wait(DRM_IOCTL_ARGS) | |||
1007 | * DMA buffer management | 1007 | * DMA buffer management |
1008 | */ | 1008 | */ |
1009 | 1009 | ||
1010 | static int savage_bci_get_buffers(DRMFILE filp, drm_device_t *dev, drm_dma_t *d) | 1010 | static int savage_bci_get_buffers(DRMFILE filp, struct drm_device *dev, struct drm_dma *d) |
1011 | { | 1011 | { |
1012 | drm_buf_t *buf; | 1012 | drm_buf_t *buf; |
1013 | int i; | 1013 | int i; |
@@ -1035,12 +1035,12 @@ int savage_bci_buffers(DRM_IOCTL_ARGS) | |||
1035 | { | 1035 | { |
1036 | DRM_DEVICE; | 1036 | DRM_DEVICE; |
1037 | drm_device_dma_t *dma = dev->dma; | 1037 | drm_device_dma_t *dma = dev->dma; |
1038 | drm_dma_t d; | 1038 | struct drm_dma d; |
1039 | int ret = 0; | 1039 | int ret = 0; |
1040 | 1040 | ||
1041 | LOCK_TEST_WITH_RETURN(dev, filp); | 1041 | LOCK_TEST_WITH_RETURN(dev, filp); |
1042 | 1042 | ||
1043 | DRM_COPY_FROM_USER_IOCTL(d, (drm_dma_t __user *) data, sizeof(d)); | 1043 | DRM_COPY_FROM_USER_IOCTL(d, (struct drm_dma __user *) data, sizeof(d)); |
1044 | 1044 | ||
1045 | /* Please don't send us buffers. | 1045 | /* Please don't send us buffers. |
1046 | */ | 1046 | */ |
@@ -1064,12 +1064,12 @@ int savage_bci_buffers(DRM_IOCTL_ARGS) | |||
1064 | ret = savage_bci_get_buffers(filp, dev, &d); | 1064 | ret = savage_bci_get_buffers(filp, dev, &d); |
1065 | } | 1065 | } |
1066 | 1066 | ||
1067 | DRM_COPY_TO_USER_IOCTL((drm_dma_t __user *) data, d, sizeof(d)); | 1067 | DRM_COPY_TO_USER_IOCTL((struct drm_dma __user *) data, d, sizeof(d)); |
1068 | 1068 | ||
1069 | return ret; | 1069 | return ret; |
1070 | } | 1070 | } |
1071 | 1071 | ||
1072 | void savage_reclaim_buffers(drm_device_t *dev, DRMFILE filp) | 1072 | void savage_reclaim_buffers(struct drm_device *dev, DRMFILE filp) |
1073 | { | 1073 | { |
1074 | drm_device_dma_t *dma = dev->dma; | 1074 | drm_device_dma_t *dma = dev->dma; |
1075 | drm_savage_private_t *dev_priv = dev->dev_private; | 1075 | drm_savage_private_t *dev_priv = dev->dev_private; |