diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2017-03-30 10:05:29 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-03-31 16:57:07 +1100 |
commit | 2e831a162653d53cb3e69cd98d75f0129752a643 (patch) | |
tree | 2a6e5d4c0f36a78f3fea410ea07a3bea98b19254 /include | |
parent | bb74665672d990b6676138efc1b07067df3806de (diff) | |
download | skiboot-2e831a162653d53cb3e69cd98d75f0129752a643.zip skiboot-2e831a162653d53cb3e69cd98d75f0129752a643.tar.gz skiboot-2e831a162653d53cb3e69cd98d75f0129752a643.tar.bz2 |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h index 732c1a3..dc418a9 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); |