aboutsummaryrefslogtreecommitdiff
path: root/include/pci-slot.h
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-09-15 15:40:48 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-09-15 02:49:27 -0500
commit6d67361b59b70d930144b47f6fbbef956ca2fb40 (patch)
treeeb23994b060466d15686286a8447449534a8470c /include/pci-slot.h
parentcc41ce944b978395366177a29340facde3f1150b (diff)
downloadskiboot-6d67361b59b70d930144b47f6fbbef956ca2fb40.zip
skiboot-6d67361b59b70d930144b47f6fbbef956ca2fb40.tar.gz
skiboot-6d67361b59b70d930144b47f6fbbef956ca2fb40.tar.bz2
core/pci-slots: Move slot-label construction to a helper
Move this out of the astbmc specific part into a generic helper. This allows us to use it more commonly. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/pci-slot.h')
-rw-r--r--include/pci-slot.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pci-slot.h b/include/pci-slot.h
index 0524652..1d323aa 100644
--- a/include/pci-slot.h
+++ b/include/pci-slot.h
@@ -259,6 +259,9 @@ 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);
+extern void pci_slot_add_loc(struct pci_slot *slot,
+ struct dt_node *np, const char *label);
+
/* DT based slot map */
extern struct dt_node *dt_slots;