diff options
author | Alexander Goncharov <chat@joursoir.net> | 2022-08-17 20:56:43 +0300 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2022-08-22 22:03:59 +0000 |
commit | 1d386518653c070ba51cd88bdfeaf18c81ee8186 (patch) | |
tree | 70ffdc445eaf8843440bbde29fb1a03c191aede9 /include | |
parent | 66b34f8ba30026b0cf7db1ce58c8990ebbf6ad48 (diff) | |
download | flashrom-1d386518653c070ba51cd88bdfeaf18c81ee8186.tar.gz flashrom-1d386518653c070ba51cd88bdfeaf18c81ee8186.tar.bz2 flashrom-1d386518653c070ba51cd88bdfeaf18c81ee8186.zip |
drkaiser: restore flash writing access state explicitly
Instead of using reversible write (rpci_write_word) that relies on
global state, do it manually. Save original PCI config space
register contents to programmer's structure during initialization
and restore it in programmer's shutdown.
TOPIC=reduce_global_pci_state
TEST=builds
Change-Id: Ie99a7cb3e049b29e6838dd4af587eee8c3b18919
Signed-off-by: Alexander Goncharov <chat@joursoir.net>
Ticket: https://ticket.coreboot.org/issues/389
Reviewed-on: https://review.coreboot.org/c/flashrom/+/66838
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions