aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/savage
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-09-10 06:43:56 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-09-12 09:28:12 -0400
commit86c1fbd55c6abc72496a45b7cbf1940324983977 (patch)
tree0e76e288cc6bed10cd8f6f79c44ddcc20220738f /drivers/gpu/drm/savage
parent78238757ebab54bf0d546dabe119f3a158d418b4 (diff)
drm: Move drm_memory.c map support declarations to <drm/drm_legacy.h>
And replace the drm_core_ prefix with drm_legacy_ since really, this isn't core stuff. Also drop drm_core_dropmap since it's unused. v2: Fix up i810.ko fully which somehow slipped through. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/savage')
-rw-r--r--drivers/gpu/drm/savage/savage_bci.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/savage/savage_bci.c b/drivers/gpu/drm/savage/savage_bci.c
index 9288d3037ce5..d47dff95fe52 100644
--- a/drivers/gpu/drm/savage/savage_bci.c
+++ b/drivers/gpu/drm/savage/savage_bci.c
@@ -706,7 +706,7 @@ static int savage_do_init_bci(struct drm_device * dev, drm_savage_init_t * init)
706 return -EINVAL; 706 return -EINVAL;
707 } 707 }
708 if (init->status_offset != 0) { 708 if (init->status_offset != 0) {
709 dev_priv->status = drm_core_findmap(dev, init->status_offset); 709 dev_priv->status = drm_legacy_findmap(dev, init->status_offset);
710 if (!dev_priv->status) { 710 if (!dev_priv->status) {
711 DRM_ERROR("could not find shadow status region!\n"); 711 DRM_ERROR("could not find shadow status region!\n");
712 savage_do_cleanup_bci(dev); 712 savage_do_cleanup_bci(dev);
@@ -717,14 +717,14 @@ static int savage_do_init_bci(struct drm_device * dev, drm_savage_init_t * init)
717 } 717 }
718 if (dev_priv->dma_type == SAVAGE_DMA_AGP && init->buffers_offset) { 718 if (dev_priv->dma_type == SAVAGE_DMA_AGP && init->buffers_offset) {
719 dev->agp_buffer_token = init->buffers_offset; 719 dev->agp_buffer_token = init->buffers_offset;
720 dev->agp_buffer_map = drm_core_findmap(dev, 720 dev->agp_buffer_map = drm_legacy_findmap(dev,
721 init->buffers_offset); 721 init->buffers_offset);
722 if (!dev->agp_buffer_map) { 722 if (!dev->agp_buffer_map) {
723 DRM_ERROR("could not find DMA buffer region!\n"); 723 DRM_ERROR("could not find DMA buffer region!\n");
724 savage_do_cleanup_bci(dev); 724 savage_do_cleanup_bci(dev);
725 return -EINVAL; 725 return -EINVAL;
726 } 726 }
727 drm_core_ioremap(dev->agp_buffer_map, dev); 727 drm_legacy_ioremap(dev->agp_buffer_map, dev);
728 if (!dev->agp_buffer_map->handle) { 728 if (!dev->agp_buffer_map->handle) {
729 DRM_ERROR("failed to ioremap DMA buffer region!\n"); 729 DRM_ERROR("failed to ioremap DMA buffer region!\n");
730 savage_do_cleanup_bci(dev); 730 savage_do_cleanup_bci(dev);
@@ -733,7 +733,7 @@ static int savage_do_init_bci(struct drm_device * dev, drm_savage_init_t * init)
733 } 733 }
734 if (init->agp_textures_offset) { 734 if (init->agp_textures_offset) {
735 dev_priv->agp_textures = 735 dev_priv->agp_textures =
736 drm_core_findmap(dev, init->agp_textures_offset); 736 drm_legacy_findmap(dev, init->agp_textures_offset);
737 if (!dev_priv->agp_textures) { 737 if (!dev_priv->agp_textures) {
738 DRM_ERROR("could not find agp texture region!\n"); 738 DRM_ERROR("could not find agp texture region!\n");
739 savage_do_cleanup_bci(dev); 739 savage_do_cleanup_bci(dev);
@@ -756,7 +756,7 @@ static int savage_do_init_bci(struct drm_device * dev, drm_savage_init_t * init)
756 savage_do_cleanup_bci(dev); 756 savage_do_cleanup_bci(dev);
757 return -EINVAL; 757 return -EINVAL;
758 } 758 }
759 dev_priv->cmd_dma = drm_core_findmap(dev, init->cmd_dma_offset); 759 dev_priv->cmd_dma = drm_legacy_findmap(dev, init->cmd_dma_offset);
760 if (!dev_priv->cmd_dma) { 760 if (!dev_priv->cmd_dma) {
761 DRM_ERROR("could not find command DMA region!\n"); 761 DRM_ERROR("could not find command DMA region!\n");
762 savage_do_cleanup_bci(dev); 762 savage_do_cleanup_bci(dev);
@@ -769,7 +769,7 @@ static int savage_do_init_bci(struct drm_device * dev, drm_savage_init_t * init)
769 savage_do_cleanup_bci(dev); 769 savage_do_cleanup_bci(dev);
770 return -EINVAL; 770 return -EINVAL;
771 } 771 }
772 drm_core_ioremap(dev_priv->cmd_dma, dev); 772 drm_legacy_ioremap(dev_priv->cmd_dma, dev);
773 if (!dev_priv->cmd_dma->handle) { 773 if (!dev_priv->cmd_dma->handle) {
774 DRM_ERROR("failed to ioremap command " 774 DRM_ERROR("failed to ioremap command "
775 "DMA region!\n"); 775 "DMA region!\n");
@@ -895,11 +895,11 @@ static int savage_do_cleanup_bci(struct drm_device * dev)
895 } else if (dev_priv->cmd_dma && dev_priv->cmd_dma->handle && 895 } else if (dev_priv->cmd_dma && dev_priv->cmd_dma->handle &&
896 dev_priv->cmd_dma->type == _DRM_AGP && 896 dev_priv->cmd_dma->type == _DRM_AGP &&
897 dev_priv->dma_type == SAVAGE_DMA_AGP) 897 dev_priv->dma_type == SAVAGE_DMA_AGP)
898 drm_core_ioremapfree(dev_priv->cmd_dma, dev); 898 drm_legacy_ioremapfree(dev_priv->cmd_dma, dev);
899 899
900 if (dev_priv->dma_type == SAVAGE_DMA_AGP && 900 if (dev_priv->dma_type == SAVAGE_DMA_AGP &&
901 dev->agp_buffer_map && dev->agp_buffer_map->handle) { 901 dev->agp_buffer_map && dev->agp_buffer_map->handle) {
902 drm_core_ioremapfree(dev->agp_buffer_map, dev); 902 drm_legacy_ioremapfree(dev->agp_buffer_map, dev);
903 /* make sure the next instance (which may be running 903 /* make sure the next instance (which may be running
904 * in PCI mode) doesn't try to use an old 904 * in PCI mode) doesn't try to use an old
905 * agp_buffer_map. */ 905 * agp_buffer_map. */