internal: Pass programmer context down into chipset enables
Chipset enables potentially need access to programmer data, e.g.
to process parameters, register masters etc.
Change-Id: Iad211ff97e92d1973f981156bfa3154d1ba71d45
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/72528
diff --git a/include/programmer.h b/include/programmer.h
index 36067a2..6425788 100644
--- a/include/programmer.h
+++ b/include/programmer.h
@@ -154,7 +154,7 @@
const enum test_state status;
const char *vendor_name;
const char *device_name;
- int (*doit) (struct pci_dev *dev, const char *name);
+ int (*doit) (struct flashprog_programmer *, struct pci_dev *, const char *name);
};
extern const struct penable chipset_enables[];
@@ -235,7 +235,7 @@
int board_flash_enable(struct flashprog_programmer *, const char *vendor, const char *model, const char *cb_vendor, const char *cb_model);
/* chipset_enable.c */
-int chipset_flash_enable(void);
+int chipset_flash_enable(struct flashprog_programmer *);
/* processor_enable.c */
int processor_flash_enable(void);