From 7d54eb8e23407e472380558d961d2df255600ae1 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Wed, 10 Oct 2012 23:14:28 +0300 Subject: Add name field for device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The constant field "name" in chip_operations is common to multiple different devices within a chip and cannot reflect the actual device as found on the platform. The intention is that a driver sets dev->name as part of the device enumeration sequence with the detected hardware type and revision. The field is for debug print use only. Change-Id: Ib7bf90ba3c618ad0cb715d80d6a937ceaae0adcf Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/1634 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/include/device/device.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/device/device.h') diff --git a/src/include/device/device.h b/src/include/device/device.h index ab5ab14ad4..329e3b7107 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -101,6 +101,7 @@ struct device { struct device_operations *ops; #ifndef __PRE_RAM__ const struct chip_operations *chip_ops; + const char *name; #endif ROMSTAGE_CONST void *chip_info; }; -- cgit v1.2.3