summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/pci/pcifinddevice.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-07-18 15:52:57 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-07-18 15:52:57 +0000
commit35f93740979fc3bffefb22f99f3ebe2ae05f86c2 (patch)
tree71fde12a6d8a768703e50fbc2ed433767e469084 /c/src/lib/libbsp/powerpc/shared/pci/pcifinddevice.c
parent2003-07-16 Greg Menke <gregory.menke@gsfc.nasa.gov> (diff)
downloadrtems-35f93740979fc3bffefb22f99f3ebe2ae05f86c2.tar.bz2
2003-07-16 Greg Menke <gregory.menke@gsfc.nasa.gov>
PR 428/bsps PR 432/bsps * bootloader/pci.c: Re-instated code that prevents remapping small IO regions, which if remapped would cause i8259 registers to move out from under the #define'd base addresses. * startup/bspstart.c: Reduced BAT2 PCI memory allocation to 256 megs, I incorrectly had extended it which would cause problems with PCI devices that defined prefetchable memory.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/pci/pcifinddevice.c')
-rw-r--r--c/src/lib/libbsp/powerpc/shared/pci/pcifinddevice.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/pci/pcifinddevice.c b/c/src/lib/libbsp/powerpc/shared/pci/pcifinddevice.c
index 4414c5755e..6ba8d9cc05 100644
--- a/c/src/lib/libbsp/powerpc/shared/pci/pcifinddevice.c
+++ b/c/src/lib/libbsp/powerpc/shared/pci/pcifinddevice.c
@@ -14,12 +14,12 @@
#include <rtems/bspIo.h>
int
-BSP_pciFindDevice(unsigned short vendorid, unsigned short deviceid,
- int instance, int *pbus, int *pdev, int *pfun)
+BSP_pciFindDevice( unsigned short vendorid, unsigned short deviceid,
+ int instance, int *pbus, int *pdev, int *pfun )
{
-unsigned int d;
-unsigned short s;
-unsigned char bus,dev,fun,hd;
+ unsigned int d;
+ unsigned short s;
+ unsigned char bus,dev,fun,hd;
for (bus=0; bus<BusCountPCI(); bus++) {
for (dev=0; dev<PCI_MAX_DEVICES; dev++) {
@@ -53,3 +53,5 @@ unsigned char bus,dev,fun,hd;
}
return -1;
}
+
+/* eof */