From d34405438d9e90df1d641f50855ed6d50b019f57 Mon Sep 17 00:00:00 2001 From: Johnny Lin Date: Thu, 30 Jan 2020 18:21:22 +0800 Subject: arch/x86/smbios: Add more fields to be overriden for type 3 and 4 For type 3, override chassis asset_tag_number with smbios_mainboard_asset_tag() and add two functions that can override chassis version and serial_number. For type 4 add smbios_processor_serial_number() to override serial_number. Tested on OCP Tioga Pass. Change-Id: I80c6244580a4428fab781d760071c51c7933abee Signed-off-by: Johnny Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/40309 Tested-by: build bot (Jenkins) Reviewed-by: Maxim Polyakov --- src/include/smbios.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/smbios.h') diff --git a/src/include/smbios.h b/src/include/smbios.h index d281bf0698..9edf284cc3 100644 --- a/src/include/smbios.h +++ b/src/include/smbios.h @@ -50,6 +50,9 @@ const char *smbios_mainboard_bios_version(void); const char *smbios_mainboard_asset_tag(void); u8 smbios_mainboard_feature_flags(void); const char *smbios_mainboard_location_in_chassis(void); +const char *smbios_chassis_version(void); +const char *smbios_chassis_serial_number(void); +const char *smbios_processor_serial_number(void); #define BIOS_CHARACTERISTICS_PCI_SUPPORTED (1 << 7) #define BIOS_CHARACTERISTICS_PC_CARD (1 << 8) -- cgit v1.2.3