summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-01 15:38:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-01 15:38:30 +0000
commitf056a6e8daddf86965bd1287bcb001c3a4d5f6ea (patch)
tree6878fc3305fc805c65d8b2882bc9e671e357602e /c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c
parent2007-04-01 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-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/libbsp/powerpc/mvme5500/pci/pci.c')
-rw-r--r--c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c8
1 files changed, 6 insertions, 2 deletions
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();