summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/libpayload.h
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2015-07-09 13:57:00 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-07-14 18:12:06 +0200
commit89f73dccdbdccff494e9729e94defecd64b92964 (patch)
tree05cc189124b35c98db9b77e379c58d47755b6c67 /payloads/libpayload/include/libpayload.h
parent1daee069cda9df463526a0a71d68d14e331244a8 (diff)
downloadcoreboot-89f73dccdbdccff494e9729e94defecd64b92964.tar.xz
libpayload: Add support for handling fmaps
They will become more common soon, so better support them now. Change-Id: I2b16e1bb7707fe8410365877524ff359aeefc161 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10868 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'payloads/libpayload/include/libpayload.h')
-rw-r--r--payloads/libpayload/include/libpayload.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h
index 8f17b58fcb..5e787e1ff7 100644
--- a/payloads/libpayload/include/libpayload.h
+++ b/payloads/libpayload/include/libpayload.h
@@ -47,6 +47,7 @@
#include <ctype.h>
#include <die.h>
#include <endian.h>
+#include <fmap_serialized.h>
#include <ipchksum.h>
#include <kconfig.h>
#include <stddef.h>
@@ -405,4 +406,8 @@ void gdb_enter(void);
/* Disconnect existing GDB connection if one exists. */
void gdb_exit(s8 exit_status);
+/* look for area "name" in "fmap", setting offset and size to describe it.
+ Returns 0 on success, < 0 on error. */
+int fmap_region_by_name(const uint32_t fmap_offset, const char * const name,
+ uint32_t * const offset, uint32_t * const size);
#endif