diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2014-03-02 19:14:44 +0100 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2014-03-09 21:21:46 +0100 |
commit | 47089f29f0cf368e7c951158af61d5c040c7c8b9 (patch) | |
tree | b0b07c4ba164330bd681028df2ed6015a9f2191b /src/include | |
parent | 7d48f04bb4ba13e583a6fbc172eed9c8b5455dad (diff) |
smbios: Supply tag type 2 (base board information)
Information really contained in it is mostly the same as in type 1 tag.
However Linux uses type 2 to match hardware. Duplicate the info.
Change-Id: I75e13d764464053ecab4a833fbb83836cedf26e6
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/5322
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/smbios.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/smbios.h b/src/include/smbios.h index 42c5d2da94..0ab074df07 100644 --- a/src/include/smbios.h +++ b/src/include/smbios.h @@ -37,6 +37,7 @@ void smbios_mainboard_set_uuid(u8 *uuid); typedef enum { SMBIOS_BIOS_INFORMATION=0, SMBIOS_SYSTEM_INFORMATION=1, + SMBIOS_BOARD_INFORMATION=2, SMBIOS_SYSTEM_ENCLOSURE=3, SMBIOS_PROCESSOR_INFORMATION=4, SMBIOS_CACHE_INFORMATION=7, @@ -102,6 +103,17 @@ struct smbios_type1 { char eos[2]; } __attribute__((packed)); +struct smbios_type2 { + u8 type; + u8 length; + u16 handle; + u8 manufacturer; + u8 product_name; + u8 version; + u8 serial_number; + char eos[2]; +} __attribute__((packed)); + struct smbios_type3 { u8 type; u8 length; |