From 53942b96586fd0c9b15fb89b7c73dbf4047350df Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Thu, 14 May 2020 15:16:22 +0200 Subject: x86: coreboot: add SMBIOS cbmem entry parsing Signed-off-by: Christian Gmeiner Reviewed-by: Bin Meng --- arch/x86/include/asm/coreboot_tables.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'arch/x86/include/asm/coreboot_tables.h') diff --git a/arch/x86/include/asm/coreboot_tables.h b/arch/x86/include/asm/coreboot_tables.h index 268284f43c..7e1576768b 100644 --- a/arch/x86/include/asm/coreboot_tables.h +++ b/arch/x86/include/asm/coreboot_tables.h @@ -214,6 +214,17 @@ struct cb_vbnv { uint32_t vbnv_size; }; +#define CB_TAG_CBMEM_ENTRY 0x0031 +#define CBMEM_ID_SMBIOS 0x534d4254 + +struct cb_cbmem_entry { + uint32_t tag; + uint32_t size; + uint64_t address; + uint32_t entry_size; + uint32_t id; +}; + #define CB_TAG_CMOS_OPTION_TABLE 0x00c8 struct cb_cmos_option_table { -- cgit v1.2.3