mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
741a1ea973
commit
cc2a8c7751
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue