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
15static int __init shark_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
16{
17	if (dev->bus->number == 0)
18		if (dev->devfn == 0) return 255;
19		else return 11;
20	else return 6;
21}
22
23struct hw_pci shark_pci __initdata = {
24	init: via82c505_init,
25	swizzle: no_swizzle,
26	map_irq: shark_map_irq
27};
28