2 * linux/arch/arm/mach-footbridge/ebsa285-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 irqmap_ebsa285
[] __initdata
= { IRQ_IN3
, IRQ_IN1
, IRQ_IN0
, IRQ_PCI
};
18 static int __init
ebsa285_map_irq(const struct pci_dev
*dev
, u8 slot
, u8 pin
)
20 if (dev
->vendor
== PCI_VENDOR_ID_CONTAQ
&&
21 dev
->device
== PCI_DEVICE_ID_CONTAQ_82C693
)
22 switch (PCI_FUNC(dev
->devfn
)) {
28 return irqmap_ebsa285
[(slot
+ pin
) & 3];
31 static struct hw_pci ebsa285_pci __initdata
= {
32 .map_irq
= ebsa285_map_irq
,
35 .setup
= dc21285_setup
,
36 .preinit
= dc21285_preinit
,
37 .postinit
= dc21285_postinit
,
40 static int __init
ebsa285_init_pci(void)
42 if (machine_is_ebsa285())
43 pci_common_init(&ebsa285_pci
);
47 subsys_initcall(ebsa285_init_pci
);