2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-29 04:39:42 +00:00

[smbios] Add named settings for manufacturer, product name, and serial no.

This commit is contained in:
Michael Brown 2008-07-27 01:18:55 +01:00
parent 34a06b6ba7
commit 594c672b75

View File

@ -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,
},
};