diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-04-01 15:38:30 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-04-01 15:38:30 +0000 |
commit | f056a6e8daddf86965bd1287bcb001c3a4d5f6ea (patch) | |
tree | 6878fc3305fc805c65d8b2882bc9e671e357602e /c/src/lib | |
parent | 2007-04-01 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-f056a6e8daddf86965bd1287bcb001c3a4d5f6ea.tar.bz2 |
2007-04-01 Joel Sherrill <joel@OARcorp.com>
PR 1235/bsps
* pci/pci.c: Add conditional declaration of variables used in debug
printk's.
Diffstat (limited to 'c/src/lib')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mvme5500/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog b/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog index 906b5f6251..acb0b2daaf 100644 --- a/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog +++ b/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog @@ -1,3 +1,9 @@ +2007-04-01 Joel Sherrill <joel@OARcorp.com> + + PR 1235/bsps + * pci/pci.c: Add conditional declaration of variables used in debug + printk's. + 2007-03-31 Ralf Corsépius <ralf.corsepius@rtems.org> * pci/detect_host_bridge.c, pci/pci.c, pci/pcifinddevice.c: diff --git a/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c b/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c index b929f18d11..79a2a464a8 100644 --- a/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c +++ b/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c @@ -34,8 +34,8 @@ #include <stdio.h> #include <string.h> -#define PCI_DEBUG 0 -#define PCI_PRINT 0 +/* #define PCI_DEBUG 1 */ +/* #define PCI_PRINT 1 */ /* allow for overriding these definitions */ #ifndef PCI_CONFIG_ADDR @@ -254,6 +254,10 @@ int pci_initialize() unsigned char ucBusNumber, ucSlotNumber, ucFnNumber, ucNumFuncs; uint32_t ulHeader; uint32_t pcidata, ulClass, ulDeviceID; +#if PCI_DEBUG + uint16_t sdata; + uint32_t data; +#endif pci_interface(); |