diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-09-15 15:40:46 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-09-15 02:49:09 -0500 |
commit | 529d86d02aaf5428ec2c6acd912b6a2b7541457a (patch) | |
tree | 70ebb0a395a1aa0cf5a09fd7136a15e35d56672e /include | |
parent | 0a2710381f34e6b4c03cff1fa76bc1b74f280ecd (diff) | |
download | skiboot-529d86d02aaf5428ec2c6acd912b6a2b7541457a.zip skiboot-529d86d02aaf5428ec2c6acd912b6a2b7541457a.tar.gz skiboot-529d86d02aaf5428ec2c6acd912b6a2b7541457a.tar.bz2 |
core/pci-dt-slot: Represent PCIe slots in the devicetree
In P9 we get information about the physical PCIe slot topology
through the HDAT. As a rule we never directly consume the HDAT
inside of Skiboot and we always parse and incorporate the data
from HDAT into the Skiboot device tree.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
[stewart@linux.vnet.ibm.com: add (C) header]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/pci-slot.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/pci-slot.h b/include/pci-slot.h index 479bc08..51e64d7 100644 --- a/include/pci-slot.h +++ b/include/pci-slot.h @@ -255,4 +255,11 @@ extern struct pci_slot *pcie_slot_create(struct phb *phb, 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); + +/* DT based slot map */ + +extern struct dt_node *dt_slots; +extern struct dt_node *map_pci_dev_to_slot(struct phb *phb, + struct pci_device *pd); + #endif /* __PCI_SLOT_H */ |