aboutsummaryrefslogtreecommitdiff
path: root/util/nvramtool/cmos_lowlevel.h
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@secunet.com>2011-01-21 07:19:59 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2011-01-21 07:19:59 +0000
commit9cd7eba1180396cbd91776a94444696f6b4069c4 (patch)
treeb378bf872b031931f7a8401fb678d56961689a59 /util/nvramtool/cmos_lowlevel.h
parentbe5a178de731dd6b255c38c1e63b3de8b3008a14 (diff)
Add support for working on in-memory CMOS data (eg.
as loaded from a file). Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Acked-by: Stefan Reinauer <stepan@coreboot.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6284 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/nvramtool/cmos_lowlevel.h')
-rw-r--r--util/nvramtool/cmos_lowlevel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/nvramtool/cmos_lowlevel.h b/util/nvramtool/cmos_lowlevel.h
index ebe82a7a11..3c2efce1e1 100644
--- a/util/nvramtool/cmos_lowlevel.h
+++ b/util/nvramtool/cmos_lowlevel.h
@@ -34,6 +34,9 @@
#include "common.h"
#include "layout.h"
+typedef enum { HAL_CMOS, HAL_MEMORY } hal_t;
+void select_hal(hal_t hal, void *data);
+
#define CMOS_AREA_OUT_OF_RANGE (CMOS_RESULT_START + 0)
#define CMOS_AREA_OVERLAPS_RTC (CMOS_RESULT_START + 1)
#define CMOS_AREA_TOO_WIDE (CMOS_RESULT_START + 2)