Root/
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 | |
16 | static 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) |
20 | return 255; |
21 | else |
22 | return 11; |
23 | else |
24 | return 255; |
25 | } |
26 | |
27 | extern void __init via82c505_preinit(void); |
28 | |
29 | static struct hw_pci shark_pci __initdata = { |
30 | .setup = via82c505_setup, |
31 | .swizzle = pci_std_swizzle, |
32 | .map_irq = shark_map_irq, |
33 | .nr_controllers = 1, |
34 | .scan = via82c505_scan_bus, |
35 | .preinit = via82c505_preinit, |
36 | }; |
37 | |
38 | static int __init shark_pci_init(void) |
39 | { |
40 | if (machine_is_shark()) |
41 | pci_common_init(&shark_pci); |
42 | return 0; |
43 | } |
44 | |
45 | subsys_initcall(shark_pci_init); |
46 |
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