summaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2011-08-14 20:56:34 +0200
committerSven Schnelle <svens@stackframe.org>2011-08-26 20:08:52 +0200
commit164bcfdd1b0b2cc789203eeb9e3ff842df215a7c (patch)
tree8d8da7411a1c9d238c2a3b51d08f9007953b2854 /src/include/device
parentbc081cdf6d371988b0e280b8a20b451c49d43c77 (diff)
Add automatic SMBIOS table generation
Change-Id: I0ae16dda8969638a8f70fe1d2e29e992aef3a834 Signed-off-by: Sven Schnelle <svens@stackframe.org> Reviewed-on: http://review.coreboot.org/152 Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 42b68f6c39..a7de0c9bb2 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -16,6 +16,9 @@ struct smbus_bus_operations;
struct chip_operations {
void (*enable_dev)(struct device *dev);
const char *name;
+#if CONFIG_GENERATE_SMBIOS_TABLES
+ int (*get_smbios_data)(device_t dev, int *handle, unsigned long *current);
+#endif
};
#define CHIP_NAME(X) .name = X,
@@ -31,6 +34,9 @@ struct device_operations {
void (*enable)(device_t dev);
void (*set_link)(device_t dev, unsigned int link);
void (*reset_bus)(struct bus *bus);
+#if CONFIG_GENERATE_SMBIOS_TABLES
+ int (*get_smbios_data)(device_t dev, int *handle, unsigned long *current);
+#endif
const struct pci_operations *ops_pci;
const struct smbus_bus_operations *ops_smbus_bus;
const struct pci_bus_operations *ops_pci_bus;