1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * fixup-tb0226.c, The TANBAC TB0226 specific PCI fixups.
5 * Copyright (C) 2002-2005 Yoichi Yuasa <yuasa@linux-mips.org>
7 #include <linux/init.h>
10 #include <asm/vr41xx/giu.h>
11 #include <asm/vr41xx/tb0226.h>
13 int pcibios_map_irq(const struct pci_dev
*dev
, u8 slot
, u8 pin
)
19 vr41xx_set_irq_trigger(GD82559_1_PIN
,
22 vr41xx_set_irq_level(GD82559_1_PIN
, IRQ_LEVEL_LOW
);
26 vr41xx_set_irq_trigger(GD82559_2_PIN
,
29 vr41xx_set_irq_level(GD82559_2_PIN
, IRQ_LEVEL_LOW
);
35 vr41xx_set_irq_trigger(UPD720100_INTA_PIN
,
38 vr41xx_set_irq_level(UPD720100_INTA_PIN
,
40 irq
= UPD720100_INTA_IRQ
;
43 vr41xx_set_irq_trigger(UPD720100_INTB_PIN
,
46 vr41xx_set_irq_level(UPD720100_INTB_PIN
,
48 irq
= UPD720100_INTB_IRQ
;
51 vr41xx_set_irq_trigger(UPD720100_INTC_PIN
,
54 vr41xx_set_irq_level(UPD720100_INTC_PIN
,
56 irq
= UPD720100_INTC_IRQ
;
69 /* Do platform specific device initialization at pci_enable_device() time */
70 int pcibios_plat_dev_init(struct pci_dev
*dev
)