aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2020-07-21 14:53:37 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-07-26 21:15:03 +0000
commit604295e508208dc7ea11a4ded1b7e66954b25594 (patch)
tree3882f62d76cf39dc13a018a7306098fe36841997 /src/include
parentf04b2627105cb01bc480325498b265a3208df6f4 (diff)
smbios: Add Type19
Implement type 19 by accumulating the DRAM dimm size found in cbmem's CBMEM_ID_MEMINFO structure. This seems common on x86 where the address space always starts at 0. At least EDK2 uses this table in the UI and shows 0 MB DRAM if not present. Change-Id: Idee8b8cd0b155e14d62d4c12893ff01878ef3f1c Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43672 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Christian Walter <christian.walter@9elements.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/smbios.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/smbios.h b/src/include/smbios.h
index ed09d642b9..8cdd58a828 100644
--- a/src/include/smbios.h
+++ b/src/include/smbios.h
@@ -828,6 +828,19 @@ struct smbios_type17 {
u8 eos[2];
} __packed;
+struct smbios_type19 {
+ u8 type;
+ u8 length;
+ u16 handle;
+ u32 starting_address;
+ u32 ending_address;
+ u16 memory_array_handle;
+ u8 partition_width;
+ u64 extended_starting_address;
+ u64 extended_ending_address;
+ u8 eos[2];
+} __packed;
+
struct smbios_type32 {
u8 type;
u8 length;