From b86803830399fe05b0ef81d56d1da027433e5af7 Mon Sep 17 00:00:00 2001 From: Aarya Chaumal Date: Wed, 21 Dec 2022 21:28:15 +0530 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/71174 Tested-by: build bot (Jenkins) Reviewed-by: Anastasia Klimchuk --- include/layout.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/layout.h') 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__ */ -- cgit v1.2.3