Files
rtems/cpukit/libpci/pci_for_each_dev.c
2015-04-17 01:10:28 +02:00

18 lines
425 B
C

/* PCI Help function, iterate all PCI devices.
*
* COPYRIGHT (c) 2010 Cobham Gaisler AB.
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#include <pci/cfg.h>
int pci_for_each_dev(
int (*func)(struct pci_dev *, void *arg),
void *arg)
{
return pci_for_each_child(&pci_hb, func, arg, SEARCH_DEPTH);
}