diff options
author | Duncan Laurie <dlaurie@chromium.org> | 2013-05-23 14:17:05 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-11-25 23:38:21 +0100 |
commit | 21a78706addd15fcc682f556566c303a463fcda1 (patch) | |
tree | 837dfebece007b022a03c9da1fddd0ddab1a0540 /src/include/smbios.h | |
parent | 032be82a11a9cee6cc45df7a5ea94778ea4280d7 (diff) |
smbios: Add generic type41 write function
Mainboards were defining their own SMBIOS type41
write function. Instead pull this into the generic
SMBIOS code and change the existing mainboards to
make use of it.
Change-Id: I3c8a95ca51fe2a3118dc8d1154011ccfed5fbcbc
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/56619
Reviewed-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/4187
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/include/smbios.h')
-rw-r--r-- | src/include/smbios.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/smbios.h b/src/include/smbios.h index ebe167ef20..42c5d2da94 100644 --- a/src/include/smbios.h +++ b/src/include/smbios.h @@ -8,8 +8,14 @@ unsigned long smbios_write_tables(unsigned long start); int smbios_add_string(char *start, const char *str); int smbios_string_table_len(char *start); +/* Used by mainboard to add an on-board device */ +int smbios_write_type41(unsigned long *current, int *handle, + const char *name, u8 instance, u16 segment, + u8 bus, u8 device, u8 function); + const char *smbios_mainboard_manufacturer(void); const char *smbios_mainboard_product_name(void); + const char *smbios_mainboard_serial_number(void); const char *smbios_mainboard_version(void); void smbios_mainboard_set_uuid(u8 *uuid); |