aboutsummaryrefslogtreecommitdiffstats
path: root/include/programmer.h
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2022-08-12 15:25:39 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2022-09-07 02:45:15 +0000
commit5d63d3f88439c35abf40b0a38bc7d54e4729b03e (patch)
treed464a17919a146bc061785aa45020c66879f538a /include/programmer.h
parentea938173a40a6fae076f6fc0f37f940eae82d142 (diff)
downloadflashrom-5d63d3f88439c35abf40b0a38bc7d54e4729b03e.tar.gz
flashrom-5d63d3f88439c35abf40b0a38bc7d54e4729b03e.tar.bz2
flashrom-5d63d3f88439c35abf40b0a38bc7d54e4729b03e.zip
tree: Fix drivers to pass programmer_cfg to pcidev_init()
Allow for programmer_cfg plumbing in pcidev.c The pci drivers impacted are plumbed here as well. Change-Id: Ie0c9d1c0866d44f64d037c596f2e30547fcfd58f Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/66671 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'include/programmer.h')
-rw-r--r--include/programmer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/programmer.h b/include/programmer.h
index 4ed68da1..76da9f9d 100644
--- a/include/programmer.h
+++ b/include/programmer.h
@@ -124,7 +124,7 @@ struct pci_filter;
extern struct pci_access *pacc;
int pci_init_common(void);
uintptr_t pcidev_readbar(struct pci_dev *dev, int bar);
-struct pci_dev *pcidev_init(const struct dev_entry *devs, int bar);
+struct pci_dev *pcidev_init(const struct programmer_cfg *cfg, const struct dev_entry *devs, int bar);
struct pci_dev *pcidev_scandev(struct pci_filter *filter, struct pci_dev *start);
struct pci_dev *pcidev_getdevfn(struct pci_dev *dev, const int func);
struct pci_dev *pcidev_find_vendorclass(uint16_t vendor, uint16_t devclass);