summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2009-05-05 16:29:50 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2009-05-05 16:29:50 +0000
commit2f1f2ed05b568267b1cc34c5cca890cdaa1e0e22 (patch)
treebcdf179a7b60bcf1befc755d9cf733cfcdd55748 /c
parent2009-05-05 Jennifer Averett <jennifer.averett@OARcorp.com> (diff)
downloadrtems-2f1f2ed05b568267b1cc34c5cca890cdaa1e0e22.tar.bz2
2009-05-05 Jennifer Averett <jennifer.averett@OARcorp.com>
* shared/pci/pci.c: Removed warnings.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/powerpc/ChangeLog4
-rw-r--r--c/src/lib/libbsp/powerpc/shared/pci/pci.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/powerpc/ChangeLog b/c/src/lib/libbsp/powerpc/ChangeLog
index b56963c0d5..095eaa38dd 100644
--- a/c/src/lib/libbsp/powerpc/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-05 Jennifer Averett <jennifer.averett@OARcorp.com>
+
+ * shared/pci/pci.c: Removed warnings.
+
2009-04-28 Chris Johns <chrisj@rtems.org>
* shared/start/start.S: Update for boot_card command line change.
diff --git a/c/src/lib/libbsp/powerpc/shared/pci/pci.c b/c/src/lib/libbsp/powerpc/shared/pci/pci.c
index 57d4192e1c..973f5d7bb8 100644
--- a/c/src/lib/libbsp/powerpc/shared/pci/pci.c
+++ b/c/src/lib/libbsp/powerpc/shared/pci/pci.c
@@ -54,6 +54,9 @@
#define PCI_CONFIG_SET_ADDR(addr, bus, slot,function,offset) \
PCI_CONFIG_WR_ADDR((addr), PCI_CONFIG_ADDR_VAL((bus), (slot), (function), (offset)))
+
+extern void detect_host_bridge(void);
+
/*
* Bit encode for PCI_CONFIG_HEADER_TYPE register
*/
@@ -583,9 +586,8 @@ donesearch:
/*
* This routine determines the maximum bus number in the system
*/
-int pci_initialize()
+int pci_initialize(void)
{
- extern void detect_host_bridge();
unsigned char ucSlotNumber, ucFnNumber, ucNumFuncs;
unsigned char ucHeader;
unsigned char ucMaxSubordinate;
@@ -637,7 +639,7 @@ int pci_initialize()
/*
* Return the number of PCI busses in the system
*/
-unsigned char pci_bus_count()
+unsigned char pci_bus_count(void)
{
return (ucMaxPCIBus+1);
}