diff options
-rw-r--r-- | src/vboot/vboot_common.c | 5 | ||||
-rw-r--r-- | src/vboot/vboot_common.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/vboot/vboot_common.c b/src/vboot/vboot_common.c index 319e0dedfc..7e1ca9de55 100644 --- a/src/vboot/vboot_common.c +++ b/src/vboot/vboot_common.c @@ -30,6 +30,11 @@ int vboot_named_region_device(const char *name, struct region_device *rdev) return fmap_locate_area_as_rdev(name, rdev); } +int vboot_named_region_device_rw(const char *name, struct region_device *rdev) +{ + return fmap_locate_area_as_rdev(name, rdev); +} + /* ========================== VBOOT HANDOFF APIs =========================== */ int vboot_get_handoff_info(void **addr, uint32_t *size) { diff --git a/src/vboot/vboot_common.h b/src/vboot/vboot_common.h index d64b5bb007..59fd44ca30 100644 --- a/src/vboot/vboot_common.h +++ b/src/vboot/vboot_common.h @@ -23,6 +23,9 @@ /* Locate vboot area by name. Returns 0 on success and -1 on error. */ int vboot_named_region_device(const char *name, struct region_device *rdev); +/* Like vboot_named_region_device() but provides a RW region device. */ +int vboot_named_region_device_rw(const char *name, struct region_device *rdev); + /* * Function to check if there is a request to enter recovery mode. Returns * reason code if request to enter recovery mode is present, otherwise 0. |