summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2008-07-27 02:18:55 +0200
committerMichael Brown2008-07-27 02:18:55 +0200
commit594c672b75430e3201c664218b47215890b1387e (patch)
tree9466ab5c78e271079e9329156b613c7f8947c637
parent[cmdline] Add setting expansion using ${...} syntax (diff)
downloadipxe-594c672b75430e3201c664218b47215890b1387e.tar.gz
ipxe-594c672b75430e3201c664218b47215890b1387e.tar.xz
ipxe-594c672b75430e3201c664218b47215890b1387e.zip
[smbios] Add named settings for manufacturer, product name, and serial no.
-rw-r--r--src/arch/i386/firmware/pcbios/smbios_settings.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/arch/i386/firmware/pcbios/smbios_settings.c b/src/arch/i386/firmware/pcbios/smbios_settings.c
index de08ec5b..b088e51d 100644
--- a/src/arch/i386/firmware/pcbios/smbios_settings.c
+++ b/src/arch/i386/firmware/pcbios/smbios_settings.c
@@ -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,
+ },
+};