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>
This commit is contained in:
committed by
Patrick Georgi
parent
69ff428159
commit
6724ba4f04
@@ -445,8 +445,7 @@ static int get_socket_type(void)
|
||||
|
||||
unsigned int __weak smbios_memory_error_correction_type(struct memory_info *meminfo)
|
||||
{
|
||||
return meminfo->ecc_capable ?
|
||||
MEMORY_ARRAY_ECC_SINGLE_BIT : MEMORY_ARRAY_ECC_NONE;
|
||||
return meminfo->ecc_type;
|
||||
}
|
||||
|
||||
unsigned int __weak smbios_processor_external_clock(void)
|
||||
|
Reference in New Issue
Block a user