summaryrefslogtreecommitdiffstats
path: root/src/include/device/device.h
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2012-08-07 14:50:47 -0700
committerAnton Kochkov <anton.kochkov@gmail.com>2012-08-08 11:34:57 +0200
commita675d494082e689a0766ee98948779da13ea2d07 (patch)
tree95d799aff0c4444998adc93ecae9d76249bc7e98 /src/include/device/device.h
parent6a73bf668849d5c8940f04197cf6087dcc45ce77 (diff)
downloadcoreboot-a675d494082e689a0766ee98948779da13ea2d07.tar.gz
coreboot-a675d494082e689a0766ee98948779da13ea2d07.tar.bz2
coreboot-a675d494082e689a0766ee98948779da13ea2d07.zip
Fix SMBIOS generation
Dropping mainboard's chip.h broke execution of the mainboard's enable function and the addition of mainboard specific smbios tables. The former was fixed by Kyosti in http://review.coreboot.org/1374 This patch fixes the breakage in static.c and also backs out a small portion of Kyosti's patch (because it's not needed anymore) Change-Id: I6fdea9cbb8c6041663bd36f68f1cae4b435c1f9b Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/1421 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com>
Diffstat (limited to 'src/include/device/device.h')
-rw-r--r--src/include/device/device.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index b44a551d77dd..772b737cd94a 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -102,7 +102,9 @@ struct device {
ROMSTAGE_CONST struct bus *link_list;
struct device_operations *ops;
+#ifndef __PRE_RAM__
const struct chip_operations *chip_ops;
+#endif
ROMSTAGE_CONST void *chip_info;
};
@@ -171,7 +173,6 @@ void show_all_devs_resources(int debug_level, const char* msg);
#define DEVICE_MEM_ALIGN 4096
extern struct device_operations default_dev_ops_root;
-extern struct chip_operations mainboard_ops;
void pci_domain_read_resources(struct device *dev);
unsigned int pci_domain_scan_bus(struct device *dev, unsigned int max);
unsigned int scan_static_bus(device_t bus, unsigned int max);