[v3,2/5] core/pci: Make the pci_scan_one() function public
diff mbox series

Message ID 20190816141714.26380-3-s.miroshnichenko@yadro.com
State New
Headers show
Series
  • core/pci: Track changes of topology by an OS
Related show

Checks

Context Check Description
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (a1fced25bf41f1f94a3673a0b2bf68135eedce25)

Commit Message

Sergey Miroshnichenko Aug. 16, 2019, 2:17 p.m. UTC
This change will be used by the next commit to discover new PCI devices and
to create struct pci_device for them.

Signed-off-by: Sergey Miroshnichenko <s.miroshnichenko@yadro.com>
---
 core/pci.c    | 4 ++--
 include/pci.h | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/core/pci.c b/core/pci.c
index 3fb6c8b9..7657e515 100644
--- a/core/pci.c
+++ b/core/pci.c
@@ -214,8 +214,8 @@  bool pci_wait_crs(struct phb *phb, uint16_t bdfn, uint32_t *out_vdid)
 	return true;
 }
 
-static struct pci_device *pci_scan_one(struct phb *phb, struct pci_device *parent,
-				       uint16_t bdfn)
+struct pci_device *pci_scan_one(struct phb *phb, struct pci_device *parent,
+				uint16_t bdfn)
 {
 	struct pci_device *pd = NULL;
 	uint32_t vdid;
diff --git a/include/pci.h b/include/pci.h
index 13d72bb5..12b81b05 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -436,6 +436,8 @@  extern void pci_remove_bus(struct phb *phb, struct list_head *list);
 extern uint8_t pci_scan_bus(struct phb *phb, uint8_t bus, uint8_t max_bus,
 			    struct list_head *list, struct pci_device *parent,
 			    bool scan_downstream);
+extern struct pci_device *pci_scan_one(struct phb *phb, struct pci_device *parent,
+				       uint16_t bdfn);
 extern void pci_add_device_nodes(struct phb *phb,
 				 struct list_head *list,
 				 struct dt_node *parent_node,