From 07e5a0e884f7c814b5bd35d115cf40bb0bdf002a Mon Sep 17 00:00:00 2001 From: Daniel Hellstrom Date: Tue, 7 Apr 2015 16:19:39 +0200 Subject: LIBPCI: clean-up pci_for_each_child() search arg --- cpukit/libpci/pci/cfg.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit/libpci') diff --git a/cpukit/libpci/pci/cfg.h b/cpukit/libpci/pci/cfg.h index 592f3649e3..e0cb125ff6 100644 --- a/cpukit/libpci/pci/cfg.h +++ b/cpukit/libpci/pci/cfg.h @@ -69,6 +69,10 @@ struct pci_res; /* Resource: BAR, ROM or Bridge Window */ /* The Host Bridge and all subdevices (the PCI RAM data structure) */ extern struct pci_bus pci_hb; +/* Arguments for pci_for_each_child() search option */ +#define SEARCH_CHILDREN 0 /* direct children of bus only */ +#define SEARCH_DEPTH 1 /* all children of bus */ + /* Iterate over all PCI devices on a bus (see search options) and call func(), * iteration is stopped if a non-zero value is returned by func(). * @@ -82,7 +86,6 @@ extern struct pci_bus pci_hb; * 0 All PCI devices were processed, func() returned 0 on every call * X func() returned non-zero X value, the search was stopped */ -#define SEARCH_DEPTH 1 extern int pci_for_each_child( struct pci_bus *bus, int (*func)(struct pci_dev *, void *arg), -- cgit v1.2.3