From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH] Consider a VGA to be active if it responds to either IO or memory access Date: Thu, 26 May 2011 15:43:28 +0100 Message-ID: <1306421008-24260-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, seabios@seabios.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org Under Xen the VGA card ends up configured for memory access only. Signed-off-by: Ian Campbell --- src/pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/pci.c b/src/pci.c index 944a393..471733c 100644 --- a/src/pci.c +++ b/src/pci.c @@ -130,7 +130,7 @@ pci_find_vga(void) } if (cls == PCI_CLASS_DISPLAY_VGA) { u16 cmd = pci_config_readw(bdf, PCI_COMMAND); - if (cmd & PCI_COMMAND_IO && cmd & PCI_COMMAND_MEMORY) + if (cmd & PCI_COMMAND_IO || cmd & PCI_COMMAND_MEMORY) // Found active vga card return bdf; } -- 1.7.2.5