diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-09-15 15:40:47 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-09-15 02:49:26 -0500 |
commit | cc41ce944b978395366177a29340facde3f1150b (patch) | |
tree | 9cede735f4ebaac1f03a46718db3f9f28505bbc9 /include | |
parent | 529d86d02aaf5428ec2c6acd912b6a2b7541457a (diff) | |
download | skiboot-cc41ce944b978395366177a29340facde3f1150b.zip skiboot-cc41ce944b978395366177a29340facde3f1150b.tar.gz skiboot-cc41ce944b978395366177a29340facde3f1150b.tar.bz2 |
core/pcie-slots: Make dynamic slot creation generic
astbmc has some code to handle devices that are behind a "slot" on a
riser card that can't be added to the static slot tables for a system.
We probably want to use this code outside the slot table handling so
move it somewhere generic and rework it so slot table specifics aren't
buried inside it.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/pci-slot.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pci-slot.h b/include/pci-slot.h index 51e64d7..0524652 100644 --- a/include/pci-slot.h +++ b/include/pci-slot.h @@ -252,6 +252,9 @@ extern struct pci_slot *pci_slot_alloc(struct phb *phb, struct pci_device *pd); extern struct pci_slot *pcie_slot_create(struct phb *phb, struct pci_device *pd); +extern struct pci_slot *pcie_slot_create_dynamic(struct phb *phb, + struct pci_device *pd); + extern void pci_slot_add_dt_properties(struct pci_slot *slot, struct dt_node *np); extern struct pci_slot *pci_slot_find(uint64_t id); |