summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;