aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_asic.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-01-24 10:35:23 -0500
committerAlex Deucher <alexander.deucher@amd.com>2013-02-20 08:51:21 -0500
commitd0418894142f88041d2b7b5aa4f8bf3178d89514 (patch)
tree4f5fd10c72b8ea4203535a11731db50a36911e81 /drivers/gpu/drm/radeon/radeon_asic.c
parent454d2e2a32f02a4f8e0364ba0e8ce4f8dbe9810c (diff)
drm/radeon: switch get_gpu_clock() to a callback (v2)
Cleans up the code for future asics v2: rebase, fix some missing radeon_asic updates 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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c
index e1b4a6832312..aba0a893ea98 100644
--- a/drivers/gpu/drm/radeon/radeon_asic.c
+++ b/drivers/gpu/drm/radeon/radeon_asic.c
@@ -935,6 +935,7 @@ static struct radeon_asic r600_asic = {
935 .gui_idle = &r600_gui_idle, 935 .gui_idle = &r600_gui_idle,
936 .mc_wait_for_idle = &r600_mc_wait_for_idle, 936 .mc_wait_for_idle = &r600_mc_wait_for_idle,
937 .get_xclk = &r600_get_xclk, 937 .get_xclk = &r600_get_xclk,
938 .get_gpu_clock_counter = &r600_get_gpu_clock_counter,
938 .gart = { 939 .gart = {
939 .tlb_flush = &r600_pcie_gart_tlb_flush, 940 .tlb_flush = &r600_pcie_gart_tlb_flush,
940 .set_page = &rs600_gart_set_page, 941 .set_page = &rs600_gart_set_page,
@@ -1020,6 +1021,7 @@ static struct radeon_asic rs780_asic = {
1020 .gui_idle = &r600_gui_idle, 1021 .gui_idle = &r600_gui_idle,
1021 .mc_wait_for_idle = &r600_mc_wait_for_idle, 1022 .mc_wait_for_idle = &r600_mc_wait_for_idle,
1022 .get_xclk = &r600_get_xclk, 1023 .get_xclk = &r600_get_xclk,
1024 .get_gpu_clock_counter = &r600_get_gpu_clock_counter,
1023 .gart = { 1025 .gart = {
1024 .tlb_flush = &r600_pcie_gart_tlb_flush, 1026 .tlb_flush = &r600_pcie_gart_tlb_flush,
1025 .set_page = &rs600_gart_set_page, 1027 .set_page = &rs600_gart_set_page,
@@ -1105,6 +1107,7 @@ static struct radeon_asic rv770_asic = {
1105 .gui_idle = &r600_gui_idle, 1107 .gui_idle = &r600_gui_idle,
1106 .mc_wait_for_idle = &r600_mc_wait_for_idle, 1108 .mc_wait_for_idle = &r600_mc_wait_for_idle,
1107 .get_xclk = &rv770_get_xclk, 1109 .get_xclk = &rv770_get_xclk,
1110 .get_gpu_clock_counter = &r600_get_gpu_clock_counter,
1108 .gart = { 1111 .gart = {
1109 .tlb_flush = &r600_pcie_gart_tlb_flush, 1112 .tlb_flush = &r600_pcie_gart_tlb_flush,
1110 .set_page = &rs600_gart_set_page, 1113 .set_page = &rs600_gart_set_page,
@@ -1190,6 +1193,7 @@ static struct radeon_asic evergreen_asic = {
1190 .gui_idle = &r600_gui_idle, 1193 .gui_idle = &r600_gui_idle,
1191 .mc_wait_for_idle = &evergreen_mc_wait_for_idle, 1194 .mc_wait_for_idle = &evergreen_mc_wait_for_idle,
1192 .get_xclk = &rv770_get_xclk, 1195 .get_xclk = &rv770_get_xclk,
1196 .get_gpu_clock_counter = &r600_get_gpu_clock_counter,
1193 .gart = { 1197 .gart = {
1194 .tlb_flush = &evergreen_pcie_gart_tlb_flush, 1198 .tlb_flush = &evergreen_pcie_gart_tlb_flush,
1195 .set_page = &rs600_gart_set_page, 1199 .set_page = &rs600_gart_set_page,
@@ -1275,6 +1279,7 @@ static struct radeon_asic sumo_asic = {
1275 .gui_idle = &r600_gui_idle, 1279 .gui_idle = &r600_gui_idle,
1276 .mc_wait_for_idle = &evergreen_mc_wait_for_idle, 1280 .mc_wait_for_idle = &evergreen_mc_wait_for_idle,
1277 .get_xclk = &r600_get_xclk, 1281 .get_xclk = &r600_get_xclk,
1282 .get_gpu_clock_counter = &r600_get_gpu_clock_counter,
1278 .gart = { 1283 .gart = {
1279 .tlb_flush = &evergreen_pcie_gart_tlb_flush, 1284 .tlb_flush = &evergreen_pcie_gart_tlb_flush,
1280 .set_page = &rs600_gart_set_page, 1285 .set_page = &rs600_gart_set_page,
@@ -1360,6 +1365,7 @@ static struct radeon_asic btc_asic = {
1360 .gui_idle = &r600_gui_idle, 1365 .gui_idle = &r600_gui_idle,
1361 .mc_wait_for_idle = &evergreen_mc_wait_for_idle, 1366 .mc_wait_for_idle = &evergreen_mc_wait_for_idle,
1362 .get_xclk = &rv770_get_xclk, 1367 .get_xclk = &rv770_get_xclk,
1368 .get_gpu_clock_counter = &r600_get_gpu_clock_counter,
1363 .gart = { 1369 .gart = {
1364 .tlb_flush = &evergreen_pcie_gart_tlb_flush, 1370 .tlb_flush = &evergreen_pcie_gart_tlb_flush,
1365 .set_page = &rs600_gart_set_page, 1371 .set_page = &rs600_gart_set_page,
@@ -1445,6 +1451,7 @@ static struct radeon_asic cayman_asic = {
1445 .gui_idle = &r600_gui_idle, 1451 .gui_idle = &r600_gui_idle,
1446 .mc_wait_for_idle = &evergreen_mc_wait_for_idle, 1452 .mc_wait_for_idle = &evergreen_mc_wait_for_idle,
1447 .get_xclk = &rv770_get_xclk, 1453 .get_xclk = &rv770_get_xclk,
1454 .get_gpu_clock_counter = &r600_get_gpu_clock_counter,
1448 .gart = { 1455 .gart = {
1449 .tlb_flush = &cayman_pcie_gart_tlb_flush, 1456 .tlb_flush = &cayman_pcie_gart_tlb_flush,
1450 .set_page = &rs600_gart_set_page, 1457 .set_page = &rs600_gart_set_page,
@@ -1573,6 +1580,7 @@ static struct radeon_asic trinity_asic = {
1573 .gui_idle = &r600_gui_idle, 1580 .gui_idle = &r600_gui_idle,
1574 .mc_wait_for_idle = &evergreen_mc_wait_for_idle, 1581 .mc_wait_for_idle = &evergreen_mc_wait_for_idle,
1575 .get_xclk = &r600_get_xclk, 1582 .get_xclk = &r600_get_xclk,
1583 .get_gpu_clock_counter = &r600_get_gpu_clock_counter,
1576 .gart = { 1584 .gart = {
1577 .tlb_flush = &cayman_pcie_gart_tlb_flush, 1585 .tlb_flush = &cayman_pcie_gart_tlb_flush,
1578 .set_page = &rs600_gart_set_page, 1586 .set_page = &rs600_gart_set_page,
@@ -1701,6 +1709,7 @@ static struct radeon_asic si_asic = {
1701 .gui_idle = &r600_gui_idle, 1709 .gui_idle = &r600_gui_idle,
1702 .mc_wait_for_idle = &evergreen_mc_wait_for_idle, 1710 .mc_wait_for_idle = &evergreen_mc_wait_for_idle,
1703 .get_xclk = &si_get_xclk, 1711 .get_xclk = &si_get_xclk,
1712 .get_gpu_clock_counter = &si_get_gpu_clock_counter,
1704 .gart = { 1713 .gart = {
1705 .tlb_flush = &si_pcie_gart_tlb_flush, 1714 .tlb_flush = &si_pcie_gart_tlb_flush,
1706 .set_page = &rs600_gart_set_page, 1715 .set_page = &rs600_gart_set_page,