From 9b6b63eac0a7532a35db4a14f774d2e990f4a1fa Mon Sep 17 00:00:00 2001 From: Ronald Hoogenboom Date: Thu, 28 Feb 2008 23:10:38 +0000 Subject: In pci_device.c, the class for VGA was not tested properly, leading to no VGA output from coreboot, even after the boot-rom was executed properly (CONFIG_PCI_ROM_RUN) or no boot-rom execution with CONFIG_VGA_ROM_RUN at all. According to the header file device.h, the class field of struct device is '3 bytes: (base,sub,prog-if)'. Signed-off-by: Ronald Hoogenboom Acked-by: Torsten Duwe git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3119 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/devices/pci_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/devices') diff --git a/src/devices/pci_device.c b/src/devices/pci_device.c index 604a55154a..f65849ef06 100644 --- a/src/devices/pci_device.c +++ b/src/devices/pci_device.c @@ -654,7 +654,7 @@ void pci_dev_init(struct device *dev) * is set but CONFIG_PCI_ROM_RUN is not. In this case we skip * all other option ROM types. */ - if (dev->class!=PCI_CLASS_DISPLAY_VGA) + if ((dev->class>>8)!=PCI_CLASS_DISPLAY_VGA) return; #endif @@ -670,7 +670,7 @@ void pci_dev_init(struct device *dev) #if CONFIG_CONSOLE_VGA == 1 /* vga_inited is a trigger of the VGA console code. */ - if (dev->class == PCI_CLASS_DISPLAY_VGA) { + if ((dev->class>>8) == PCI_CLASS_DISPLAY_VGA) { extern int vga_inited; vga_inited = 1; } -- cgit v1.2.3