summaryrefslogtreecommitdiffstats
path: root/gfxnvidia.c
diff options
context:
space:
mode:
authorAlexander Goncharov <chat@joursoir.net>2022-08-17 21:22:27 +0300
committerAnastasia Klimchuk <aklm@chromium.org>2022-08-29 03:03:06 +0000
commit179e6e14236d297f473612cc121a8f1d88dea03b (patch)
treea24da4d96d63338fa80abdc692b3b43edd5ca0ee /gfxnvidia.c
parent0ba49071005b2d1fe215145deff18d2e8bb178bc (diff)
downloadflashrom-179e6e14236d297f473612cc121a8f1d88dea03b.tar.gz
flashrom-179e6e14236d297f473612cc121a8f1d88dea03b.tar.bz2
flashrom-179e6e14236d297f473612cc121a8f1d88dea03b.zip
it8212: restore ROM BAR decode state explicitly
Instead of using reversible write (rpci_write_long) 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: I44a4321256d208f7a59e952cd8943b941787fa02 Signed-off-by: Alexander Goncharov <chat@joursoir.net> Ticket: https://ticket.coreboot.org/issues/389 Reviewed-on: https://review.coreboot.org/c/flashrom/+/66842 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'gfxnvidia.c')
0 files changed, 0 insertions, 0 deletions