aboutsummaryrefslogtreecommitdiff
path: root/payloads/libpayload/include
diff options
context:
space:
mode:
authorJordan Crouse <jordan@cosmicpenguin.net>2008-11-11 19:51:14 +0000
committerJordan Crouse <jordan.crouse@amd.com>2008-11-11 19:51:14 +0000
commit6c6e4333c4ef8a86e70e14fcff57a5747339b165 (patch)
treee22f3aaf38fb241263176e7ac7817141c01a7eaf /payloads/libpayload/include
parent3b6c527322259d6ae7878411ca26ee6dd9374b3c (diff)
[PATCH] Add sysinfo_have_multiboot function
Add a new infrastructure for returning system information to payloads. First up - a pointer to the multiboot table. Signed-off-by: Jordan Crouse <jordan@cosmicpenguin.net> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3743 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r--payloads/libpayload/include/libpayload.h9
-rw-r--r--payloads/libpayload/include/sysinfo.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h
index 66d114e8f1..6d48279628 100644
--- a/payloads/libpayload/include/libpayload.h
+++ b/payloads/libpayload/include/libpayload.h
@@ -421,6 +421,15 @@ int lfclose(struct LFILE *file);
/** @} */
/**
+ * @defgroup info System information functions
+ * This module contains functions that return information about the system
+ * @{
+ */
+
+int sysinfo_have_multiboot(unsigned long *addr);
+/** @} */
+
+/**
* @defgroup arch Architecture specific functions
* This module contains global architecture specific functions.
* All architectures are expected to define these functions.
diff --git a/payloads/libpayload/include/sysinfo.h b/payloads/libpayload/include/sysinfo.h
index a9d7d122fb..3b2c69c61d 100644
--- a/payloads/libpayload/include/sysinfo.h
+++ b/payloads/libpayload/include/sysinfo.h
@@ -48,6 +48,8 @@ struct sysinfo_t {
u32 cmos_range_start;
u32 cmos_range_end;
u32 cmos_checksum_location;
+
+ unsigned long *mbtable; /** Pointer to the multiboot table */
};
extern struct sysinfo_t lib_sysinfo;