summaryrefslogtreecommitdiffstats
path: root/src/include/memory_info.h
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-01-31 15:06:59 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-03-01 08:22:10 +0000
commit6724ba4f045cbbe2326463cbeaf59becfb01342e (patch)
tree4cb8b3e230978d69e75b866b4e0c5eddf7e75600 /src/include/memory_info.h
parent69ff4281596127622f4ef941a37d80baec4f65b1 (diff)
downloadcoreboot-6724ba4f045cbbe2326463cbeaf59becfb01342e.tar.gz
coreboot-6724ba4f045cbbe2326463cbeaf59becfb01342e.tar.bz2
coreboot-6724ba4f045cbbe2326463cbeaf59becfb01342e.zip
memory_info.h: Store SMBIOS error correction type
There are platforms that support error correction types other than single-bit ECC. Extend meminfo to accomodate additional ECC types. It is assumed that `struct memory_info` is packed to save space. Thus, use `uint8_t` instead of an enum type (which are usually 4 bytes wide). Change-Id: I863f8e34c84841d931dfb8d7067af0f12a437e36 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50178 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/memory_info.h')
-rw-r--r--src/include/memory_info.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/memory_info.h b/src/include/memory_info.h
index 1ba73291a848..fed5bbe2656c 100644
--- a/src/include/memory_info.h
+++ b/src/include/memory_info.h
@@ -96,8 +96,11 @@ struct dimm_info {
} __packed;
struct memory_info {
- /* controller specific */
- bool ecc_capable;
+ /*
+ * SMBIOS error correction type.
+ * See the smbios.h smbios_memory_array_ecc enum.
+ */
+ uint8_t ecc_type;
/* Maximum capacity the DRAM controller/mainboard supports */
uint32_t max_capacity_mib;
/* Maximum number of DIMMs the DRAM controller/mainboard supports */