diff options
Diffstat (limited to 'src/arch/x86/smbios.c')
-rw-r--r-- | src/arch/x86/smbios.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index ee694087eb..a8723aa2cc 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -539,6 +539,21 @@ const char *__weak smbios_system_sku(void) return ""; } +const char * __weak smbios_chassis_version(void) +{ + return ""; +} + +const char * __weak smbios_chassis_serial_number(void) +{ + return ""; +} + +const char * __weak smbios_processor_serial_number(void) +{ + return ""; +} + static int get_socket_type(void) { if (CONFIG(CPU_INTEL_SLOT_1)) @@ -621,6 +636,9 @@ static int smbios_write_type3(unsigned long *current, int handle) t->thermal_state = SMBIOS_STATE_SAFE; t->_type = smbios_mainboard_enclosure_type(); t->security_status = SMBIOS_STATE_SAFE; + t->asset_tag_number = smbios_add_string(t->eos, smbios_mainboard_asset_tag()); + t->version = smbios_add_string(t->eos, smbios_chassis_version()); + t->serial_number = smbios_add_string(t->eos, smbios_chassis_serial_number()); len = t->length + smbios_string_table_len(t->eos); *current += len; return len; @@ -674,6 +692,7 @@ static int smbios_write_type4(unsigned long *current, int handle) t->l1_cache_handle = 0xffff; t->l2_cache_handle = 0xffff; t->l3_cache_handle = 0xffff; + t->serial_number = smbios_add_string(t->eos, smbios_processor_serial_number()); t->processor_upgrade = get_socket_type(); len = t->length + smbios_string_table_len(t->eos); if (cpu_have_cpuid() && cpuid_get_max_func() >= 0x16) { |