[PATCH] coreinfo: Add multiboot parsing support

Rename the "coreboot" menu "firmware", and add a module to parse
the multiboot table.  For now, just parse memory, but it can be
expanded as needed.

Signed-off-by: Jordan Crouse <jordan@cosmicpenguin.net>
Acked-by: Peter Stuge <peter@stuge.se>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3744 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Jordan Crouse
2008-11-11 19:53:42 +00:00
committed by Jordan Crouse
parent 6c6e4333c4
commit 5cb4d9d663
4 changed files with 136 additions and 5 deletions

View File

@@ -27,6 +27,7 @@
extern struct coreinfo_module cpuinfo_module;
extern struct coreinfo_module pci_module;
extern struct coreinfo_module coreboot_module;
extern struct coreinfo_module multiboot_module;
extern struct coreinfo_module nvram_module;
extern struct coreinfo_module bootlog_module;
extern struct coreinfo_module ramdump_module;
@@ -47,10 +48,13 @@ struct coreinfo_module *system_modules[] = {
#endif
};
struct coreinfo_module *coreboot_modules[] = {
struct coreinfo_module *firmware_modules[] = {
#ifdef CONFIG_MODULE_COREBOOT
&coreboot_module,
#endif
#ifdef CONFIG_MODULE_MULTIBOOT
&multiboot_module,
#endif
#ifdef CONFIG_MODULE_BOOTLOG
&bootlog_module,
#endif
@@ -71,9 +75,9 @@ struct coreinfo_cat {
.count = ARRAY_SIZE(system_modules),
},
{
.name = "Coreboot",
.modules = coreboot_modules,
.count = ARRAY_SIZE(coreboot_modules),
.name = "Firmware",
.modules = firmware_modules,
.count = ARRAY_SIZE(firmware_modules),
}
};