summaryrefslogtreecommitdiff
path: root/src/include/fmap.h
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2015-07-09 13:34:40 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-07-14 15:48:54 +0200
commit977587abf8b212dbf9297126b8dd31076c83d6b7 (patch)
tree45d4641cb72fde6696e07bb9a7f0ebc51db12b48 /src/include/fmap.h
parent995269062e631b83079c11bd91112fc0b71c523a (diff)
downloadcoreboot-977587abf8b212dbf9297126b8dd31076c83d6b7.tar.xz
fmap: publish find_fmap_directory()
The fmap directory can be useful to pass to the payload. For that, we need to be able to get it. Change-Id: Ibe0be73bb4fe28afb16d4d215b979eb0be369645 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10866 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/include/fmap.h')
-rw-r--r--src/include/fmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/fmap.h b/src/include/fmap.h
index 671e802775..6be6fee974 100644
--- a/src/include/fmap.h
+++ b/src/include/fmap.h
@@ -23,6 +23,9 @@
#include <region.h>
#include <fmap_serialized.h>
+/* Locate the fmap directory. Return 0 on success, < 0 on error. */
+int find_fmap_directory(struct region_device *fmrd);
+
/* Locate the named area in the fmap and fill in a region device representing
* that area. The region is a sub-region of the readonly boot media. Return
* 0 on success, < 0 on error. */