/*1* fixup-wrppmc.c: PPMC board specific PCI fixup2*3* This file is subject to the terms and conditions of the GNU General Public4* License. See the file "COPYING" in the main directory of this archive5* for more details.6*7* Copyright (C) 2006, Wind River Inc. Rongkai.zhan ([email protected])8*/9#include <linux/init.h>10#include <linux/pci.h>11#include <asm/gt64120.h>1213/* PCI interrupt pins */14#define PCI_INTA 115#define PCI_INTB 216#define PCI_INTC 317#define PCI_INTD 41819#define PCI_SLOT_MAXNR 32 /* Each PCI bus has 32 physical slots */2021static char pci_irq_tab[PCI_SLOT_MAXNR][5] __initdata = {22/* 0 INTA INTB INTC INTD */23[0] = {0, 0, 0, 0, 0}, /* Slot 0: GT64120 PCI bridge */24[6] = {0, WRPPMC_PCI_INTA_IRQ, 0, 0, 0},25};2627int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)28{29return pci_irq_tab[slot][pin];30}3132/* Do platform specific device initialization at pci_enable_device() time */33int pcibios_plat_dev_init(struct pci_dev *dev)34{35return 0;36}373839