diff options
author | Nico Huber <nico.h@gmx.de> | 2019-06-15 15:55:11 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-06-26 15:54:22 +0000 |
commit | f394fcec0da2fd4a9d1bd7a7911065344e67ce34 (patch) | |
tree | cdce7e8fe9c980df3602711cc7de9881f2deaf3e /libflashrom.h | |
parent | 7ebd578100e6526ef46c98cb9978d692160d8179 (diff) | |
download | flashrom-f394fcec0da2fd4a9d1bd7a7911065344e67ce34.tar.gz flashrom-f394fcec0da2fd4a9d1bd7a7911065344e67ce34.tar.bz2 flashrom-f394fcec0da2fd4a9d1bd7a7911065344e67ce34.zip |
layout: Introduce flashrom_layout_add_region()
Adds a region to an existing layout, as long as there is space.
Change-Id: I50d473d0d5d1fb38bd6f9ae3d7127e9ea66a94e1
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/33517
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'libflashrom.h')
-rw-r--r-- | libflashrom.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libflashrom.h b/libflashrom.h index eab78ad1..d04eeb66 100644 --- a/libflashrom.h +++ b/libflashrom.h @@ -111,6 +111,7 @@ int flashrom_layout_read_fmap_from_rom(struct flashrom_layout **, struct flashrom_flashctx *, off_t offset, size_t length); int flashrom_layout_read_fmap_from_buffer(struct flashrom_layout **layout, struct flashrom_flashctx *, const uint8_t *buf, size_t len); +int flashrom_layout_add_region(struct flashrom_layout *, size_t start, size_t end, const char *name); int flashrom_layout_include_region(struct flashrom_layout *, const char *name); void flashrom_layout_release(struct flashrom_layout *); void flashrom_layout_set(struct flashrom_flashctx *, const struct flashrom_layout *); |