forked from pool/dmidecode
27 lines
626 B
Diff
27 lines
626 B
Diff
|
Subject: Add support for DDR4 memory type
|
||
|
Upstream: yes, 1.182
|
||
|
References: savannah#43370
|
||
|
|
||
|
Patch from Tomohiro Kimura. The value was taken from preliminary SMBIOS
|
||
|
specification version 3.0.0d. This closes bug #43370.
|
||
|
---
|
||
|
dmidecode.c | 5 +++--
|
||
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||
|
|
||
|
--- a/dmidecode.c
|
||
|
+++ b/dmidecode.c
|
||
|
@@ -2311,10 +2311,11 @@ static const char *dmi_memory_device_typ
|
||
|
"Reserved",
|
||
|
"Reserved",
|
||
|
"DDR3",
|
||
|
- "FBD2", /* 0x19 */
|
||
|
+ "FBD2",
|
||
|
+ "DDR4" /* 0x1A */
|
||
|
};
|
||
|
|
||
|
- if (code >= 0x01 && code <= 0x19)
|
||
|
+ if (code >= 0x01 && code <= 0x1A)
|
||
|
return type[code - 0x01];
|
||
|
return out_of_spec;
|
||
|
}
|