path: root/programmer.h
diff options
authorCarl-Daniel Hailfinger <>2012-07-16 21:32:19 +0000
committerCarl-Daniel Hailfinger <>2012-07-16 21:32:19 +0000
commit3834c2d7e5a08e09e580be0dc7f9369c941b2a70 (patch)
tree354156bfe1b3fb86e745287baf9602088c18bb14 /programmer.h
parent6e48a026f7b57ecc4c2c7a8f9ce450db8f4b2a30 (diff)
Check vendor_id for PCI based external programmers
Restructure PCI device detection code. Rename pcidev_validate to pcidev_readbar. Note: Slight changes in behaviour are possible, especially on dual/quad chip NICs which appear as more than one PCI device. Found devices are no longer printed at _pinfo level, but rather at _pdbg level. Corresponding to flashrom svn r1548. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Michael Karcher <>
Diffstat (limited to 'programmer.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/programmer.h b/programmer.h
index d60fc5d..51d04fd 100644
--- a/programmer.h
+++ b/programmer.h
@@ -227,7 +227,7 @@ struct pcidev_status {
const char *vendor_name;
const char *device_name;
-uintptr_t pcidev_validate(struct pci_dev *dev, int bar, const struct pcidev_status *devs);
+uintptr_t pcidev_readbar(struct pci_dev *dev, int bar);
uintptr_t pcidev_init(int bar, const struct pcidev_status *devs);
/* rpci_write_* are reversible writes. The original PCI config space register
* contents will be restored on shutdown.
OpenPOWER on IntegriCloud