summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-02-24 22:52:16 +0100
committerWolfgang Denk <wd@denx.de>2009-02-24 22:52:16 +0100
commit89e372cd3d520ed20fab543f2cbba2dbb9490cf8 (patch)
tree38ae9f69a9e091ace6ae531cd71830662eccc2e6 /drivers
parentbd76729bcbfd64b5d016a9b936f058931fc06eaf (diff)
parent7e91558032a0c1932dd7f4f562f9c7cc55efc496 (diff)
downloadu-boot-imx-89e372cd3d520ed20fab543f2cbba2dbb9490cf8.zip
u-boot-imx-89e372cd3d520ed20fab543f2cbba2dbb9490cf8.tar.gz
u-boot-imx-89e372cd3d520ed20fab543f2cbba2dbb9490cf8.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pci.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index fffca49..d6d2d6e 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -165,6 +165,19 @@ struct pci_controller *pci_bus_to_hose (int bus)
return NULL;
}
+int pci_last_busno(void)
+{
+ struct pci_controller *hose = hose_head;
+
+ if (!hose)
+ return -1;
+
+ while (hose->next)
+ hose = hose->next;
+
+ return hose->last_busno;
+}
+
#ifndef CONFIG_IXP425
pci_dev_t pci_find_devices(struct pci_device_id *ids, int index)
{