Feed the mess through indent.
[linux-2.6/linux-mips.git] / arch / mips / pci / fixup-tb0229.c
blobfbcb170d31256bc3c0b038bf3a5c9502d57c64ad
1 /*
2 * FILE NAME
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
33 struct pci_dev *dev;
34 u8 slot;
36 pci_for_each_dev(dev) {
37 slot = PCI_SLOT(dev->devfn);
38 dev->irq = 0;
40 switch (slot) {
41 case 12:
42 vr41xx_set_irq_trigger(TB0219_PCI_SLOT1_PIN,
43 TRIGGER_LEVEL,
44 SIGNAL_THROUGH);
45 vr41xx_set_irq_level(TB0219_PCI_SLOT1_PIN,
46 LEVEL_LOW);
47 dev->irq = TB0219_PCI_SLOT1_IRQ;
48 break;
49 case 13:
50 vr41xx_set_irq_trigger(TB0219_PCI_SLOT2_PIN,
51 TRIGGER_LEVEL,
52 SIGNAL_THROUGH);
53 vr41xx_set_irq_level(TB0219_PCI_SLOT2_PIN,
54 LEVEL_LOW);
55 dev->irq = TB0219_PCI_SLOT2_IRQ;
56 break;
57 case 14:
58 vr41xx_set_irq_trigger(TB0219_PCI_SLOT3_PIN,
59 TRIGGER_LEVEL,
60 SIGNAL_THROUGH);
61 vr41xx_set_irq_level(TB0219_PCI_SLOT3_PIN,
62 LEVEL_LOW);
63 dev->irq = TB0219_PCI_SLOT3_IRQ;
64 break;
65 default:
66 break;
69 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq);
71 #endif
74 unsigned int pcibios_assign_all_busses(void)
76 return 0;