/*1* fixup-tb0219.c, The TANBAC TB0219 specific PCI fixups.2*3* Copyright (C) 2003 Megasolution Inc. <[email protected]>4* Copyright (C) 2004-2005 Yoichi Yuasa <[email protected]>5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (at your option) any later version.10*11* This program is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19*/20#include <linux/init.h>21#include <linux/pci.h>2223#include <asm/vr41xx/tb0219.h>2425int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)26{27int irq = -1;2829switch (slot) {30case 12:31irq = TB0219_PCI_SLOT1_IRQ;32break;33case 13:34irq = TB0219_PCI_SLOT2_IRQ;35break;36case 14:37irq = TB0219_PCI_SLOT3_IRQ;38break;39default:40break;41}4243return irq;44}4546/* Do platform specific device initialization at pci_enable_device() time */47int pcibios_plat_dev_init(struct pci_dev *dev)48{49return 0;50}515253