aboutsummaryrefslogtreecommitdiff
path: root/src/devices/device.c
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2005-01-11 22:48:54 +0000
committerLi-Ta Lo <ollie@lanl.gov>2005-01-11 22:48:54 +0000
commit515f6c729e0b4878884e74e21d00dbc4b66dcdd9 (patch)
tree82879fb1f10c07a85c573bca92410bdc6c874e3d /src/devices/device.c
parent51990b350a03eb718f6af0890a2f9a42373106ca (diff)
works for PCI vga cards too
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1856 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices/device.c')
-rw-r--r--src/devices/device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/device.c b/src/devices/device.c
index d974a1930d..0ad756b41d 100644
--- a/src/devices/device.c
+++ b/src/devices/device.c
@@ -378,6 +378,7 @@ static void allocate_vga_resource(void)
if (((dev->class >> 16) == PCI_BASE_CLASS_DISPLAY) &&
((dev->class >> 8) != PCI_CLASS_DISPLAY_OTHER)) {
if (!vga) {
+ printk_debug("Allocating VGA resource %s\n", dev_path(dev));
vga = dev;
}
if (vga == dev) {
@@ -394,6 +395,8 @@ static void allocate_vga_resource(void)
}
/* Now walk up the bridges setting the VGA enable */
while (bus) {
+ printk_debug("Setting PCI_BRIDGE_CTL_VGA for bridge %s\n",
+ dev_path(bus->dev));
bus->bridge_ctrl |= PCI_BRIDGE_CTL_VGA;
bus = (bus == bus->dev->bus)? 0 : bus->dev->bus;
}