2 * linux/arch/arm/mach-shark/pci.c
4 * PCI bios-type initialisation for PCI machines
6 * Bits taken from various places.
8 #include <linux/kernel.h>
10 #include <linux/init.h>
12 #include <video/vga.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)
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
,
37 .ops
= &via82c505_ops
,
38 .preinit
= via82c505_preinit
,
41 static int __init
shark_pci_init(void)
43 if (!machine_is_shark())
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
);
57 subsys_initcall(shark_pci_init
);