Browse Source

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

tags/v0.9.4
Michael Brown 16 years ago
parent
commit
594c672b75
1 changed files with 28 additions and 0 deletions
  1. 28
    0
      src/arch/i386/firmware/pcbios/smbios_settings.c

+ 28
- 0
src/arch/i386/firmware/pcbios/smbios_settings.c View File

@@ -156,3 +156,31 @@ struct setting uuid_setting __setting = {
156 156
 				struct smbios_system_information, uuid ),
157 157
 	.type = &setting_type_uuid,
158 158
 };
159
+
160
+/** Other SMBIOS named settings */
161
+struct setting smbios_named_settings[] __setting = {
162
+	{
163
+		.name = "manufacturer",
164
+		.description = "Manufacturer",
165
+		.tag = SMBIOS_STRING_TAG ( SMBIOS_TYPE_SYSTEM_INFORMATION,
166
+					   struct smbios_system_information,
167
+					   manufacturer ),
168
+		.type = &setting_type_string,
169
+	},
170
+	{
171
+		.name = "product",
172
+		.description = "Product name",
173
+		.tag = SMBIOS_STRING_TAG ( SMBIOS_TYPE_SYSTEM_INFORMATION,
174
+					   struct smbios_system_information,
175
+					   product ),
176
+		.type = &setting_type_string,
177
+	},
178
+	{
179
+		.name = "serial",
180
+		.description = "Serial number",
181
+		.tag = SMBIOS_STRING_TAG ( SMBIOS_TYPE_SYSTEM_INFORMATION,
182
+					   struct smbios_system_information,
183
+					   serial ),
184
+		.type = &setting_type_string,
185
+	},
186
+};

Loading…
Cancel
Save