patch-2.4.22 linux-2.4.22/arch/mips/lasat/pci.c
Next file: linux-2.4.22/arch/mips/lasat/picvue.c
Previous file: linux-2.4.22/arch/mips/lasat/lasat_models.h
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/mips/lasat/pci.c
- Orig date:
1969-12-31 16:00:00.000000000 -0800
diff -urN linux-2.4.21/arch/mips/lasat/pci.c linux-2.4.22/arch/mips/lasat/pci.c
@@ -0,0 +1,39 @@
+#include <linux/config.h>
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/pci.h>
+#include <asm/bootinfo.h>
+
+extern struct pci_ops nile4_pci_ops;
+extern struct pci_ops gt64120_pci_ops;
+
+void __init pcibios_init(void)
+{
+ struct pci_ops *pci_ops;
+
+ switch (mips_machtype) {
+ case MACH_LASAT_100:
+ pci_ops = >64120_pci_ops;
+ break;
+ case MACH_LASAT_200:
+ pci_ops = &nile4_pci_ops;
+ break;
+ default:
+ panic("pcibios_init: mips_machtype incorrect");
+ }
+
+ pci_scan_bus(0, pci_ops, NULL);
+}
+
+void __init pcibios_fixup_bus(struct pci_bus *b)
+{
+}
+
+unsigned __init int pcibios_assign_all_busses(void)
+{
+ return 1;
+}
+
+struct pci_fixup pcibios_fixups[] = {
+ { 0 }
+};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)