diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2009-05-05 16:29:50 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2009-05-05 16:29:50 +0000 |
commit | 2f1f2ed05b568267b1cc34c5cca890cdaa1e0e22 (patch) | |
tree | bcdf179a7b60bcf1befc755d9cf733cfcdd55748 /c/src/lib/libbsp/powerpc/shared/pci/pci.c | |
parent | 2009-05-05 Jennifer Averett <jennifer.averett@OARcorp.com> (diff) | |
download | rtems-2f1f2ed05b568267b1cc34c5cca890cdaa1e0e22.tar.bz2 |
2009-05-05 Jennifer Averett <jennifer.averett@OARcorp.com>
* shared/pci/pci.c: Removed warnings.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/pci/pci.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/pci/pci.c | 8 |
1 files changed, 5 insertions, 3 deletions
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); } |