diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-10 17:48:43 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-10 17:48:43 -0400 |
| commit | 0f166396e7e8931bb4acfd1a6ea1bd4f0b43f1dd (patch) | |
| tree | 6279fa70695a4c56b7e935018a4c0fc1dfa82e68 /arch/mips/pci/pci-lasat.c | |
| parent | 5f60cfd932b42c69ed3226400cb5eab152576c3a (diff) | |
| parent | 105b1bca4d7bed85bb296f7e7caec2fc643e9fbf (diff) | |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (62 commits)
[MIPS] PNX8550: Cleanup proc code.
[MIPS] WRPPMC: Fix build.
[MIPS] Yosemite: Fix modpost warnings.
[MIPS] Change names of local variables to silence sparse
[MIPS] SB1: Fix modpost warning.
[MIPS] PNX: Fix modpost warnings.
[MIPS] Alchemy: Fix modpost warnings.
[MIPS] Non-FPAFF: Fix warning.
[MIPS] DEC: Fix modpost warning.
[MIPS] MIPSsim: Enable MIPSsim virtual network driver.
[MIPS] Delete Ocelot 3 support.
[MIPS] remove LASAT Networks platforms support
[MIPS] Early check for SMTC kernel on non-MT processor
[MIPS] Add debugfs files to show fpuemu statistics
[MIPS] Add some debugfs files to debug unaligned accesses
[MIPS] rbtx4938: Fix secondary PCIC and glue internal NICs
[MIPS] tc35815: Load MAC address via platform_device
[MIPS] Move FPU affinity code into separate file.
[MIPS] Make ioremap() work on TX39/49 special unmapped segment
[MIPS] rbtx4938: Update and minimize defconfig
...
Diffstat (limited to 'arch/mips/pci/pci-lasat.c')
| -rw-r--r-- | arch/mips/pci/pci-lasat.c | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/arch/mips/pci/pci-lasat.c b/arch/mips/pci/pci-lasat.c deleted file mode 100644 index 985784a3e6f8..000000000000 --- a/arch/mips/pci/pci-lasat.c +++ /dev/null | |||
| @@ -1,91 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * This file is subject to the terms and conditions of the GNU General Public | ||
| 3 | * License. See the file "COPYING" in the main directory of this archive | ||
| 4 | * for more details. | ||
| 5 | * | ||
| 6 | * Copyright (C) 2000, 2001, 04 Keith M Wesolowski | ||
| 7 | */ | ||
| 8 | #include <linux/kernel.h> | ||
| 9 | #include <linux/init.h> | ||
| 10 | #include <linux/pci.h> | ||
| 11 | #include <linux/types.h> | ||
| 12 | #include <asm/bootinfo.h> | ||
| 13 | |||
| 14 | extern struct pci_ops nile4_pci_ops; | ||
| 15 | extern struct pci_ops gt64xxx_pci0_ops; | ||
| 16 | static struct resource lasat_pci_mem_resource = { | ||
| 17 | .name = "LASAT PCI MEM", | ||
| 18 | .start = 0x18000000, | ||
| 19 | .end = 0x19ffffff, | ||
| 20 | .flags = IORESOURCE_MEM, | ||
| 21 | }; | ||
| 22 | |||
| 23 | static struct resource lasat_pci_io_resource = { | ||
| 24 | .name = "LASAT PCI IO", | ||
| 25 | .start = 0x1a000000, | ||
| 26 | .end = 0x1bffffff, | ||
| 27 | .flags = IORESOURCE_IO, | ||
| 28 | }; | ||
| 29 | |||
| 30 | static struct pci_controller lasat_pci_controller = { | ||
| 31 | .mem_resource = &lasat_pci_mem_resource, | ||
| 32 | .io_resource = &lasat_pci_io_resource, | ||
| 33 | }; | ||
| 34 | |||
| 35 | static int __init lasat_pci_setup(void) | ||
| 36 | { | ||
| 37 | printk("PCI: starting\n"); | ||
| 38 | |||
| 39 | switch (mips_machtype) { | ||
| 40 | case MACH_LASAT_100: | ||
| 41 | lasat_pci_controller.pci_ops = >64xxx_pci0_ops; | ||
| 42 | break; | ||
| 43 | case MACH_LASAT_200: | ||
| 44 | lasat_pci_controller.pci_ops = &nile4_pci_ops; | ||
| 45 | break; | ||
| 46 | default: | ||
| 47 | panic("pcibios_init: mips_machtype incorrect"); | ||
| 48 | } | ||
| 49 | |||
| 50 | register_pci_controller(&lasat_pci_controller); | ||
| 51 | |||
| 52 | return 0; | ||
| 53 | } | ||
| 54 | |||
| 55 | arch_initcall(lasat_pci_setup); | ||
| 56 | |||
| 57 | #define LASATINT_ETH1 0 | ||
| 58 | #define LASATINT_ETH0 1 | ||
| 59 | #define LASATINT_HDC 2 | ||
| 60 | #define LASATINT_COMP 3 | ||
| 61 | #define LASATINT_HDLC 4 | ||
| 62 | #define LASATINT_PCIA 5 | ||
| 63 | #define LASATINT_PCIB 6 | ||
| 64 | #define LASATINT_PCIC 7 | ||
| 65 | #define LASATINT_PCID 8 | ||
| 66 | |||
| 67 | int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | ||
| 68 | { | ||
| 69 | switch (slot) { | ||
| 70 | case 1: | ||
| 71 | case 2: | ||
| 72 | case 3: | ||
| 73 | return LASATINT_PCIA + (((slot-1) + (pin-1)) % 4); | ||
| 74 | case 4: | ||
| 75 | return LASATINT_ETH1; /* Ethernet 1 (LAN 2) */ | ||
| 76 | case 5: | ||
| 77 | return LASATINT_ETH0; /* Ethernet 0 (LAN 1) */ | ||
| 78 | case 6: | ||
| 79 | return LASATINT_HDC; /* IDE controller */ | ||
| 80 | default: | ||
| 81 | return 0xff; /* Illegal */ | ||
| 82 | } | ||
| 83 | |||
| 84 | return -1; | ||
| 85 | } | ||
| 86 | |||
| 87 | /* Do platform specific device initialization at pci_enable_device() time */ | ||
| 88 | int pcibios_plat_dev_init(struct pci_dev *dev) | ||
| 89 | { | ||
| 90 | return 0; | ||
| 91 | } | ||
