diff options
author | Ronald Hoogenboom <hoogenboom30@zonnet.nl> | 2008-02-28 23:10:38 +0000 |
---|---|---|
committer | Torsten Duwe <duwe@lst.de> | 2008-02-28 23:10:38 +0000 |
commit | 9b6b63eac0a7532a35db4a14f774d2e990f4a1fa (patch) | |
tree | 1b326925879184b94adab76f32837d10f09d3a52 /src | |
parent | 17632a205e08272a85eb468c685924b83ec6a5e7 (diff) | |
download | coreboot-9b6b63eac0a7532a35db4a14f774d2e990f4a1fa.tar.xz |
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 <hoogenboom30@zonnet.nl>
Acked-by: Torsten Duwe <duwe@lst.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3119 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r-- | src/devices/pci_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |