diff options
author | Dafydd Harries <daf@rhydd.org> | 2007-09-13 00:57:24 +0100 |
---|---|---|
committer | Dafydd Harries <daf@rhydd.org> | 2007-09-13 02:14:18 +0100 |
commit | b855cd14b243fade1d72a9680c72ff937767dc81 (patch) | |
tree | 9b33f85e3a5e878b4c3fea89f8c8fae049bfd6f5 | |
parent | 5cf23d02078761e02b1dee999e36beb05ca1cb11 (diff) |
6*84 is blank status, not mode (and is read only)
-rw-r--r-- | avivotool/avivotool.c | 13 | ||||
-rw-r--r-- | include/avivo.h | 4 | ||||
-rw-r--r-- | include/radeon_reg.h | 7 | ||||
-rw-r--r-- | xorg/avivo_crtc.c | 1 | ||||
-rw-r--r-- | xorg/avivo_state.c | 7 |
5 files changed, 14 insertions, 18 deletions
diff --git a/avivotool/avivotool.c b/avivotool/avivotool.c index 94c7edc..f12c1e3 100644 --- a/avivotool/avivotool.c +++ b/avivotool/avivotool.c @@ -538,7 +538,6 @@ void radeon_output_set(char *output, char *status) SET_REG(AVIVO_CRTC1_V_SYNC_WID, (3 << 16)); SET_REG(AVIVO_CRTC1_V_SYNC_POL, 0x00000000); SET_REG(AVIVO_CRTC1_FB_FORMAT, AVIVO_CRTC_FORMAT_ARGB32); - SET_REG(AVIVO_CRTC1_MODE, 0x00000000); SET_REG(AVIVO_CRTC1_CNTL, AVIVO_CRTC_EN); SET_REG(AVIVO_CRTC1_SCAN_ENABLE, AVIVO_CRTC_SCAN_EN); } @@ -756,7 +755,7 @@ static struct { REGLIST(AVIVO_CRTC1_V_SYNC_WID), REGLIST(AVIVO_CRTC1_V_SYNC_POL), REGLIST(AVIVO_CRTC1_CNTL), - REGLIST(AVIVO_CRTC1_MODE), + REGLIST(AVIVO_CRTC1_BLANK_STATUS), REGLIST(AVIVO_CRTC1_SCAN_ENABLE), REGLIST(AVIVO_CRTC1_FB_FORMAT), REGLIST(AVIVO_CRTC1_FB_LOCATION), @@ -777,7 +776,7 @@ static struct { REGLIST(AVIVO_CRTC2_V_SYNC_WID), REGLIST(AVIVO_CRTC2_V_SYNC_POL), REGLIST(AVIVO_CRTC2_CNTL), - REGLIST(AVIVO_CRTC2_MODE), + REGLIST(AVIVO_CRTC2_BLANK_STATUS), REGLIST(AVIVO_CRTC2_SCAN_ENABLE), REGLIST(AVIVO_CRTC2_FB_FORMAT), REGLIST(AVIVO_CRTC2_FB_LOCATION), @@ -1036,8 +1035,8 @@ void radeon_cmd_regs(const char *type) 8, 8, "Mystery bit #1", 16, 16, "Mystery bit #2", 0, 0, NULL); - SHOW_REG_BITS(AVIVO_CRTC1_MODE, - 8, 8, "Text mode", + SHOW_REG_BITS(AVIVO_CRTC1_BLANK_STATUS, + 8, 8, "Blank status", 0, 0, NULL); SHOW_REG_DECIMAL(AVIVO_CRTC1_H_TOTAL); SHOW_REG_BITS(AVIVO_CRTC1_H_BLANK, @@ -1098,8 +1097,8 @@ void radeon_cmd_regs(const char *type) 8, 8, "Mystery bit #1", 16, 16, "Mystery bit #2", 0, 0, NULL); - SHOW_REG_BITS(AVIVO_CRTC2_MODE, - 8, 8, "Text mode", + SHOW_REG_BITS(AVIVO_CRTC2_BLANK_STATUS, + 8, 8, "Blank status", 0, 0, NULL); SHOW_REG_DECIMAL(AVIVO_CRTC2_H_TOTAL); SHOW_REG_BITS(AVIVO_CRTC2_H_BLANK, diff --git a/include/avivo.h b/include/avivo.h index bfb0b6d..b2ab816 100644 --- a/include/avivo.h +++ b/include/avivo.h @@ -109,7 +109,7 @@ struct avivo_state int crtc1_v_sync_wid; int crtc1_v_sync_pol; int crtc1_cntl; - int crtc1_mode; + int crtc1_blank_status; int crtc1_stereo_status; int crtc1_scan_enable; int crtc1_fb_format; @@ -142,7 +142,7 @@ struct avivo_state int crtc2_v_sync_wid; int crtc2_v_sync_pol; int crtc2_cntl; - int crtc2_mode; + int crtc2_blank_status; int crtc2_scan_enable; int crtc2_fb_format; int crtc2_fb_location; diff --git a/include/radeon_reg.h b/include/radeon_reg.h index 874ffdc..b73b68c 100644 --- a/include/radeon_reg.h +++ b/include/radeon_reg.h @@ -84,7 +84,7 @@ # define RADEON_AGP_APER_SIZE_8MB (0x3e << 0) # define RADEON_AGP_APER_SIZE_4MB (0x3f << 0) # define RADEON_AGP_APER_SIZE_MASK (0x3f << 0) -#define RADEON_STATUS_PCI_CONFIG 0x06 +#define RADEON_STATUS_BLANK_CONFIG 0x06 # define RADEON_CAP_LIST 0x100000 #define RADEON_CAPABILITIES_PTR_PCI_CONFIG 0x34 /* offset in PCI config*/ # define RADEON_CAP_PTR_MASK 0xfc /* mask off reserved bits of CAP_PTR */ @@ -3245,8 +3245,7 @@ #define AVIVO_CRTC1_V_SYNC_POL 0x602c #define AVIVO_CRTC1_CNTL 0x6080 # define AVIVO_CRTC_EN (1 << 0) -#define AVIVO_CRTC1_MODE 0x6084 -# define AVIVO_CRTC_MODE_TEXT (1 << 8) +#define AVIVO_CRTC1_BLANK_STATUS 0x6084 #define AVIVO_CRTC1_STEREO_STATUS 0x60c0 /* These all appear to control the scanout from the framebuffer. @@ -3313,7 +3312,7 @@ #define AVIVO_CRTC2_V_SYNC_WID 0x6828 #define AVIVO_CRTC2_V_SYNC_POL 0x682c #define AVIVO_CRTC2_CNTL 0x6880 -#define AVIVO_CRTC2_MODE 0x6884 +#define AVIVO_CRTC2_BLANK_STATUS 0x6884 #define AVIVO_CRTC2_SCAN_ENABLE 0x6900 #define AVIVO_CRTC2_FB_FORMAT 0x6904 diff --git a/xorg/avivo_crtc.c b/xorg/avivo_crtc.c index 7114f0d..0e92892 100644 --- a/xorg/avivo_crtc.c +++ b/xorg/avivo_crtc.c @@ -254,7 +254,6 @@ avivo_crtc_mode_set(xf86CrtcPtr crtc, avivo_crtc->fb_format); OUTREG(AVIVO_CRTC1_FB_END + avivo_crtc->crtc_offset, fb_location + avivo_crtc->fb_length); - OUTREG(AVIVO_CRTC1_MODE + avivo_crtc->crtc_offset, 0); /* avivo can only shift offset by 4 pixel in x if you program somethings * not multiple of 4 you gonna drive the GPU crazy and likely won't * be able to restore it without cold reboot (vbe post not enough) diff --git a/xorg/avivo_state.c b/xorg/avivo_state.c index f7d3864..3dff5e1 100644 --- a/xorg/avivo_state.c +++ b/xorg/avivo_state.c @@ -114,7 +114,6 @@ avivo_restore_state(ScrnInfoPtr screen_info) #endif OUTREG(AVIVO_CRTC1_V_SYNC_POL, state->crtc1_v_sync_pol); OUTREG(AVIVO_CRTC1_CNTL, state->crtc1_cntl); - OUTREG(AVIVO_CRTC1_MODE, state->crtc1_mode); OUTREG(AVIVO_CRTC1_SCAN_ENABLE, state->crtc1_scan_enable); OUTREG(AVIVO_CRTC1_FB_FORMAT, state->crtc1_fb_format); OUTREG(AVIVO_CRTC1_FB_LOCATION, state->crtc1_fb_location); @@ -148,7 +147,7 @@ avivo_restore_state(ScrnInfoPtr screen_info) OUTREG(AVIVO_CRTC2_V_SYNC_WID, state->crtc2_v_sync_wid); OUTREG(AVIVO_CRTC2_V_SYNC_POL, state->crtc2_v_sync_pol); OUTREG(AVIVO_CRTC2_CNTL, state->crtc2_cntl); - OUTREG(AVIVO_CRTC2_MODE, state->crtc2_mode); + OUTREG(AVIVO_CRTC2_BLANK_STATUS, state->crtc2_blank_status); OUTREG(AVIVO_CRTC2_SCAN_ENABLE, state->crtc2_scan_enable); OUTREG(AVIVO_CRTC2_FB_FORMAT, state->crtc2_fb_format); OUTREG(AVIVO_CRTC2_FB_LOCATION, state->crtc2_fb_location); @@ -231,7 +230,7 @@ avivo_save_state(ScrnInfoPtr screen_info) state->crtc1_v_sync_wid = INREG(AVIVO_CRTC1_V_SYNC_WID); state->crtc1_v_sync_pol = INREG(AVIVO_CRTC1_V_SYNC_POL); state->crtc1_cntl = INREG(AVIVO_CRTC1_CNTL); - state->crtc1_mode = INREG(AVIVO_CRTC1_MODE); + state->crtc1_blank_status = INREG(AVIVO_CRTC1_BLANK_STATUS); state->crtc1_stereo_status = INREG(AVIVO_CRTC1_STEREO_STATUS); state->crtc1_scan_enable = INREG(AVIVO_CRTC1_SCAN_ENABLE); state->crtc1_fb_format = INREG(AVIVO_CRTC1_FB_FORMAT); @@ -265,7 +264,7 @@ avivo_save_state(ScrnInfoPtr screen_info) state->crtc2_v_sync_wid = INREG(AVIVO_CRTC2_V_SYNC_WID); state->crtc2_v_sync_pol = INREG(AVIVO_CRTC2_V_SYNC_POL); state->crtc2_cntl = INREG(AVIVO_CRTC2_CNTL); - state->crtc2_mode = INREG(AVIVO_CRTC2_MODE); + state->crtc2_blank_status = INREG(AVIVO_CRTC2_BLANK_STATUS); state->crtc2_scan_enable = INREG(AVIVO_CRTC2_SCAN_ENABLE); state->crtc2_fb_format = INREG(AVIVO_CRTC2_FB_FORMAT); state->crtc2_fb_location = INREG(AVIVO_CRTC2_FB_LOCATION); |