summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/pci/pci.c
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2007-04-09 14:30:49 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2007-04-09 14:30:49 +0000
commitd59cae9773321be3163e3b0d79f676f1245c3092 (patch)
treeca7e8e21ca62be955cbbeefdb617e1d6c15b6cf1 /c/src/lib/libbsp/powerpc/shared/pci/pci.c
parent2007-04-09 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-d59cae9773321be3163e3b0d79f676f1245c3092.tar.bz2
adapted BSP "motorola_powerpc" to support MVME24xx
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/pci/pci.c')
-rw-r--r--c/src/lib/libbsp/powerpc/shared/pci/pci.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/pci/pci.c b/c/src/lib/libbsp/powerpc/shared/pci/pci.c
index db2f4d9997..9f997d703f 100644
--- a/c/src/lib/libbsp/powerpc/shared/pci/pci.c
+++ b/c/src/lib/libbsp/powerpc/shared/pci/pci.c
@@ -26,6 +26,8 @@
#include <bsp/pci.h>
#include <rtems/bspIo.h>
+#undef SHOW_PCI_SETTING
+
/* allow for overriding these definitions */
#ifndef PCI_CONFIG_ADDR
#define PCI_CONFIG_ADDR 0xcf8
@@ -359,12 +361,12 @@ static int FindPCIbridge( int mybus, struct pcibridge *pb )
pci_read_config_byte(pbus, pslot, 0, PCI_PRIMARY_BUS, &buspri);
pci_read_config_byte(pbus, pslot, 0, PCI_SECONDARY_BUS, &bussec);
-#if 0
+#ifdef SHOW_PCI_SETTING
printk("pci : Found bridge at %d:0x%02x, mybus %d, pribus %d, secbus %d ",
pbus, pslot, mybus, buspri, bussec );
#endif
if ( bussec == mybus ) {
-#if 0
+#ifdef SHOW_PCI_SETTING
printk("match\n");
#endif
/* found our nearest bridge going towards the root */
@@ -373,7 +375,7 @@ static int FindPCIbridge( int mybus, struct pcibridge *pb )
return 0;
}
-#if 0
+#ifdef SHOW_PCI_SETTING
printk("no match\n");
#endif
}
@@ -417,7 +419,7 @@ void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) )
/* printk("pci : device %d:0x%02x:%i devid %04x, intpin %d, intline %d\n",
pbus, pslot, pfun, devid, int_pin, int_name ); */
-#if 0
+#ifdef SHOW_PCI_SETTING
{
unsigned short cmd,stat;
unsigned char lat, seclat, csize;