mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +02:00
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>
This commit is contained in:
@ -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 *);
|
||||
|
Reference in New Issue
Block a user