internal: Pass programmer context down into board enables
Board enables potentially need access to programmer data, e.g. to
process parameters, register masters etc.
Change-Id: I1531a6e1be9866adc5dce74c6f62bbbeae1bd274
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/72527
diff --git a/internal.c b/internal.c
index 57064a7..103cb83 100644
--- a/internal.c
+++ b/internal.c
@@ -231,7 +231,7 @@
dmi_init();
/* In case Super I/O probing would cause pretty explosions. */
- board_handle_before_superio();
+ board_handle_before_superio(prog);
/* Probe for the Super I/O chip and fill global struct superio. */
probe_superio();
@@ -244,7 +244,7 @@
#endif
/* Check laptop whitelist. */
- board_handle_before_laptop();
+ board_handle_before_laptop(prog);
/*
* Disable all internal buses by default if we are not sure
@@ -270,7 +270,7 @@
* parallel writes on IT8705F. Also, this handles the manual chip select for Gigabyte's DualBIOS. */
init_superio_ite();
- if (board_flash_enable(board_vendor, board_model, cb_vendor, cb_model)) {
+ if (board_flash_enable(prog, board_vendor, board_model, cb_vendor, cb_model)) {
msg_perr("Aborting to be safe.\n");
ret = 1;
goto internal_init_exit;