aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shark/pci.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/arm/mach-shark/pci.c
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'arch/arm/mach-shark/pci.c')
-rw-r--r--arch/arm/mach-shark/pci.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/arm/mach-shark/pci.c b/arch/arm/mach-shark/pci.c
new file mode 100644
index 000000000000..37a7112d4117
--- /dev/null
+++ b/arch/arm/mach-shark/pci.c
@@ -0,0 +1,42 @@
1/*
2 * linux/arch/arm/mach-shark/pci.c
3 *
4 * PCI bios-type initialisation for PCI machines
5 *
6 * Bits taken from various places.
7 */
8#include <linux/kernel.h>
9#include <linux/pci.h>
10#include <linux/init.h>
11
12#include <asm/irq.h>
13#include <asm/mach/pci.h>
14#include <asm/mach-types.h>
15
16static int __init shark_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
17{
18 if (dev->bus->number == 0)
19 if (dev->devfn == 0) return 255;
20 else return 11;
21 else return 255;
22}
23
24extern void __init via82c505_preinit(void);
25
26static struct hw_pci shark_pci __initdata = {
27 .setup = via82c505_setup,
28 .swizzle = pci_std_swizzle,
29 .map_irq = shark_map_irq,
30 .nr_controllers = 1,
31 .scan = via82c505_scan_bus,
32 .preinit = via82c505_preinit,
33};
34
35static int __init shark_pci_init(void)
36{
37 if (machine_is_shark())
38 pci_common_init(&shark_pci);
39 return 0;
40}
41
42subsys_initcall(shark_pci_init);