]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:23:19 +0000 (10:23 +0200)
commit79ba01fdced30f413598384e41d158779b72fbcd
treeb4793714c1400203025c39296dbae1aa322eca4b
parent0dd88a810200b4dee69a60215347e6f2eb0a38b3
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