diff options
author | Wolfgang Denk <wd@denx.de> | 2009-02-24 22:52:16 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-02-24 22:52:16 +0100 |
commit | 89e372cd3d520ed20fab543f2cbba2dbb9490cf8 (patch) | |
tree | 38ae9f69a9e091ace6ae531cd71830662eccc2e6 /drivers | |
parent | bd76729bcbfd64b5d016a9b936f058931fc06eaf (diff) | |
parent | 7e91558032a0c1932dd7f4f562f9c7cc55efc496 (diff) | |
download | u-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.c | 13 |
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) { |