aboutsummaryrefslogtreecommitdiffstats
path: root/include/hwaccess_physmap.h
diff options
context:
space:
mode:
authorNikolai Artemiev <nartemiev@google.com>2022-11-29 17:51:37 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2022-12-16 03:38:09 +0000
commit6cb1bd6fe3e698d9dc9536f50910623df48ca7b9 (patch)
treed29462b20af1d72f282b1c4a42c5abcd59147ab5 /include/hwaccess_physmap.h
parent0741727925b841c2479b993204ce58c5eb75185a (diff)
downloadflashrom-6cb1bd6fe3e698d9dc9536f50910623df48ca7b9.tar.gz
flashrom-6cb1bd6fe3e698d9dc9536f50910623df48ca7b9.tar.bz2
flashrom-6cb1bd6fe3e698d9dc9536f50910623df48ca7b9.zip
ichspi: Expose flash descriptor regions through get_region()
Region attributes are now stored in a `fd_regions` array after being decoded in ich9_handle_frap() and used by ich_get_region(). A special cases is handled in ich_get_region(): if there is a gap between two flash regions, an artificial region is created to fill the gap. I.e. any address inside the gap will return a region that spans the gap between the end the of the previous region and the start of the next region. This allows ich_get_region() to be used to iterate the entire flash region-by-region. Read and write operations are assumed to be allowed inside gaps between regions. BUG=b:260440773 BRANCH=none TEST=flashrom -{r,w,E,v} on dedede (JSL) Change-Id: I019f3f407f6a2a82f686a168457e0e32961ff483 Signed-off-by: Nikolai Artemiev <nartemiev@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/70127 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'include/hwaccess_physmap.h')
0 files changed, 0 insertions, 0 deletions