summaryrefslogtreecommitdiffstats
path: root/include/pci.h
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2009-02-19 18:20:41 +0300
committerKim Phillips <kim.phillips@freescale.com>2009-02-23 15:51:10 -0600
commitcc2a8c7751ddbae3116660064f446888538b93e9 (patch)
treeba61cef3f050c33d99558d99da8e56e773413e0b /include/pci.h
parent741a1ea97335c88747a2de6677b92458d6ada00b (diff)
downloadtalos-obmc-uboot-cc2a8c7751ddbae3116660064f446888538b93e9.tar.gz
talos-obmc-uboot-cc2a8c7751ddbae3116660064f446888538b93e9.zip
PCI: Add pci_last_busno() helper
This is just a handy routine that reports last PCI busno: we walk down all the hoses and return last hose's last_busno. Will be used by PCI/PCIe initialization code. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h
index d0594e316c..aaa4554344 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -535,6 +535,8 @@ extern int pci_hose_config_device(struct pci_controller *hose,
pci_addr_t mem,
unsigned long command);
+int pci_last_busno(void);
+
#ifdef CONFIG_MPC824X
extern void pci_mpc824x_init (struct pci_controller *hose);
#endif
OpenPOWER on IntegriCloud