import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / arch / mips / lasat / pci.c
1 #include <linux/config.h>
2 #include <linux/kernel.h>
3 #include <linux/init.h>
4 #include <linux/pci.h>
5 #include <asm/bootinfo.h>
6
7 extern struct pci_ops nile4_pci_ops;
8 extern struct pci_ops gt64120_pci_ops;
9
10 void __init pcibios_init(void)
11 {
12         struct pci_ops *pci_ops;
13
14         switch (mips_machtype) {
15         case MACH_LASAT_100:
16                 pci_ops = &gt64120_pci_ops;
17                 break;
18         case MACH_LASAT_200:
19                 pci_ops = &nile4_pci_ops;
20                 break;
21         default:
22                 panic("pcibios_init: mips_machtype incorrect");
23         }
24
25         pci_scan_bus(0, pci_ops, NULL);
26 }
27
28 void __init pcibios_fixup_bus(struct pci_bus *b)
29 {
30 }
31
32 unsigned __init int pcibios_assign_all_busses(void)
33 {
34         return 1;
35 }
36
37 struct pci_fixup pcibios_fixups[] = {
38         { 0 }
39 };