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
This commit is contained in:
Ronald Hoogenboom 2008-02-28 23:10:38 +00:00 committed by Torsten Duwe
parent 17632a205e
commit 9b6b63eac0
1 changed files with 2 additions and 2 deletions

View File

@ -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 * is set but CONFIG_PCI_ROM_RUN is not. In this case we skip
* all other option ROM types. * all other option ROM types.
*/ */
if (dev->class!=PCI_CLASS_DISPLAY_VGA) if ((dev->class>>8)!=PCI_CLASS_DISPLAY_VGA)
return; return;
#endif #endif
@ -670,7 +670,7 @@ void pci_dev_init(struct device *dev)
#if CONFIG_CONSOLE_VGA == 1 #if CONFIG_CONSOLE_VGA == 1
/* vga_inited is a trigger of the VGA console code. */ /* 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; extern int vga_inited;
vga_inited = 1; vga_inited = 1;
} }