1 /* SPDX-License-Identifier: GPL-2.0-only */
9 const char *smbios_system_serial_number(void)
11 const size_t offset
= offsetof(struct eeprom_layout
, system_serial_number
);
12 return eeprom_read_serial(offset
, CONFIG_MAINBOARD_SERIAL_NUMBER
);
15 const char *smbios_mainboard_serial_number(void)
17 const size_t offset
= offsetof(struct eeprom_layout
, board_serial_number
);
18 return eeprom_read_serial(offset
, CONFIG_MAINBOARD_SERIAL_NUMBER
);
21 const char *smbios_mainboard_version(void)
23 static char version_str
[8] = { 0 };
25 snprintf(version_str
, sizeof(version_str
), "HSI %u", get_bmc_hsi());