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>
13 #include <asm/mach/pci.h>
14 #include <asm/mach-types.h>
16 static int __init
shark_map_irq(struct pci_dev
*dev
, u8 slot
, u8 pin
)
18 if (dev
->bus
->number
== 0)
27 extern void __init
via82c505_preinit(void);
29 static struct hw_pci shark_pci __initdata
= {
30 .setup
= via82c505_setup
,
31 .swizzle
= pci_std_swizzle
,
32 .map_irq
= shark_map_irq
,
34 .scan
= via82c505_scan_bus
,
35 .preinit
= via82c505_preinit
,
38 static int __init
shark_pci_init(void)
40 if (machine_is_shark())
41 pci_common_init(&shark_pci
);
45 subsys_initcall(shark_pci_init
);