summary refs log tree commit diff stats
path: root/hw/display/ati_dbg.c
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2019-08-11 23:14:53 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-08-21 10:56:27 +0200
commitdf1e4cf4e72b7ff7ec239afedaf7880ae667e431 (patch)
tree01185680d72864a488e1a2620a321a3d30b9f6e5 /hw/display/ati_dbg.c
parent1d8d4d866c62a0d0b7ee9468cf6e121ad1bfb2b1 (diff)
downloadfocaccia-qemu-df1e4cf4e72b7ff7ec239afedaf7880ae667e431.tar.gz
focaccia-qemu-df1e4cf4e72b7ff7ec239afedaf7880ae667e431.zip
ati-vga: Add some register definitions for debugging
Add names for AMCGPIO regs to make it easier to identify these in
trace output. This is where rage128p has the DDC from the DVI port
among others but because we don't implement the flat panel controller
we don't want to connect an EDID here to make sure drivers use the VGA
output instead. But since these are often probed by drivers it helps
to see what happens by logging these registers by name.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-id: 31ff69ca6959d090869907774faa1af7d2c02b2b.1565558093.git.balaton@eik.bme.hu
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/ati_dbg.c')
-rw-r--r--hw/display/ati_dbg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/display/ati_dbg.c b/hw/display/ati_dbg.c
index cbc52025d0..7e59c41ac2 100644
--- a/hw/display/ati_dbg.c
+++ b/hw/display/ati_dbg.c
@@ -23,6 +23,10 @@ static struct ati_regdesc ati_reg_names[] = {
     {"GPIO_DVI_DDC", 0x0064},
     {"GPIO_MONID", 0x0068},
     {"I2C_CNTL_1", 0x0094},
+    {"AMCGPIO_MASK_MIR", 0x009c},
+    {"AMCGPIO_A_MIR", 0x00a0},
+    {"AMCGPIO_Y_MIR", 0x00a4},
+    {"AMCGPIO_EN_MIR", 0x00a8},
     {"PALETTE_INDEX", 0x00b0},
     {"PALETTE_DATA", 0x00b4},
     {"CNFG_CNTL", 0x00e0},