summaryrefslogtreecommitdiff
path: root/src/lib/cbfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cbfs.c')
-rw-r--r--src/lib/cbfs.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index be2ab72662..fa6c2e3021 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -90,7 +90,7 @@ int cbfs_boot_locate(struct cbfsf *fh, const char *name, uint32_t *type)
return 0;
}
-static void *_cbfs_map(const char *name, size_t *size_out, bool force_ro)
+void *_cbfs_map(const char *name, size_t *size_out, bool force_ro)
{
struct region_device rdev;
union cbfs_mdata mdata;
@@ -104,16 +104,6 @@ static void *_cbfs_map(const char *name, size_t *size_out, bool force_ro)
return rdev_mmap_full(&rdev);
}
-void *cbfs_map(const char *name, size_t *size_out)
-{
- return _cbfs_map(name, size_out, false);
-}
-
-void *cbfs_ro_map(const char *name, size_t *size_out)
-{
- return _cbfs_map(name, size_out, true);
-}
-
int cbfs_unmap(void *mapping)
{
/* This works because munmap() only works on the root rdev and never cares about which
@@ -307,7 +297,7 @@ void *cbfs_boot_map_optionrom_revision(uint16_t vendor, uint16_t device, uint8_t
return cbfs_map(name, NULL);
}
-static size_t _cbfs_load(const char *name, void *buf, size_t buf_size, bool force_ro)
+size_t _cbfs_load(const char *name, void *buf, size_t buf_size, bool force_ro)
{
struct region_device rdev;
union cbfs_mdata mdata;
@@ -328,16 +318,6 @@ static size_t _cbfs_load(const char *name, void *buf, size_t buf_size, bool forc
buf, buf_size, compression);
}
-size_t cbfs_load(const char *name, void *buf, size_t buf_size)
-{
- return _cbfs_load(name, buf, buf_size, false);
-}
-
-size_t cbfs_ro_load(const char *name, void *buf, size_t buf_size)
-{
- return _cbfs_load(name, buf, buf_size, true);
-}
-
int cbfs_prog_stage_load(struct prog *pstage)
{
struct cbfs_stage stage;