diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2016-01-05 19:15:59 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2016-01-05 19:16:41 -0500 |
commit | e0f10b5e6489439ed45717cbc0c875036e7cc60f (patch) | |
tree | 22753af2cda643ac1bcb9cfa23dae6e00c6bb549 | |
parent | 2dbfa545b44548139fb1effda4fc448110968ea6 (diff) |
radeonreg: add dce10, dce11 supportdce10-11
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
-rw-r--r-- | radeonreg.c | 46 |
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; |