aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/drivers/pci/fixups-lboxre2.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-04-20 21:17:10 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-04-20 21:17:10 +0900
commit84972ec0c206b73ffb74e5114b574186ce6166b8 (patch)
tree24ef4ada49ee0515269a4307f84ce75ac97401a7 /arch/sh/drivers/pci/fixups-lboxre2.c
parent757e3c16f8bafa2a470aebf9b04671c5d4d18f49 (diff)
sh: pci: Rename SH7751 platform ops files to fixups.
None of these contain pci_ops, only IRQ routing bits, rename them accordingly. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/fixups-lboxre2.c')
-rw-r--r--arch/sh/drivers/pci/fixups-lboxre2.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/sh/drivers/pci/fixups-lboxre2.c b/arch/sh/drivers/pci/fixups-lboxre2.c
new file mode 100644
index 00000000000..6db2c209737
--- /dev/null
+++ b/arch/sh/drivers/pci/fixups-lboxre2.c
@@ -0,0 +1,23 @@
+/*
+ * linux/arch/sh/drivers/pci/ops-lboxre2.c
+ *
+ * Copyright (C) 2007 Nobuhiro Iwamatsu
+ *
+ * PCI initialization for the NTT COMWARE L-BOX RE2
+ */
+#include <linux/kernel.h>
+#include <linux/types.h>
+#include <linux/init.h>
+#include <linux/pci.h>
+#include <linux/io.h>
+#include <mach/lboxre2.h>
+#include "pci-sh4.h"
+
+static char lboxre2_irq_tab[] __initdata = {
+ IRQ_ETH0, IRQ_ETH1, IRQ_INTA, IRQ_INTD,
+};
+
+int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin)
+{
+ return lboxre2_irq_tab[slot];
+}