patch-2.3.16 linux/arch/ppc/kernel/chrp_pci.c
Next file: linux/arch/ppc/kernel/chrp_setup.c
Previous file: linux/arch/ppc/kernel/apus_setup.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Tue Aug 31 11:36:43 1999
- Orig file:
v2.3.15/linux/arch/ppc/kernel/chrp_pci.c
- Orig date:
Mon Jul 12 15:12:55 1999
diff -u --recursive --new-file v2.3.15/linux/arch/ppc/kernel/chrp_pci.c linux/arch/ppc/kernel/chrp_pci.c
@@ -279,8 +279,7 @@
if ( !strncmp("IBM", get_property(find_path_device("/"),
"name", NULL),3) )
{
- pci_scan_peer_bridge(1);
- pci_scan_peer_bridge(2);
+
}
/* PCI interrupts are controlled by the OpenPIC */
@@ -290,22 +289,22 @@
dev->irq = openpic_to_irq( dev->irq );
/* adjust the io_port for the NCR cards for busses other than 0 -- Cort */
if ( (dev->bus->number > 0) && (dev->vendor == PCI_VENDOR_ID_NCR) )
- dev->base_address[0] += (dev->bus->number*0x08000000);
+ dev->resource[0].start += (dev->bus->number*0x08000000);
/* these need to be absolute addrs for OF and Matrox FB -- Cort */
if ( dev->vendor == PCI_VENDOR_ID_MATROX )
{
- if ( dev->base_address[0] < isa_mem_base )
- dev->base_address[0] += isa_mem_base;
- if ( dev->base_address[1] < isa_mem_base )
- dev->base_address[1] += isa_mem_base;
+ if ( dev->resource[0].start < isa_mem_base )
+ dev->resource[0].start += isa_mem_base;
+ if ( dev->resource[1].start < isa_mem_base )
+ dev->resource[1].start += isa_mem_base;
}
/* the F50 identifies the amd as a trident */
if ( (dev->vendor == PCI_VENDOR_ID_TRIDENT) &&
- (dev->class == PCI_CLASS_NETWORK_ETHERNET) )
+ (dev->class>>8 == PCI_CLASS_NETWORK_ETHERNET) )
{
dev->vendor = PCI_VENDOR_ID_AMD;
- pcibios_write_config_word(dev->bus->number, dev->devfn,
- PCI_VENDOR_ID, PCI_VENDOR_ID_AMD);
+ pcibios_write_config_word(dev->bus->number,
+ dev->devfn, PCI_VENDOR_ID, PCI_VENDOR_ID_AMD);
}
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)