diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-02-14 17:49:47 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-02-15 23:14:58 +0000 |
commit | 1db2346e3fbf9aa52df3593cdcfd3351ffd4419d (patch) | |
tree | da95b400cb094b52cc88a0d0390674d1cade7757 /src | |
parent | 3233cf44ec0b7451590f523a0c12790805d56316 (diff) |
SMBIOS: Add new MEMORY_{TYPE,TECHNOLOGY,OPERATING} macros
Change-Id: I4e466614d0a9e8c89f298594a5785af775b22a95
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/31423
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/include/smbios.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/smbios.h b/src/include/smbios.h index fd4deb7096..34a3e5b39b 100644 --- a/src/include/smbios.h +++ b/src/include/smbios.h @@ -83,6 +83,21 @@ const char *smbios_mainboard_family(void); #define MEMORY_TYPE_DETAIL_NON_VOLATILE (1 << 12) #define MEMORY_TYPE_DETAIL_REGISTERED (1 << 13) #define MEMORY_TYPE_DETAIL_UNBUFFERED (1 << 14) +#define MEMORY_TYPE_DETAIL_LRDIMM (1 << 15) + +#define MEMORY_TECHNOLOGY_OTHER 0x01 +#define MEMORY_TECHNOLOGY_UNKNOWN 0x02 +#define MEMORY_TECHNOLOGY_DRAM 0x03 +#define MEMORY_TECHNOLOGY_NVDIMM_N 0x04 +#define MEMORY_TECHNOLOGY_NVDIMM_F 0x05 +#define MEMORY_TECHNOLOGY_NVDIMM_P 0x06 +#define MEMORY_TECHNOLOGY_INTEL_PERSISTENT 0x07 + +#define MEMORY_OPERATING_MODE_CAP_OTHER (1 << 1) +#define MEMORY_OPERATING_MODE_CAP_UNKNOWN (1 << 2) +#define MEMORY_OPERATING_MODE_CAP_VOLATILE (1 << 3) +#define MEMORY_OPERATING_MODE_CAP_BYTE_ACCESS_PERSISTENT (1 << 4) +#define MEMORY_OPERATING_MODE_CAP_BLOCK_ACCESS_PERSISTENT (1 << 5) typedef enum { MEMORY_BUS_WIDTH_8 = 0, |