diff options
author | Aarya Chaumal <aarya.chaumal@gmail.com> | 2022-12-21 21:28:15 +0530 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2023-01-16 01:51:59 +0000 |
commit | b86803830399fe05b0ef81d56d1da027433e5af7 (patch) | |
tree | ab7ba25161beeea3413431f7774e1cd9d34fad28 /include/layout.h | |
parent | f2d20cf713f892ca1798fb2304320e44d7f80179 (diff) | |
download | flashrom-b86803830399fe05b0ef81d56d1da027433e5af7.tar.gz flashrom-b86803830399fe05b0ef81d56d1da027433e5af7.tar.bz2 flashrom-b86803830399fe05b0ef81d56d1da027433e5af7.zip |
flash.h: Make functions global that will be used for new erase algorithm
The new erase algorithm uses some of the functions which are static to
`flashrom.c`. So make these functions global and add prototypes to
`include\flash.h` and `include\layout.h'.
Change-Id: I7ee7e208948337b88467935fd2861b5f9ad6af9d
Signed-off-by: Aarya Chaumal <aarya.chaumal@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/71174
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'include/layout.h')
-rw-r--r-- | include/layout.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/layout.h b/include/layout.h index 70d99cbb..5614beaf 100644 --- a/include/layout.h +++ b/include/layout.h @@ -72,5 +72,7 @@ const struct romentry *layout_next(const struct flashrom_layout *, const struct int included_regions_overlap(const struct flashrom_layout *); void prepare_layout_for_extraction(struct flashrom_flashctx *); int layout_sanity_checks(const struct flashrom_flashctx *); +int check_for_unwritable_regions(const struct flashrom_flashctx *flash, unsigned int start, unsigned int len); +void get_flash_region(const struct flashrom_flashctx *flash, int addr, struct flash_region *region); #endif /* !__LAYOUT_H__ */ |