aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-06-10 15:03:41 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-06-14 16:00:16 +1000
commit0bf9c3c44bf1bde1c7bec86d33a6e3ccb6e56c90 (patch)
tree249a264686be313a00fbbc345722f47d1db025ec /include
parentcc406eb92d69690e26c3c5f52f48060c6c8c0b43 (diff)
downloadskiboot-0bf9c3c44bf1bde1c7bec86d33a6e3ccb6e56c90.zip
skiboot-0bf9c3c44bf1bde1c7bec86d33a6e3ccb6e56c90.tar.gz
skiboot-0bf9c3c44bf1bde1c7bec86d33a6e3ccb6e56c90.tar.bz2
core/pci: Return value for struct phb_ops::device_init
This adds @data argument and "int" return value for struct phb_ops:: device_init() so that it can be called in pci_walk_dev() directly to reinitialize the PCI devices behind the specified slot in 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/pci.h b/include/pci.h
index 788f1ef..69be49e 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -261,7 +261,8 @@ struct phb_ops {
* and before probing further. It can alter things like scan_map
* for bridge ports etc...
*/
- void (*device_init)(struct phb *phb, struct pci_device *device);
+ int (*device_init)(struct phb *phb, struct pci_device *device,
+ void *data);
/* PHB final fixup is called after PCI probing is completed */
void (*phb_final_fixup)(struct phb *phb);