Further ATI Rage registers

This commit is contained in:
dingusdev 2021-01-08 14:32:06 -07:00
parent 358f018815
commit 9210244c0c
2 changed files with 149 additions and 121 deletions

View File

@ -98,6 +98,9 @@ const char* ATIRage::get_reg_name(uint32_t reg_offset) {
case ATI_CRTC_V_SYNC_STRT_WID: case ATI_CRTC_V_SYNC_STRT_WID:
reg_name = "CRTC_V_SYNC_STRT_WID"; reg_name = "CRTC_V_SYNC_STRT_WID";
break; break;
case ATI_CRTC_VLINE_CRNT_VLINE:
reg_name = "CRTC_VLINE_CRNT_VLINE";
break;
case ATI_CRTC_OFF_PITCH: case ATI_CRTC_OFF_PITCH:
reg_name = "CRTC_OFF_PITCH"; reg_name = "CRTC_OFF_PITCH";
break; break;
@ -131,6 +134,18 @@ const char* ATIRage::get_reg_name(uint32_t reg_offset) {
case ATI_GP_IO: case ATI_GP_IO:
reg_name = "GP_IO"; reg_name = "GP_IO";
break; break;
case ATI_SCRATCH_REG0:
reg_name = "SCRATCH_REG0";
break;
case ATI_SCRATCH_REG1:
reg_name = "SCRATCH_REG1";
break;
case ATI_SCRATCH_REG2:
reg_name = "SCRATCH_REG2";
break;
case ATI_SCRATCH_REG3:
reg_name = "SCRATCH_REG3";
break;
case ATI_CLOCK_CNTL: case ATI_CLOCK_CNTL:
reg_name = "CLOCK_CNTL"; reg_name = "CLOCK_CNTL";
break; break;

View File

@ -41,6 +41,7 @@ enum {
ATI_CRTC_H_SYNC_STRT_WID = 0x0004, ATI_CRTC_H_SYNC_STRT_WID = 0x0004,
ATI_CRTC_V_TOTAL_DISP = 0x0008, ATI_CRTC_V_TOTAL_DISP = 0x0008,
ATI_CRTC_V_SYNC_STRT_WID = 0x000C, ATI_CRTC_V_SYNC_STRT_WID = 0x000C,
ATI_CRTC_VLINE_CRNT_VLINE = 0x0010,
ATI_CRTC_OFF_PITCH = 0x0014, ATI_CRTC_OFF_PITCH = 0x0014,
ATI_CRTC_INT_CNTL = 0x0018, ATI_CRTC_INT_CNTL = 0x0018,
ATI_CRTC_GEN_CNTL = 0x001C, ATI_CRTC_GEN_CNTL = 0x001C,
@ -139,8 +140,20 @@ enum {
ATI_PAT_REG0 = 0x0280, ATI_PAT_REG0 = 0x0280,
ATI_PAT_REG1 = 0x0284, ATI_PAT_REG1 = 0x0284,
ATI_PAT_CNTL = 0x0288, ATI_PAT_CNTL = 0x0288,
ATI_SC_LEFT = 0x02A0,
ATI_SC_RIGHT = 0x02A4,
ATI_SC_LEFT_RIGHT = 0x02A8,
ATI_SC_TOP = 0x02AC,
ATI_SC_BOTTOM = 0x02B0,
ATI_SC_TOP_BOTTOM = 0x02B4,
ATI_DP_BKGD_CLR = 0x02C0,
ATI_DP_FOG_CLR = 0x02C0,
ATI_DP_WRITE_MSK = 0x02C8, ATI_DP_WRITE_MSK = 0x02C8,
ATI_DP_PIX_WIDTH = 0x02D0, ATI_DP_PIX_WIDTH = 0x02D0,
ATI_DP_MIX = 0x02D4,
ATI_DP_SRC = 0x02D8,
ATI_FRGD_CLR_MIX = 0x02DC,
ATI_FRGD_BKGD_CLR = 0x02E0,
ATI_DST_X_Y = 0x02E8, ATI_DST_X_Y = 0x02E8,
ATI_DST_WIDTH_HEIGHT = 0x02EC, ATI_DST_WIDTH_HEIGHT = 0x02EC,
ATI_USR_DST_PITCH = 0x02F0, ATI_USR_DST_PITCH = 0x02F0,