diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-07 16:19:39 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-17 01:10:27 +0200 |
commit | 07e5a0e884f7c814b5bd35d115cf40bb0bdf002a (patch) | |
tree | f402411221da34fce733ecf131015fcdb24f4c64 /cpukit | |
parent | LIBPCI: remove $Id in makefile.am (diff) | |
download | rtems-07e5a0e884f7c814b5bd35d115cf40bb0bdf002a.tar.bz2 |
LIBPCI: clean-up pci_for_each_child() search arg
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/libpci/pci/cfg.h | 5 |
1 files changed, 4 insertions, 1 deletions
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), |