summaryrefslogtreecommitdiffstats
path: root/pcidev.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-08-12 13:32:56 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-08-12 13:32:56 +0000
commitef58a9ce3f9ae3ce0db34861f0c2d24373712138 (patch)
tree07d03ad8b91541f09b13ac709ef85e93cbc339ca /pcidev.c
parent415e513d90042b91c1a50a9afe1282e393e574b8 (diff)
downloadflashrom-ef58a9ce3f9ae3ce0db34861f0c2d24373712138.tar.gz
flashrom-ef58a9ce3f9ae3ce0db34861f0c2d24373712138.tar.bz2
flashrom-ef58a9ce3f9ae3ce0db34861f0c2d24373712138.zip
Use a common parameter variable for all programmers
This allows us to reduce #ifdef clauses a lot if we compile out some programmers completely. Corresponding to flashrom svn r679. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'pcidev.c')
-rw-r--r--pcidev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pcidev.c b/pcidev.c
index 1de2bf579..580ebae3b 100644
--- a/pcidev.c
+++ b/pcidev.c
@@ -26,7 +26,6 @@
uint32_t io_base_addr;
struct pci_access *pacc;
struct pci_filter filter;
-char *pcidev_bdf = NULL;
struct pci_dev *pcidev_dev = NULL;
uint32_t pcidev_validate(struct pci_dev *dev, struct pcidev_status *devs)
@@ -58,7 +57,7 @@ uint32_t pcidev_validate(struct pci_dev *dev, struct pcidev_status *devs)
return 0;
}
-uint32_t pcidev_init(uint16_t vendor_id, struct pcidev_status *devs)
+uint32_t pcidev_init(uint16_t vendor_id, struct pcidev_status *devs, char *pcidev_bdf)
{
struct pci_dev *dev;
char *msg = NULL;