2007-04-01 Joel Sherrill <joel@OARcorp.com>

PR 1235/bsps
	* pci/pci.c: Add conditional declaration of variables used in debug
	printk's.
This commit is contained in:
Joel Sherrill
2007-04-01 15:38:30 +00:00
parent 513b327b1e
commit f056a6e8da
2 changed files with 12 additions and 2 deletions

View File

@@ -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:

View File

@@ -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();