summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2017-03-30 10:05:29 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-03-31 16:57:07 +1100
commit2e831a162653d53cb3e69cd98d75f0129752a643 (patch)
tree2a6e5d4c0f36a78f3fea410ea07a3bea98b19254 /include
parentbb74665672d990b6676138efc1b07067df3806de (diff)
downloadblackbird-skiboot-2e831a162653d53cb3e69cd98d75f0129752a643.tar.gz
blackbird-skiboot-2e831a162653d53cb3e69cd98d75f0129752a643.zip
core/pci: Add phb->ops->device_remove
This adds another PHB callback (device_remove()), corresponding to device_init(). With it, the PHB3 layer can receive notification upon PCI topology changes. This functionality will be used by the subsequent patches. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h
index 732c1a36..dc418a90 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -207,6 +207,7 @@ struct phb_ops {
*/
int (*device_init)(struct phb *phb, struct pci_device *device,
void *data);
+ void (*device_remove)(struct phb *phb, struct pci_device *pd);
/* PHB final fixup is called after PCI probing is completed */
void (*phb_final_fixup)(struct phb *phb);
OpenPOWER on IntegriCloud