diff options
Diffstat (limited to 'arch/sh/drivers/pci/fixups-titan.c')
-rw-r--r-- | arch/sh/drivers/pci/fixups-titan.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/sh/drivers/pci/fixups-titan.c b/arch/sh/drivers/pci/fixups-titan.c new file mode 100644 index 000000000000..3a79fa8254a6 --- /dev/null +++ b/arch/sh/drivers/pci/fixups-titan.c | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * arch/sh/drivers/pci/ops-titan.c | ||
3 | * | ||
4 | * Ported to new API by Paul Mundt <lethal@linux-sh.org> | ||
5 | * | ||
6 | * Modified from ops-snapgear.c written by David McCullough | ||
7 | * Highly leveraged from pci-bigsur.c, written by Dustin McIntire. | ||
8 | * | ||
9 | * May be copied or modified under the terms of the GNU General Public | ||
10 | * License. See linux/COPYING for more information. | ||
11 | * | ||
12 | * PCI initialization for the Titan boards | ||
13 | */ | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/types.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <linux/pci.h> | ||
18 | #include <linux/io.h> | ||
19 | #include <mach/titan.h> | ||
20 | #include "pci-sh4.h" | ||
21 | |||
22 | static char titan_irq_tab[] __initdata = { | ||
23 | TITAN_IRQ_WAN, | ||
24 | TITAN_IRQ_LAN, | ||
25 | TITAN_IRQ_MPCIA, | ||
26 | TITAN_IRQ_MPCIB, | ||
27 | TITAN_IRQ_USB, | ||
28 | }; | ||
29 | |||
30 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | ||
31 | { | ||
32 | int irq = titan_irq_tab[slot]; | ||
33 | |||
34 | printk("PCI: Mapping TITAN IRQ for slot %d, pin %c to irq %d\n", | ||
35 | slot, pin - 1 + 'A', irq); | ||
36 | |||
37 | return irq; | ||
38 | } | ||