From 4eb28ca342b7d22583935cf83052d607d791f1d2 Mon Sep 17 00:00:00 2001 From: Li-Ta Lo Date: Tue, 6 Nov 2001 04:29:38 +0000 Subject: [PATCH] enable VGA palette snoop and legacy VGA IO port --- src/northsouthbridge/sis/630/northbridge.c | 9 ++++++++- src/northsouthbridge/sis/730/northbridge.c | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/northsouthbridge/sis/630/northbridge.c b/src/northsouthbridge/sis/630/northbridge.c index d4ec960da8..a6781ce9c3 100644 --- a/src/northsouthbridge/sis/630/northbridge.c +++ b/src/northsouthbridge/sis/630/northbridge.c @@ -98,8 +98,15 @@ void framebuffer_on() unsigned long devfn; u16 command; - /* enable legacy VGA register (0x3?4, 0x3?5), needed for XFree86 3.3.6 */ devfn = PCI_DEVFN(2, 0); + + /* Enable VGA Palette Snoop */ + pcibios_read_config_word(0, devfn, 0x04, &command); + command |= 0x20; + pcibios_write_config_word(0, devfn, 0x04, command); + + /* enable legacy VGA IO (0x3B0 - 0x3BB, 0x3C0 - 0x3DF) and MEM (0xA0000 - 0xBFFFF), + needed for XFree86 3.3.6 */ pcibios_read_config_word(0, devfn, 0x3e, &command); command |= 0x08; pcibios_write_config_word(0, devfn, 0x3e, command); diff --git a/src/northsouthbridge/sis/730/northbridge.c b/src/northsouthbridge/sis/730/northbridge.c index db25306e43..a5eb82bc50 100644 --- a/src/northsouthbridge/sis/730/northbridge.c +++ b/src/northsouthbridge/sis/730/northbridge.c @@ -106,8 +106,15 @@ void framebuffer_on() unsigned long devfn = PCI_DEVFN(0, 0); u32 command; - /* enable legacy VGA register (0x3?4, 0x3?5), not actually needed */ devfn = PCI_DEVFN(2, 0); + + /* Enable VGA Palette Snoop */ + pcibios_read_config_word(0, devfn, 0x04, &command); + command |= 0x20; + pcibios_write_config_word(0, devfn, 0x04, command); + + /* enable legacy VGA IO (0x3B0 - 0x3BB, 0x3C0 - 0x3DF) and MEM (0xA0000 - 0xBFFFF), + needed for XFree86 3.3.6 */ pcibios_read_config_dword(0, devfn, 0x3e, &command); command |= 0x08; pcibios_write_config_dword(0, devfn, 0x3e, command);