瀏覽代碼

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

tags/v0.9.4
Michael Brown 16 年之前
父節點
當前提交
594c672b75
共有 1 個文件被更改,包括 28 次插入0 次删除
  1. 28
    0
      src/arch/i386/firmware/pcbios/smbios_settings.c

+ 28
- 0
src/arch/i386/firmware/pcbios/smbios_settings.c 查看文件

@@ -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…
取消
儲存