summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--radeonreg.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/radeonreg.c b/radeonreg.c
index 7ebce54..208c0d5 100644
--- a/radeonreg.c
+++ b/radeonreg.c
@@ -278,6 +278,40 @@ static void radeon_show_dce8_display_regs(const char *type)
SHOW_UNKNOWN_REG(i);
}
+static void radeon_show_dce10_display_regs(const char *type)
+{
+ int tmp; /* may be stomped at any moment. */
+ unsigned long i;
+
+ for (i = 0x0000; i < 0x5e4; i += 4)
+ SHOW_UNKNOWN_REG(i);
+ for (i = 0xa00; i < 0xcb8; i += 4)
+ SHOW_UNKNOWN_REG(i);
+ for (i = 0x5800; i < 0x8000; i += 4)
+ SHOW_UNKNOWN_REG(i);
+ for (i = 0x10000; i < 0x13f70; i += 4)
+ SHOW_UNKNOWN_REG(i);
+ for (i = 0x15000; i < 0x17980; i += 4)
+ SHOW_UNKNOWN_REG(i);
+}
+
+static void radeon_show_dce11_display_regs(const char *type)
+{
+ int tmp; /* may be stomped at any moment. */
+ unsigned long i;
+
+ for (i = 0x0000; i < 0x5e4; i += 4)
+ SHOW_UNKNOWN_REG(i);
+ for (i = 0xa00; i < 0xcdc; i += 4)
+ SHOW_UNKNOWN_REG(i);
+ for (i = 0x5800; i < 0x8000; i += 4)
+ SHOW_UNKNOWN_REG(i);
+ for (i = 0x10000; i < 0x13f78; i += 4)
+ SHOW_UNKNOWN_REG(i);
+ for (i = 0x15000; i < 0x17980; i += 4)
+ SHOW_UNKNOWN_REG(i);
+}
+
void radeon_cmd_regs(const char *type)
{
@@ -310,6 +344,14 @@ void radeon_cmd_regs(const char *type)
radeon_show_dce8_display_regs(type);
return;
}
+ if (strcmp(type, "dce10") == 0) {
+ radeon_show_dce10_display_regs(type);
+ return;
+ }
+ if (strcmp(type, "dce11") == 0) {
+ radeon_show_dce11_display_regs(type);
+ return;
+ }
if (strcmp(type, "all") == 0) {
if (IS_DISPLAY_RADEON(card_info))
radeon_show_radeon_display_regs(type);
@@ -325,6 +367,10 @@ void radeon_cmd_regs(const char *type)
radeon_show_dce6_display_regs(type);
else if (IS_DISPLAY_DCE8(card_info))
radeon_show_dce8_display_regs(type);
+ else if (IS_DISPLAY_DCE10(card_info))
+ radeon_show_dce10_display_regs(type);
+ else if (IS_DISPLAY_DCE11(card_info))
+ radeon_show_dce11_display_regs(type);
else
printf("unknown chipset, specify the regs to dump\n");
return;