aboutsummaryrefslogtreecommitdiff
path: root/include/pci.h
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-06-10 15:03:40 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-06-14 16:00:16 +1000
commitcc406eb92d69690e26c3c5f52f48060c6c8c0b43 (patch)
treee73788c4a0d0d07fc6fa96e29f2e6c4d0bc03ffd /include/pci.h
parent72552138f07fb29dd7f4ceb0831f492e71b060d0 (diff)
downloadskiboot-cc406eb92d69690e26c3c5f52f48060c6c8c0b43.zip
skiboot-cc406eb92d69690e26c3c5f52f48060c6c8c0b43.tar.gz
skiboot-cc406eb92d69690e26c3c5f52f48060c6c8c0b43.tar.bz2
core/pci: Extend pci_restore_bridge_buses() for PCI slot
Currently, pci_restore_bridge_buses() restores the assigned bus ranges for all PCI bridges behind the specified PHB. This extends the function and allows doing same thing for the PCI bridges behind the specified slot. The extended functionality is going to 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pci.h b/include/pci.h
index 1039f10..788f1ef 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -530,7 +530,7 @@ extern struct pci_device *pci_walk_dev(struct phb *phb,
void *),
void *userdata);
extern struct pci_device *pci_find_dev(struct phb *phb, uint16_t bdfn);
-extern void pci_restore_bridge_buses(struct phb *phb);
+extern void pci_restore_bridge_buses(struct phb *phb, struct pci_device *pd);
extern struct pci_cfg_reg_filter *pci_find_cfg_reg_filter(struct pci_device *pd,
uint32_t start, uint32_t len);
extern struct pci_cfg_reg_filter *pci_add_cfg_reg_filter(struct pci_device *pd,