enable VGA palette snoop and legacy VGA IO port
This commit is contained in:
parent
929efbd797
commit
4eb28ca342
2 changed files with 16 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue