forked from Imagelibrary/rtems
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:
@@ -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>
|
2007-03-31 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* pci/detect_host_bridge.c, pci/pci.c, pci/pcifinddevice.c:
|
* pci/detect_host_bridge.c, pci/pci.c, pci/pcifinddevice.c:
|
||||||
|
|||||||
@@ -34,8 +34,8 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define PCI_DEBUG 0
|
/* #define PCI_DEBUG 1 */
|
||||||
#define PCI_PRINT 0
|
/* #define PCI_PRINT 1 */
|
||||||
|
|
||||||
/* allow for overriding these definitions */
|
/* allow for overriding these definitions */
|
||||||
#ifndef PCI_CONFIG_ADDR
|
#ifndef PCI_CONFIG_ADDR
|
||||||
@@ -254,6 +254,10 @@ int pci_initialize()
|
|||||||
unsigned char ucBusNumber, ucSlotNumber, ucFnNumber, ucNumFuncs;
|
unsigned char ucBusNumber, ucSlotNumber, ucFnNumber, ucNumFuncs;
|
||||||
uint32_t ulHeader;
|
uint32_t ulHeader;
|
||||||
uint32_t pcidata, ulClass, ulDeviceID;
|
uint32_t pcidata, ulClass, ulDeviceID;
|
||||||
|
#if PCI_DEBUG
|
||||||
|
uint16_t sdata;
|
||||||
|
uint32_t data;
|
||||||
|
#endif
|
||||||
|
|
||||||
pci_interface();
|
pci_interface();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user