diff options
Diffstat (limited to 'avivotool.c')
-rw-r--r-- | avivotool.c | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/avivotool.c b/avivotool.c index 0137b8f..240f523 100644 --- a/avivotool.c +++ b/avivotool.c @@ -936,11 +936,26 @@ static uint32_t eg_offsets[] = { EVERGREEN_CRTC0_REGISTER_OFFSET, EVERGREEN_CRTC void eg_cmd_regs(const char *type) { int show_all = (strcmp(type, "all") == 0); + int show_mc = (show_all || strstr(type, "mc")); int show_grphs = 0; int i; uint32_t tmp, tmp1; char tmpname[10]; + if (show_mc) { + printf("\nMemory controller:\n"); + SHOW_REG(MC_VM_FB_LOCATION); + SHOW_REG(MC_FUS_VM_FB_OFFSET); + SHOW_REG(MC_VM_AGP_TOP); + SHOW_REG(MC_VM_AGP_BOT); + SHOW_REG(MC_VM_AGP_BASE); + SHOW_REG(MC_VM_SYSTEM_APERTURE_LOW_ADDR); + SHOW_REG(MC_VM_SYSTEM_APERTURE_HIGH_ADDR); + SHOW_REG(MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR); + SHOW_REG(VM_CONTEXT0_PAGE_TABLE_BASE_ADDR); + SHOW_REG(VM_CONTEXT0_PAGE_TABLE_START_ADDR); + SHOW_REG(VM_CONTEXT0_PAGE_TABLE_END_ADDR); + } for (i = 0; i < EG_NUM_OFFSETS; i++) { tmp = EG_GET_MODE_REG(i, EVERGREEN_CRTC_CONTROL); tmp1 = EG_GET_MODE_REG(i, EVERGREEN_CUR_CONTROL); @@ -1027,6 +1042,10 @@ void eg_cmd_regs(const char *type) printf("\n"); if (show_all) { + for (i = 0x1410 ; i < 0x1600; i+=4) + SHOW_UNKNOWN_REG(i); + for (i = 0x2000 ; i < 0x2800; i+=4) + SHOW_UNKNOWN_REG(i); for (i = 0x6250 ; i < 0x626c; i+=4) SHOW_UNKNOWN_REG(i); for (i = 0x6400 ; i < 0x641c; i+=4) @@ -1055,32 +1074,9 @@ void eg_cmd_regs(const char *type) SHOW_UNKNOWN_REG(i); - for (i = 0x6fac ; i <= 0x7014; i+=4) - SHOW_UNKNOWN_REG(i); - for (i = 0x79f0 ; i < 0x7a78; i+=4) - SHOW_UNKNOWN_REG(i); - for (i = 0x7bac ; i <= 0x7c14; i+=4) - SHOW_UNKNOWN_REG(i); - for (i = 0x107ac ; i <= 0x10814; i+=4) - SHOW_UNKNOWN_REG(i); - for (i = 0x113ac ; i <= 0x11414; i+=4) - SHOW_UNKNOWN_REG(i); - for (i = 0x11fac ; i <= 0x12014; i+=4) - SHOW_UNKNOWN_REG(i); - for (i = 0x12bac ; i <= 0x12c14; i+=4) - SHOW_UNKNOWN_REG(i); - - for (i = 0x71f0 ; i <= 0x7220; i+=4) - SHOW_UNKNOWN_REG(i); - for (i = 0x7df0 ; i <= 0x7e20; i+=4) - SHOW_UNKNOWN_REG(i); - for (i = 0x109f0 ; i <= 0x10a20; i+=4) - SHOW_UNKNOWN_REG(i); - for (i = 0x115f0 ; i <= 0x11620; i+=4) - SHOW_UNKNOWN_REG(i); - for (i = 0x121f0 ; i <= 0x12220; i+=4) + for (i = 0x8000 ; i <= 0xa000; i+=4) SHOW_UNKNOWN_REG(i); - for (i = 0x12df0 ; i <= 0x12e20; i+=4) + for (i = 0x28000 ; i <= 0x2a000; i+=4) SHOW_UNKNOWN_REG(i); } } |