summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-05-01 16:48:54 -0500
committerPatrick Georgi <pgeorgi@google.com>2015-05-05 17:49:27 +0200
commitd914412beca76f97fe2f4a5bdbefdfcc398f72c1 (patch)
tree8b736e55c96fdd13f7a81e87d4c8ee20889f287c
parent26681ec2cbe6d7f0b6a441ec817ad0d0a8ddeef9 (diff)
downloadcoreboot-d914412beca76f97fe2f4a5bdbefdfcc398f72c1.tar.xz
cbfs: make cbfs_load_prog_stage_by_offset() public
That function will be used by the vboot loader. Change-Id: I204c6cd5eede3645750b50fe3ed30d77c22dbf43 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10101 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r--src/include/cbfs.h2
-rw-r--r--src/lib/cbfs.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/include/cbfs.h b/src/include/cbfs.h
index 05ce2f7f31..1d7917cf31 100644
--- a/src/include/cbfs.h
+++ b/src/include/cbfs.h
@@ -60,6 +60,8 @@ void *cbfs_load_stage_by_offset(struct cbfs_media *media, ssize_t offset);
/* Load a stage from a prog structure. Returns < 0 on error. 0 on success. */
struct prog;
int cbfs_load_prog_stage(struct cbfs_media *media, struct prog *prog);
+int cbfs_load_prog_stage_by_offset(struct cbfs_media *media,
+ struct prog *prog, ssize_t offset);
/* Simple buffer for streaming media. */
struct cbfs_simple_buffer {
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index 88a292f26b..8239f07c83 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -74,7 +74,7 @@ void *cbfs_load_optionrom(struct cbfs_media *media, uint16_t vendor,
return dest;
}
-static int cbfs_load_prog_stage_by_offset(struct cbfs_media *media,
+int cbfs_load_prog_stage_by_offset(struct cbfs_media *media,
struct prog *prog, ssize_t offset)
{
struct cbfs_stage stage;