Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[smbios] Add named settings for manufacturer, product name, and seria…
…l no.
  • Loading branch information
Michael Brown committed Jul 27, 2008
1 parent 34a06b6 commit 594c672
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/arch/i386/firmware/pcbios/smbios_settings.c
Expand Up @@ -156,3 +156,31 @@ struct setting uuid_setting __setting = {
struct smbios_system_information, uuid ),
.type = &setting_type_uuid,
};

/** Other SMBIOS named settings */
struct setting smbios_named_settings[] __setting = {
{
.name = "manufacturer",
.description = "Manufacturer",
.tag = SMBIOS_STRING_TAG ( SMBIOS_TYPE_SYSTEM_INFORMATION,
struct smbios_system_information,
manufacturer ),
.type = &setting_type_string,
},
{
.name = "product",
.description = "Product name",
.tag = SMBIOS_STRING_TAG ( SMBIOS_TYPE_SYSTEM_INFORMATION,
struct smbios_system_information,
product ),
.type = &setting_type_string,
},
{
.name = "serial",
.description = "Serial number",
.tag = SMBIOS_STRING_TAG ( SMBIOS_TYPE_SYSTEM_INFORMATION,
struct smbios_system_information,
serial ),
.type = &setting_type_string,
},
};

0 comments on commit 594c672

Please sign in to comment.