diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2012-10-10 23:14:28 +0300 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2012-11-06 00:23:54 +0100 |
commit | 7d54eb8e23407e472380558d961d2df255600ae1 (patch) | |
tree | 0753bd68522654ef66e9287e50bb74fa894e27da /src/include/device | |
parent | a74af56dc1694fbeb8575825122d1081a30fe959 (diff) |
Add name field for device
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 <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/1634
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/include/device')
-rw-r--r-- | src/include/device/device.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; }; |