summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/pci/pci.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2005-05-04 19:33:46 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2005-05-04 19:33:46 +0000
commit548ed3f040e6bb39480b052742e0b7e012385141 (patch)
treefe5ecf9c8deb298d9794de1d2be495e2a793411d /c/src/lib/libbsp/powerpc/shared/pci/pci.c
parent2005-05-04 Jennifer Averett <jennifer.averett@oarcorp.com> (diff)
downloadrtems-548ed3f040e6bb39480b052742e0b7e012385141.tar.bz2
2005-05-04 Jennifer Averett <jennifer.averett@oarcorp.com>
* irq/irq_init.c, pci/pci.c, pci/pcifinddevice.c, startup/bspstart.c: Name change to support common PCI interface
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/pci/pci.c')
-rw-r--r--c/src/lib/libbsp/powerpc/shared/pci/pci.c6
1 files changed, 3 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 8036d35455..67268ea1cb 100644
--- a/c/src/lib/libbsp/powerpc/shared/pci/pci.c
+++ b/c/src/lib/libbsp/powerpc/shared/pci/pci.c
@@ -332,7 +332,7 @@ static int FindPCIbridge( int mybus, struct pcibridge *pb )
uint8_t bussec, buspri;
uint16_t devid, vendorid, dclass;
- for(pbus=0; pbus< BusCountPCI(); pbus++) {
+ for(pbus=0; pbus< pci_bus_count(); pbus++) {
for(pslot=0; pslot< PCI_MAX_DEVICES; pslot++) {
pci_read_config_word(pbus, pslot, 0, PCI_DEVICE_ID, &devid);
if ( devid == 0xffff ) continue;
@@ -382,7 +382,7 @@ void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) )
* trivially use INTERRUPT_NAME to hook up with devices.
*/
- for (pbus=0; pbus< BusCountPCI(); pbus++) {
+ for (pbus=0; pbus< pci_bus_count(); pbus++) {
for (pslot=0; pslot< PCI_MAX_DEVICES; pslot++) {
pci_read_config_word(pbus, pslot, 0, PCI_DEVICE_ID, &devid);
if ( devid == 0xffff ) continue;
@@ -608,7 +608,7 @@ int pci_initialize()
/*
* Return the number of PCI busses in the system
*/
-unsigned char BusCountPCI()
+unsigned char pci_bus_count()
{
return (ucMaxPCIBus+1);
}