diff options
author | Burt P <pburt0@gmail.com> | 2019-06-30 18:28:30 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-07-02 17:36:25 -0700 |
commit | 3a78129e6ea2f3ef7030711c2e57357a0378a043 (patch) | |
tree | 94ad4825d9377d51cd002fbc0c59d98ad1c3a77b /modules/devices | |
parent | fa17fdf3cc463c990a1e84150c8766ec49a9c6ce (diff) |
Memory devices: RDRAM type detect from DMI
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices')
-rw-r--r-- | modules/devices/dmi_memory.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/devices/dmi_memory.c b/modules/devices/dmi_memory.c index 182f520c..ce1ec300 100644 --- a/modules/devices/dmi_memory.c +++ b/modules/devices/dmi_memory.c @@ -17,6 +17,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#define _GNU_SOURCE + #include "hardinfo.h" #include "devices.h" #include "vendor.h" @@ -200,6 +202,7 @@ dmi_mem_socket *dmi_mem_socket_new(dmi_handle h) { s->bank_locator = dmidecode_match("Bank Locator", &dtm, &h); STR_IGNORE(s->bank_locator, "Unknown"); + STR_IGNORE(s->bank_locator, "Not Specified"); null_if_empty(&s->bank_locator); gchar *ah = dmidecode_match("Array Handle", &dtm, &h); @@ -241,6 +244,8 @@ dmi_mem_socket *dmi_mem_socket_new(dmi_handle h) { if (SEQ(s->type, "DDR2")) s->ram_type = DDR2_SDRAM; if (SEQ(s->type, "DDR3")) s->ram_type = DDR3_SDRAM; if (SEQ(s->type, "DDR4")) s->ram_type = DDR4_SDRAM; + if (strcasestr(s->type, "RAMBus") + || strcasestr(s->type, "RDRAM") ) s->ram_type = RAMBUS; if (s->ram_type) dmi_ram_types |= (1 << s->ram_type-1); s->type_detail = dmidecode_match("Type Detail", &dtm, &h); |