aboutsummaryrefslogtreecommitdiff
path: root/src/include/fmap.h
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-08-12 12:42:04 -0500
committerMartin Roth <martinroth@google.com>2016-08-19 18:17:04 +0200
commitbccaab86582957483b0b7e50ead308ed1bff815d (patch)
tree05b35ef30784e6cd1d8507d509275d13dd91c812 /src/include/fmap.h
parente4cc8cd00b3b39eecac604cc402b8111f8fd5657 (diff)
lib/fmap: provide RW region device support
Explicitly provide a RW view of an FMAP region. This is required for platforms which have separate implementations of a RO boot device and a RW boot device. BUG=chrome-os-partner:56151 Change-Id: Ibafa3dc534f53a3d90487f3190c0f8a2e82858c2 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/16203 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/include/fmap.h')
-rw-r--r--src/include/fmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/fmap.h b/src/include/fmap.h
index 684a05c607..5834831489 100644
--- a/src/include/fmap.h
+++ b/src/include/fmap.h
@@ -27,6 +27,10 @@ int find_fmap_directory(struct region_device *fmrd);
* 0 on success, < 0 on error. */
int fmap_locate_area_as_rdev(const char *name, struct region_device *area);
+/* Just like fmap_locate_area_as_rdev(), however the region device is
+ * created from the RW boot device. */
+int fmap_locate_area_as_rdev_rw(const char *name, struct region_device *area);
+
/* Locate the named area in the fmap and fill in a region with the
* offset and size of that area within the boot media. Return 0 on success,
* < 0 on error. */