Lines Matching full:vga
659 * Lock/Unlock legacy VGA. Some Bioses try to be very clever and make
663 * To avoid this we attempt legacy VGA by writing to all know VGA
671 * legacy vga therefore we don't worry about mmio etc.
673 * the driver would have to load the vga-module prior to
677 LockLegacyVGA(xf86Int10InfoPtr pInt, legacyVGAPtr vga) in LockLegacyVGA() argument
679 vga->save_msr = pci_io_read8(pInt->io, 0x03CC); in LockLegacyVGA()
680 vga->save_vse = pci_io_read8(pInt->io, 0x03C3); in LockLegacyVGA()
682 vga->save_46e8 = pci_io_read8(pInt->io, 0x46E8); in LockLegacyVGA()
684 vga->save_pos102 = pci_io_read8(pInt->io, 0x0102); in LockLegacyVGA()
685 pci_io_write8(pInt->io, 0x03C2, ~(uint8_t) 0x03 & vga->save_msr); in LockLegacyVGA()
686 pci_io_write8(pInt->io, 0x03C3, ~(uint8_t) 0x01 & vga->save_vse); in LockLegacyVGA()
688 pci_io_write8(pInt->io, 0x46E8, ~(uint8_t) 0x08 & vga->save_46e8); in LockLegacyVGA()
690 pci_io_write8(pInt->io, 0x0102, ~(uint8_t) 0x01 & vga->save_pos102); in LockLegacyVGA()
694 UnlockLegacyVGA(xf86Int10InfoPtr pInt, legacyVGAPtr vga) in UnlockLegacyVGA() argument
696 pci_io_write8(pInt->io, 0x0102, vga->save_pos102); in UnlockLegacyVGA()
698 pci_io_write8(pInt->io, 0x46E8, vga->save_46e8); in UnlockLegacyVGA()
700 pci_io_write8(pInt->io, 0x03C3, vga->save_vse); in UnlockLegacyVGA()
701 pci_io_write8(pInt->io, 0x03C2, vga->save_msr); in UnlockLegacyVGA()