From cc2a8c7751ddbae3116660064f446888538b93e9 Mon Sep 17 00:00:00 2001 From: Anton Vorontsov Date: Thu, 19 Feb 2009 18:20:41 +0300 Subject: 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 Signed-off-by: Kim Phillips --- include/pci.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/pci.h') diff --git a/include/pci.h b/include/pci.h index d0594e316..aaa455434 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 -- cgit v1.2.3