diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2020-12-20 08:27:21 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-01-18 07:23:53 +0000 |
commit | 0fcbd3a125ceb3b27db3094046b88c79db2cc32c (patch) | |
tree | 5f779e72f8c2c56d972ede9cbf5a9614c24b907b /src/include | |
parent | 661ad4666ca0e78195f6901fce7b44a7e56e6331 (diff) |
ChromeOS: Refactor SMBIOS type0 bios_version()
Pointer to an empty string (filled with spaces) is
stored inside GNVS. Rearrange things to avoid having
<chromeos/gnvs.h> in SMBIOS code.
Change-Id: I9405afbea29b896488b4cdd6dd32c4db686fe48c
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49281
Reviewed-by: Lance Zhao
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/smbios.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/smbios.h b/src/include/smbios.h index e451d17ef8..d8ac4caff2 100644 --- a/src/include/smbios.h +++ b/src/include/smbios.h @@ -55,6 +55,9 @@ const char *smbios_chassis_version(void); const char *smbios_chassis_serial_number(void); const char *smbios_processor_serial_number(void); +/* This string could be filled late in payload. */ +void smbios_type0_bios_version(uintptr_t address); + void smbios_ec_revision(uint8_t *ec_major_revision, uint8_t *ec_minor_revision); unsigned int smbios_memory_error_correction_type(struct memory_info *meminfo); |