aboutsummaryrefslogtreecommitdiff
path: root/include/pci.h
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-06-10 15:03:39 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-06-14 16:00:16 +1000
commit72552138f07fb29dd7f4ceb0831f492e71b060d0 (patch)
tree282ccf20c07c2f41224c7363514e02ca73c4dc22 /include/pci.h
parent306b47d08a7520a08acdbbe06bcb1668eaf4b42c (diff)
downloadskiboot-72552138f07fb29dd7f4ceb0831f492e71b060d0.zip
skiboot-72552138f07fb29dd7f4ceb0831f492e71b060d0.tar.gz
skiboot-72552138f07fb29dd7f4ceb0831f492e71b060d0.tar.bz2
core/pci: Extend pci_walk_dev() for PCI slot
Currently, pci_walk_dev() iterates all PCI devices behind the specified PHB. This extends the function to allow iteration on PCI devices behind the specified PCI slot so that it can be used by PCI hotplug logic in the subsequent patches. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Reviewed-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h
index bd966ba..1039f10 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -524,6 +524,7 @@ extern int64_t pci_find_ecap(struct phb *phb, uint16_t bdfn, uint16_t cap,
uint8_t *version);
extern void pci_device_init(struct phb *phb, struct pci_device *pd);
extern struct pci_device *pci_walk_dev(struct phb *phb,
+ struct pci_device *pd,
int (*cb)(struct phb *,
struct pci_device *,
void *),