From 5215e19af58f5c2746c8d281e33ecee86e55f0a5 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 13 Mar 2006 10:29:51 -0800 Subject: [PATCH] Add some register information for VGACNTRL, and do the reg-debug thing on it. --- src/i810_reg.h | 5 +++++ src/i830_debug.c | 1 + 2 files changed, 6 insertions(+) diff --git a/src/i810_reg.h b/src/i810_reg.h index f781b93c..3316fed3 100644 --- a/src/i810_reg.h +++ b/src/i810_reg.h @@ -837,6 +837,11 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define DSPBPOS 0x7118C #define DSPBSIZE 0x71190 +#define VGACNTRL 0x71400 +# define VGA_DISP_DISABLE (1 << 31) +# define VGA_2X_MODE (1 << 30) +# define VGA_PIPE_B_SELECT (1 << 29) + /* Various masks for reserved bits, etc. */ #define I830_FWATER1_MASK (~((1<<11)|(1<<10)|(1<<9)| \ (1<<8)|(1<<26)|(1<<25)|(1<<24)|(1<<5)|(1<<4)|(1<<3)| \ diff --git a/src/i830_debug.c b/src/i830_debug.c index 0695f065..96426c46 100644 --- a/src/i830_debug.c +++ b/src/i830_debug.c @@ -70,6 +70,7 @@ static struct i830SnapshotRec { DEFINEREG(VCLK_DIVISOR_VGA0), DEFINEREG(VCLK_DIVISOR_VGA1), DEFINEREG(VCLK_POST_DIV), + DEFINEREG(VGACNTRL), }; #undef DEFINEREG #define NUM_I830_SNAPSHOTREGS (sizeof(i830_snapshot) / sizeof(i830_snapshot[0]))