From: Stuart Yoder Date: Thu, 10 Mar 2016 16:52:18 +0000 (-0600) Subject: pci: make pci_get_hose_head() available to external users X-Git-Tag: v2016.05-rc1~230^2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eeb5b1ad828dfccf51831c87a10cabf6c564a2a2;p=u-boot pci: make pci_get_hose_head() available to external users Put pci_get_hose_head() prototype in header so it is available to external users, allowing them to find and iterate over all pci controllers. Signed-off-by: Stuart Yoder Reviewed-by: York Sun --- diff --git a/include/pci.h b/include/pci.h index 87de7ab715..d3c955eb80 100644 --- a/include/pci.h +++ b/include/pci.h @@ -700,6 +700,7 @@ extern void *pci_map_bar(pci_dev_t pdev, int bar, int flags); extern void pci_register_hose(struct pci_controller* hose); extern struct pci_controller* pci_bus_to_hose(int bus); extern struct pci_controller *find_hose_by_cfg_addr(void *cfg_addr); +extern struct pci_controller *pci_get_hose_head(void); extern int pci_skip_dev(struct pci_controller *hose, pci_dev_t dev); extern int pci_hose_scan(struct pci_controller *hose);