aboutsummaryrefslogtreecommitdiffstats
path: root/include/libflashrom.h
diff options
context:
space:
mode:
authorAarya Chaumal <aarya.chaumal@gmail.com>2022-07-15 16:51:27 +0530
committerAnastasia Klimchuk <aklm@chromium.org>2023-02-13 04:54:39 +0000
commit8fbe405038cf52149902e6e148716064e25ec7b3 (patch)
tree60ab106221712e1695cf4a5f3e7d6b83c526a63f /include/libflashrom.h
parentbd90bbeccdc5d1273f239bb43d16513d57fb557a (diff)
downloadflashrom-8fbe405038cf52149902e6e148716064e25ec7b3.tar.gz
flashrom-8fbe405038cf52149902e6e148716064e25ec7b3.tar.bz2
flashrom-8fbe405038cf52149902e6e148716064e25ec7b3.zip
flashrom.c: Add functions for new erase selection algorithm
1) Add function to flatten out the addresses of the flash chip as per the different erase functions. This function will return a list of layouts which is dynamically allocated. So after use all the layouts as well as the list itself should be freed. The free_erase_layout function does that. 2) Add function to align start and end address of the region (in struct walk_info) to some erase sector boundaries and modify the region start and end addresses to match nearest erase sector boundaries. This function will be used in the new algorithm for erase function selection. 3) Add function that returns a list of sectors (as seen by the first erase function) that need erasing. 4) Add a function to call the erase algorithm. Change-Id: Ic57ca1cca3d1646543f6b5939ba9c35db8d08256 Signed-off-by: Aarya Chaumal <aarya.chaumal@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/65844 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Thomas Heijligen <src@posteo.de> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'include/libflashrom.h')
0 files changed, 0 insertions, 0 deletions