3 * arch/mips/vr41xx/tanbac-tb0229/pci_fixup.c
5 * BRIEF MODULE DESCRIPTION
6 * The TANBAC TB0229(VR4131DIMM) specific PCI fixups.
8 * Copyright 2003 Megasolution Inc.
9 * matsu@megasolution.jp
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at your
14 * option) any later version.
16 #include <linux/config.h>
17 #include <linux/init.h>
18 #include <linux/pci.h>
20 #include <asm/vr41xx/tb0229.h>
22 void __init
pcibios_fixup_resources(struct pci_dev
*dev
)
26 void __init
pcibios_fixup(void)
30 void __init
pcibios_fixup_irqs(void)
32 #ifdef CONFIG_TANBAC_TB0219
36 pci_for_each_dev(dev
) {
37 slot
= PCI_SLOT(dev
->devfn
);
42 vr41xx_set_irq_trigger(TB0219_PCI_SLOT1_PIN
,
45 vr41xx_set_irq_level(TB0219_PCI_SLOT1_PIN
,
47 dev
->irq
= TB0219_PCI_SLOT1_IRQ
;
50 vr41xx_set_irq_trigger(TB0219_PCI_SLOT2_PIN
,
53 vr41xx_set_irq_level(TB0219_PCI_SLOT2_PIN
,
55 dev
->irq
= TB0219_PCI_SLOT2_IRQ
;
58 vr41xx_set_irq_trigger(TB0219_PCI_SLOT3_PIN
,
61 vr41xx_set_irq_level(TB0219_PCI_SLOT3_PIN
,
63 dev
->irq
= TB0219_PCI_SLOT3_IRQ
;
69 pci_write_config_byte(dev
, PCI_INTERRUPT_LINE
, dev
->irq
);
74 unsigned int pcibios_assign_all_busses(void)