3 * arch/mips/vr41xx/tanbac-tb0226/pci_fixup.c
5 * BRIEF MODULE DESCRIPTION
6 * The TANBAC TB0226 specific PCI fixups.
8 * Copyright 2002,2003 Yoichi Yuasa
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/init.h>
17 #include <linux/pci.h>
19 #include <asm/vr41xx/tb0226.h>
21 void __init
pcibios_fixup_resources(struct pci_dev
*dev
)
25 void __init
pcibios_fixup(void)
29 void __init
pcibios_fixup_irqs(void)
34 pci_for_each_dev(dev
) {
35 slot
= PCI_SLOT(dev
->devfn
);
40 vr41xx_set_irq_trigger(GD82559_1_PIN
,
43 vr41xx_set_irq_level(GD82559_1_PIN
, LEVEL_LOW
);
44 dev
->irq
= GD82559_1_IRQ
;
47 vr41xx_set_irq_trigger(GD82559_2_PIN
,
50 vr41xx_set_irq_level(GD82559_2_PIN
, LEVEL_LOW
);
51 dev
->irq
= GD82559_2_IRQ
;
54 pci_read_config_byte(dev
, PCI_INTERRUPT_PIN
, &pin
);
57 vr41xx_set_irq_trigger(UPD720100_INTA_PIN
,
60 vr41xx_set_irq_level(UPD720100_INTA_PIN
,
62 dev
->irq
= UPD720100_INTA_IRQ
;
65 vr41xx_set_irq_trigger(UPD720100_INTB_PIN
,
68 vr41xx_set_irq_level(UPD720100_INTB_PIN
,
70 dev
->irq
= UPD720100_INTB_IRQ
;
73 vr41xx_set_irq_trigger(UPD720100_INTC_PIN
,
76 vr41xx_set_irq_level(UPD720100_INTC_PIN
,
78 dev
->irq
= UPD720100_INTC_IRQ
;
84 pci_write_config_byte(dev
, PCI_INTERRUPT_LINE
, dev
->irq
);
88 unsigned int pcibios_assign_all_busses(void)