Staging: Panel: panel: Fixed checkpatch line length warnings
[linux/fpc-iii.git] / arch / arm / mach-shark / pci.c
blob6d91a914c1dd794af1b78168adf051da28fd1c78
1 /*
2 * linux/arch/arm/mach-shark/pci.c
4 * PCI bios-type initialisation for PCI machines
6 * Bits taken from various places.
7 */
8 #include <linux/kernel.h>
9 #include <linux/pci.h>
10 #include <linux/init.h>
11 #include <linux/io.h>
12 #include <video/vga.h>
14 #include <asm/irq.h>
15 #include <asm/mach/pci.h>
16 #include <asm/mach-types.h>
18 #define IO_START 0x40000000
20 static int __init shark_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
22 if (dev->bus->number == 0)
23 if (dev->devfn == 0)
24 return 255;
25 else
26 return 11;
27 else
28 return 255;
31 extern void __init via82c505_preinit(void);
33 static struct hw_pci shark_pci __initdata = {
34 .setup = via82c505_setup,
35 .map_irq = shark_map_irq,
36 .nr_controllers = 1,
37 .ops = &via82c505_ops,
38 .preinit = via82c505_preinit,
41 static int __init shark_pci_init(void)
43 if (!machine_is_shark())
44 return -ENODEV;
46 pcibios_min_io = 0x6000;
47 pcibios_min_mem = 0x50000000;
48 vga_base = 0xe8000000;
50 pci_ioremap_io(0, IO_START);
52 pci_common_init(&shark_pci);
54 return 0;
57 subsys_initcall(shark_pci_init);