From 018d8dd60f2cc0c82faac0ee2657daa163dd43e7 Mon Sep 17 00:00:00 2001 From: Eric Biederman Date: Thu, 4 Nov 2004 11:04:33 +0000 Subject: - Update abuild.sh so it will rebuild successfull builds - Move pci_set_method out of hardwaremain.c - Re-add debugging name field but only include the CONFIG_CHIP_NAME is enabled. All instances are now wrapped in CHIP_NAME - Many minor cleanups so most ports build. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1737 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/include/device/device.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/include/device/device.h') diff --git a/src/include/device/device.h b/src/include/device/device.h index cd232c72c1..945cdaabe3 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -14,8 +14,17 @@ struct smbus_bus_operations; /* Chip operations */ struct chip_operations { void (*enable_dev)(struct device *dev); +#if CONFIG_CHIP_NAME == 1 + char *name; +#endif }; +#if CONFIG_CHIP_NAME == 1 +#define CHIP_NAME(X) .name = X, +#else +#define CHIP_NAME(X) +#endif + struct device_operations { void (*read_resources)(device_t dev); void (*set_resources)(device_t dev); -- cgit v1.2.3