diff options
author | Stuart Yoder | 2016-03-10 10:52:18 -0600 |
---|---|---|
committer | York Sun | 2016-03-21 12:42:12 -0700 |
commit | eeb5b1ad828dfccf51831c87a10cabf6c564a2a2 (patch) | |
tree | fc1e898d5357eaf666f0a618c8e189fe4eadcd40 /include/pci.h | |
parent | 029a407dae8d48413029d37ad7154df15bcdd632 (diff) |
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 <stuart.yoder@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r-- | include/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h index 87de7ab715b..d3c955eb801 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); |