]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: pci: Add a way to iterate through all PCI devices
authorSimon Glass <sjg@chromium.org>
Mon, 10 Aug 2015 13:05:04 +0000 (07:05 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 14 Aug 2015 09:24:21 +0000 (03:24 -0600)
commit76c3fbcd3db61b9a3d9c38b0c18968322c5b1588
treef249db33f5aab55cca438a4eac045d96b6560d3d
parent66afb4ed924693412f2f4e05fbfae6a642159402
dm: pci: Add a way to iterate through all PCI devices

These functions allow iteration through all PCI devices including bridges.
The children of each PCI bus are returned in turn. This can be useful for
configuring, checking or enumerating all the devices.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c
include/pci.h