summaryrefslogtreecommitdiff
path: root/src/devices/device.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghailu@gmail.com>2005-01-14 22:04:49 +0000
committerYinghai Lu <yinghailu@gmail.com>2005-01-14 22:04:49 +0000
commit9e4faef7dbb6848c1ea6a21994031d191b209c34 (patch)
tree38d887e3ac28c223f2737b40a60bd05f5855193d /src/devices/device.c
parent688238a50c61993db8667552cdae624e73310239 (diff)
downloadcoreboot-9e4faef7dbb6848c1ea6a21994031d191b209c34.tar.xz
CONFIG_PCI_ROM_RUN
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1875 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices/device.c')
-rw-r--r--src/devices/device.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/device.c b/src/devices/device.c
index 8279a652b1..40d3f5cf2d 100644
--- a/src/devices/device.c
+++ b/src/devices/device.c
@@ -364,6 +364,7 @@ void compute_allocate_resource(
}
+#if CONFIG_CONSOLE_VGA == 1
static void allocate_vga_resource(void)
{
#warning "FIXME modify allocate_vga_resource so it is less pci centric!"
@@ -401,7 +402,7 @@ static void allocate_vga_resource(void)
bus = (bus == bus->dev->bus)? 0 : bus->dev->bus;
}
}
-
+#endif
/**
* @brief Assign the computed resources to the devices on the bus.
@@ -556,8 +557,10 @@ void dev_configure(void)
mem->flags |= IORESOURCE_ASSIGNED;
mem->flags &= ~IORESOURCE_STORED;
+#if CONFIG_CONSOLE_VGA == 1
/* Allocate the VGA I/O resource.. */
allocate_vga_resource();
+#endif
/* Store the computed resource allocations into device registers ... */
printk_info("Setting resources...\n");