summaryrefslogtreecommitdiff
path: root/util/nvramtool/accessors
diff options
context:
space:
mode:
authorMathias Krause <mathias.krause@secunet.com>2011-03-10 07:52:02 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2011-03-10 07:52:02 +0000
commit155c379b747e14ee181794d6ee460495886bee14 (patch)
tree1225c47ed18c8e89e9b53d4fcfdb51b8fcca0b85 /util/nvramtool/accessors
parent314dd0bee5f995164c0206798486cfce366160eb (diff)
downloadcoreboot-155c379b747e14ee181794d6ee460495886bee14.tar.xz
nvramtool: Move code so it has access to the right data structures
Signed-off-by: Mathias Krause <mathias.krause@secunet.com> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6440 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/nvramtool/accessors')
-rw-r--r--util/nvramtool/accessors/layout-bin.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/util/nvramtool/accessors/layout-bin.c b/util/nvramtool/accessors/layout-bin.c
index 53f0530c40..cf79646453 100644
--- a/util/nvramtool/accessors/layout-bin.c
+++ b/util/nvramtool/accessors/layout-bin.c
@@ -84,6 +84,20 @@ void get_layout_from_cbfs_file(void)
}
/****************************************************************************
+ * get_layout_from_cmos_table
+ *
+ * Find the CMOS table which is stored within the coreboot table and set the
+ * global variable cmos_table to point to it.
+ ****************************************************************************/
+void get_layout_from_cmos_table(void)
+{
+ get_lbtable();
+ cmos_table = (const struct cmos_option_table *)
+ find_lbrec(LB_TAG_CMOS_OPTION_TABLE);
+ process_layout();
+}
+
+/****************************************************************************
* process_cmos_table
*
* Extract layout information from the CMOS option table and store it in our