Root/
1 | /* |
2 | * linux/arch/arm/mach-footbridge/ebsa285-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 | |
16 | static int irqmap_ebsa285[] __initdata = { IRQ_IN3, IRQ_IN1, IRQ_IN0, IRQ_PCI }; |
17 | |
18 | static int __init ebsa285_map_irq(struct pci_dev *dev, u8 slot, u8 pin) |
19 | { |
20 | if (dev->vendor == PCI_VENDOR_ID_CONTAQ && |
21 | dev->device == PCI_DEVICE_ID_CONTAQ_82C693) |
22 | switch (PCI_FUNC(dev->devfn)) { |
23 | case 1: return 14; |
24 | case 2: return 15; |
25 | case 3: return 12; |
26 | } |
27 | |
28 | return irqmap_ebsa285[(slot + pin) & 3]; |
29 | } |
30 | |
31 | static struct hw_pci ebsa285_pci __initdata = { |
32 | .swizzle = pci_std_swizzle, |
33 | .map_irq = ebsa285_map_irq, |
34 | .nr_controllers = 1, |
35 | .setup = dc21285_setup, |
36 | .scan = dc21285_scan_bus, |
37 | .preinit = dc21285_preinit, |
38 | .postinit = dc21285_postinit, |
39 | }; |
40 | |
41 | static int __init ebsa285_init_pci(void) |
42 | { |
43 | if (machine_is_ebsa285()) |
44 | pci_common_init(&ebsa285_pci); |
45 | return 0; |
46 | } |
47 | |
48 | subsys_initcall(ebsa285_init_pci); |
49 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9