e1000: Add device IDs of blade version of the 82571 quad port
[pv_ops_mirror.git] / arch / arm / mach-ixp4xx / gateway7001-pci.c
blob6abf568322d3dda0a7bc4e0dafc8ef5041442db8
1 /*
2 * arch/arch/mach-ixp4xx/gateway7001-pci.c
4 * PCI setup routines for Gateway 7001
6 * Copyright (C) 2007 Imre Kaloz <kaloz@openwrt.org>
8 * based on coyote-pci.c:
9 * Copyright (C) 2002 Jungo Software Technologies.
10 * Copyright (C) 2003 MontaVista Softwrae, Inc.
12 * Maintainer: Imre Kaloz <kaloz@openwrt.org>
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License version 2 as
16 * published by the Free Software Foundation.
20 #include <linux/kernel.h>
21 #include <linux/pci.h>
22 #include <linux/init.h>
23 #include <linux/irq.h>
25 #include <asm/mach-types.h>
26 #include <asm/hardware.h>
28 #include <asm/mach/pci.h>
30 void __init gateway7001_pci_preinit(void)
32 set_irq_type(IRQ_IXP4XX_GPIO10, IRQT_LOW);
33 set_irq_type(IRQ_IXP4XX_GPIO11, IRQT_LOW);
35 ixp4xx_pci_preinit();
38 static int __init gateway7001_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
40 if (slot == 1)
41 return IRQ_IXP4XX_GPIO11;
42 else if (slot == 2)
43 return IRQ_IXP4XX_GPIO10;
44 else return -1;
47 struct hw_pci gateway7001_pci __initdata = {
48 .nr_controllers = 1,
49 .preinit = gateway7001_pci_preinit,
50 .swizzle = pci_std_swizzle,
51 .setup = ixp4xx_setup,
52 .scan = ixp4xx_scan_bus,
53 .map_irq = gateway7001_map_irq,
56 int __init gateway7001_pci_init(void)
58 if (machine_is_gateway7001())
59 pci_common_init(&gateway7001_pci);
60 return 0;
63 subsys_initcall(gateway7001_pci_init);