diff options
author | Peter Stuge <peter@stuge.se> | 2013-07-06 19:51:12 +0200 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-07-15 17:06:23 +0200 |
commit | c392b6477f656331c7e19b22f6eb240cdd5465a1 (patch) | |
tree | b07b77472888dafc4188a74d1ed9f71716379190 /src/include | |
parent | 4e7385b58fcff0f59db6f0c4852a57e74f0d3b00 (diff) |
SMBIOS: Add smbios_write_type11() for creating an OEM Strings structure
Change-Id: Id338968429435bac26595c4843b07cdbb91dd64d
Signed-off-by: Peter Stuge <peter@stuge.se>
Reviewed-on: http://review.coreboot.org/3618
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/smbios.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/smbios.h b/src/include/smbios.h index 50bce2a7c6..9051a6991f 100644 --- a/src/include/smbios.h +++ b/src/include/smbios.h @@ -3,6 +3,7 @@ #include <types.h> +int smbios_write_type11(unsigned long *current, int handle, const char **oem_strings, int count); unsigned long smbios_write_tables(unsigned long start); int smbios_add_string(char *start, const char *str); int smbios_string_table_len(char *start); @@ -31,6 +32,7 @@ typedef enum { SMBIOS_PROCESSOR_INFORMATION=4, SMBIOS_CACHE_INFORMATION=7, SMBIOS_SYSTEM_SLOTS=9, + SMBIOS_OEM_STRINGS=11, SMBIOS_EVENT_LOG=15, SMBIOS_PHYS_MEMORY_ARRAY=16, SMBIOS_MEMORY_DEVICE=17, @@ -142,6 +144,14 @@ struct smbios_type4 { char eos[2]; } __attribute__((packed)); +struct smbios_type11 { + u8 type; + u8 length; + u16 handle; + u8 count; + char eos[2]; +} __attribute__((packed)); + struct smbios_type15 { u8 type; u8 length; |