mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
Smbios: updates EMTF standard version
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ static inline void ffCleanUpSmbiosValue(FFstrbuf* value) {
|
||||
}
|
||||
|
||||
// https://github.com/KunYi/DumpSMBIOS
|
||||
// https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.7.0.pdf
|
||||
// https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.9.0.pdf
|
||||
|
||||
typedef enum FF_A_PACKED FFSmbiosType // : uint8_t
|
||||
{
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "chassis.h"
|
||||
|
||||
const char* ffChassisTypeToString(uint32_t type) {
|
||||
// https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.7.0.pdf
|
||||
// 7.4.1 System Enclosure or Chassis Types
|
||||
switch (type & 0b01111111) {
|
||||
case 0x01:
|
||||
@@ -61,7 +60,7 @@ const char* ffChassisTypeToString(uint32_t type) {
|
||||
case 0x1C:
|
||||
return "Blade";
|
||||
case 0x1D:
|
||||
return "Mobile Workstation";
|
||||
return "Blade Enclosure";
|
||||
case 0x1E:
|
||||
return "Tablet";
|
||||
case 0x1F:
|
||||
|
||||
@@ -142,6 +142,9 @@ const char* ffDetectPhysicalMemory(FFlist* result) {
|
||||
"SRIMM", // 0x0E
|
||||
"FBDIMM", // 0x0F
|
||||
"Die", // 0x10
|
||||
"CAMM", // 0x11
|
||||
"CUDIMM", // 0x12
|
||||
"CSODIMM", // 0x13
|
||||
};
|
||||
if (data->FormFactor > 0 && data->FormFactor < ARRAY_SIZE(formFactorNames)) {
|
||||
ffStrbufSetS(&device->formFactor, formFactorNames[data->FormFactor]);
|
||||
@@ -187,6 +190,7 @@ const char* ffDetectPhysicalMemory(FFlist* result) {
|
||||
"DDR5", // 0x22
|
||||
"LPDDR5", // 0x23
|
||||
"HBM3", // 0x24
|
||||
"MRDIMM", // 0x25
|
||||
};
|
||||
if (!installed) {
|
||||
ffStrbufSetStatic(&device->type, "Empty");
|
||||
|
||||
Reference in New Issue
Block a user