aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-menu.c
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-04-17 20:08:06 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-04-17 20:08:06 -0700
commit13c60849867ecc575b8f28dc259705b772611402 (patch)
tree61d028bb36a447e52d007e1b8e056960807cfea7 /com32/hdt/hdt-menu.c
parent569617a6dceca02dea5c72f48911f8987a34f6d4 (diff)
downloadhdt-13c60849867ecc575b8f28dc259705b772611402.tar.gz
hdt-13c60849867ecc575b8f28dc259705b772611402.tar.xz
hdt-13c60849867ecc575b8f28dc259705b772611402.zip
hdt: Add VPD menu item
Add an item to display VPD information, if detected. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/hdt/hdt-menu.c')
-rw-r--r--com32/hdt/hdt-menu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/com32/hdt/hdt-menu.c b/com32/hdt/hdt-menu.c
index be0b4723..18158ae3 100644
--- a/com32/hdt/hdt-menu.c
+++ b/com32/hdt/hdt-menu.c
@@ -153,6 +153,7 @@ void compute_submenus(struct s_hdt_menu *hdt_menu, struct s_hardware *hardware)
}
compute_processor(&(hdt_menu->cpu_menu), hardware);
+ compute_vpd(&(hdt_menu->vpd_menu), hardware);
compute_disks(hdt_menu, hardware->disk_info, hardware);
#ifdef WITH_PCI
@@ -242,6 +243,12 @@ void compute_main_menu(struct s_hdt_menu *hdt_menu, struct s_hardware *hardware)
}
}
+ if (hardware->is_vpd_valid == true) {
+ add_item("VPD","VPD Information Menu", OPT_SUBMENU, NULL,
+ hdt_menu->vpd_menu.menu);
+ hdt_menu->main_menu.items_count++;
+ }
+
if (hardware->is_pxe_valid == true) {
add_item("P<X>E", "PXE Information Menu", OPT_SUBMENU, NULL,
hdt_menu->pxe_menu.menu);
@@ -299,6 +306,10 @@ void detect_hardware(struct s_hardware *hardware)
hardware->dmi.dmitable.major_version,
hardware->dmi.dmitable.minor_version);
}
+
+ printf("VPD: Detecting\n");
+ detect_vpd(hardware);
+
#ifdef WITH_PCI
detect_pci(hardware);
printf("PCI: %d Devices Found\n", hardware->nb_pci_devices);