forked from Imagelibrary/rtems
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
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
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
|
||||
|
||||
2005-04-26 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* console/uart.h: Eliminate tabs.
|
||||
|
||||
@@ -159,7 +159,7 @@ void VIA_isa_bridge_interrupts_setup(void)
|
||||
unsigned char maxBus;
|
||||
unsigned found = 0;
|
||||
|
||||
maxBus = BusCountPCI();
|
||||
maxBus = pci_bus_count();
|
||||
pci_dev.function = 0; /* Assumes the bidge is the first function */
|
||||
|
||||
for (pci_dev.bus = 0; pci_dev.bus < maxBus; pci_dev.bus++) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ pci_find_device(
|
||||
unsigned short s;
|
||||
unsigned char bus,dev,fun,hd;
|
||||
|
||||
for (bus=0; bus<BusCountPCI(); bus++) {
|
||||
for (bus=0; bus<pci_bus_count(); bus++) {
|
||||
for (dev=0; dev<PCI_MAX_DEVICES; dev++) {
|
||||
|
||||
pci_read_config_byte(bus,dev,0, PCI_HEADER_TYPE, &hd);
|
||||
|
||||
@@ -413,7 +413,7 @@ void bsp_start( void )
|
||||
}
|
||||
|
||||
#ifdef SHOW_MORE_INIT_SETTINGS
|
||||
printk("Number of PCI buses found is : %d\n", BusCountPCI());
|
||||
printk("Number of PCI buses found is : %d\n", pci_bus_count());
|
||||
#endif
|
||||
#ifdef TEST_RAW_EXCEPTION_CODE
|
||||
printk("Testing exception handling Part 1\n");
|
||||
|
||||
Reference in New Issue
Block a user