1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * fixup-tb0219.c, The TANBAC TB0219 specific PCI fixups.
5 * Copyright (C) 2003 Megasolution Inc. <matsu@megasolution.jp>
6 * Copyright (C) 2004-2005 Yoichi Yuasa <yuasa@linux-mips.org>
8 #include <linux/init.h>
11 #include <asm/vr41xx/tb0219.h>
13 int pcibios_map_irq(const struct pci_dev
*dev
, u8 slot
, u8 pin
)
19 irq
= TB0219_PCI_SLOT1_IRQ
;
22 irq
= TB0219_PCI_SLOT2_IRQ
;
25 irq
= TB0219_PCI_SLOT3_IRQ
;
34 /* Do platform specific device initialization at pci_enable_device() time */
35 int pcibios_plat_dev_init(struct pci_dev
*dev
)