enable VGA palette snoop and legacy VGA IO port

This commit is contained in:
Li-Ta Lo 2001-11-06 04:29:38 +00:00
commit 4eb28ca342
2 changed files with 16 additions and 2 deletions

View file

@ -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);

View file

@ -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);