[PATCH 2/2] radeonreg: add support for dce6

alexdeucher at gmail.com alexdeucher at gmail.com
Tue Aug 21 10:47:24 PDT 2012


From: Alex Deucher <alexander.deucher at amd.com>

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 radeonreg.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/radeonreg.c b/radeonreg.c
index 0dc14fe..37efdd7 100644
--- a/radeonreg.c
+++ b/radeonreg.c
@@ -252,6 +252,19 @@ static void radeon_show_dce5_display_regs(const char *type)
             SHOW_UNKNOWN_REG(i);
 }
 
+static void radeon_show_dce6_display_regs(const char *type)
+{
+    int tmp; /* may be stomped at any moment. */
+    unsigned long i;
+
+    for (i = 0x0000; i < 0x5e8; i += 4)
+            SHOW_UNKNOWN_REG(i);
+    for (i = 0x5800; i < 0x7fb0; i += 4)
+            SHOW_UNKNOWN_REG(i);
+    for (i = 0x10000; i < 0x12fb0; i += 4)
+            SHOW_UNKNOWN_REG(i);
+}
+
 void radeon_cmd_regs(const char *type)
 {
 
@@ -276,6 +289,10 @@ void radeon_cmd_regs(const char *type)
 	radeon_show_dce5_display_regs(type);
         return;
     }
+    if (strcmp(type, "dce6") == 0) {
+	radeon_show_dce6_display_regs(type);
+        return;
+    }
     if (strcmp(type, "all") == 0) {
 	    if (IS_DISPLAY_RADEON(card_info))
 		    radeon_show_radeon_display_regs(type);
@@ -287,6 +304,8 @@ void radeon_cmd_regs(const char *type)
 		    radeon_show_dce4_display_regs(type);
 	    else if (IS_DISPLAY_DCE5(card_info))
 		    radeon_show_dce5_display_regs(type);
+	    else if (IS_DISPLAY_DCE6(card_info))
+		    radeon_show_dce6_display_regs(type);
 	    else
 		    printf("unknown chipset, specify the regs to dump\n");
 	    return;
-- 
1.7.7.5



More information about the xorg-driver-ati mailing list