aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_asic.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2013-08-13 05:56:52 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-08-30 16:30:41 -0400
commit2e1e6dad6a6d437e4c40611fdcc4e6cd9e2f969e (patch)
tree325bb0cb184b6a39211403124336f4e18b0728d4 /drivers/gpu/drm/radeon/radeon_asic.c
parent02c9f7fa4e7230fc4ae8bf26f64e45aa76011f9c (diff)
drm/radeon: remove special handling for the DMA ring
Now that we have callbacks for [rw]ptr handling we can remove the special handling for the DMA rings and use the callbacks instead. Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_asic.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_asic.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c
index 7432247a812a..785b7a7add77 100644
--- a/drivers/gpu/drm/radeon/radeon_asic.c
+++ b/drivers/gpu/drm/radeon/radeon_asic.c
@@ -896,9 +896,9 @@ static struct radeon_asic_ring r600_dma_ring = {
896 .ring_test = &r600_dma_ring_test, 896 .ring_test = &r600_dma_ring_test,
897 .ib_test = &r600_dma_ib_test, 897 .ib_test = &r600_dma_ib_test,
898 .is_lockup = &r600_dma_is_lockup, 898 .is_lockup = &r600_dma_is_lockup,
899 .get_rptr = &radeon_ring_generic_get_rptr, 899 .get_rptr = &r600_dma_get_rptr,
900 .get_wptr = &radeon_ring_generic_get_wptr, 900 .get_wptr = &r600_dma_get_wptr,
901 .set_wptr = &radeon_ring_generic_set_wptr, 901 .set_wptr = &r600_dma_set_wptr,
902}; 902};
903 903
904static struct radeon_asic r600_asic = { 904static struct radeon_asic r600_asic = {
@@ -1275,9 +1275,9 @@ static struct radeon_asic_ring evergreen_dma_ring = {
1275 .ring_test = &r600_dma_ring_test, 1275 .ring_test = &r600_dma_ring_test,
1276 .ib_test = &r600_dma_ib_test, 1276 .ib_test = &r600_dma_ib_test,
1277 .is_lockup = &evergreen_dma_is_lockup, 1277 .is_lockup = &evergreen_dma_is_lockup,
1278 .get_rptr = &radeon_ring_generic_get_rptr, 1278 .get_rptr = &r600_dma_get_rptr,
1279 .get_wptr = &radeon_ring_generic_get_wptr, 1279 .get_wptr = &r600_dma_get_wptr,
1280 .set_wptr = &radeon_ring_generic_set_wptr, 1280 .set_wptr = &r600_dma_set_wptr,
1281}; 1281};
1282 1282
1283static struct radeon_asic evergreen_asic = { 1283static struct radeon_asic evergreen_asic = {
@@ -1580,9 +1580,9 @@ static struct radeon_asic_ring cayman_dma_ring = {
1580 .ib_test = &r600_dma_ib_test, 1580 .ib_test = &r600_dma_ib_test,
1581 .is_lockup = &cayman_dma_is_lockup, 1581 .is_lockup = &cayman_dma_is_lockup,
1582 .vm_flush = &cayman_dma_vm_flush, 1582 .vm_flush = &cayman_dma_vm_flush,
1583 .get_rptr = &radeon_ring_generic_get_rptr, 1583 .get_rptr = &r600_dma_get_rptr,
1584 .get_wptr = &radeon_ring_generic_get_wptr, 1584 .get_wptr = &r600_dma_get_wptr,
1585 .set_wptr = &radeon_ring_generic_set_wptr 1585 .set_wptr = &r600_dma_set_wptr
1586}; 1586};
1587 1587
1588static struct radeon_asic_ring cayman_uvd_ring = { 1588static struct radeon_asic_ring cayman_uvd_ring = {
@@ -1822,9 +1822,9 @@ static struct radeon_asic_ring si_dma_ring = {
1822 .ib_test = &r600_dma_ib_test, 1822 .ib_test = &r600_dma_ib_test,
1823 .is_lockup = &si_dma_is_lockup, 1823 .is_lockup = &si_dma_is_lockup,
1824 .vm_flush = &si_dma_vm_flush, 1824 .vm_flush = &si_dma_vm_flush,
1825 .get_rptr = &radeon_ring_generic_get_rptr, 1825 .get_rptr = &r600_dma_get_rptr,
1826 .get_wptr = &radeon_ring_generic_get_wptr, 1826 .get_wptr = &r600_dma_get_wptr,
1827 .set_wptr = &radeon_ring_generic_set_wptr, 1827 .set_wptr = &r600_dma_set_wptr,
1828}; 1828};
1829 1829
1830static struct radeon_asic si_asic = { 1830static struct radeon_asic si_asic = {
@@ -1966,9 +1966,9 @@ static struct radeon_asic_ring ci_dma_ring = {
1966 .ib_test = &cik_sdma_ib_test, 1966 .ib_test = &cik_sdma_ib_test,
1967 .is_lockup = &cik_sdma_is_lockup, 1967 .is_lockup = &cik_sdma_is_lockup,
1968 .vm_flush = &cik_dma_vm_flush, 1968 .vm_flush = &cik_dma_vm_flush,
1969 .get_rptr = &radeon_ring_generic_get_rptr, 1969 .get_rptr = &r600_dma_get_rptr,
1970 .get_wptr = &radeon_ring_generic_get_wptr, 1970 .get_wptr = &r600_dma_get_wptr,
1971 .set_wptr = &radeon_ring_generic_set_wptr, 1971 .set_wptr = &r600_dma_set_wptr,
1972}; 1972};
1973 1973
1974static struct radeon_asic ci_asic = { 1974static struct radeon_asic ci_asic = {