Path: blob/master/arch/sh/drivers/pci/fixups-titan.c
10819 views
/*1* arch/sh/drivers/pci/ops-titan.c2*3* Ported to new API by Paul Mundt <[email protected]>4*5* Modified from ops-snapgear.c written by David McCullough6* Highly leveraged from pci-bigsur.c, written by Dustin McIntire.7*8* May be copied or modified under the terms of the GNU General Public9* License. See linux/COPYING for more information.10*11* PCI initialization for the Titan boards12*/13#include <linux/kernel.h>14#include <linux/types.h>15#include <linux/init.h>16#include <linux/pci.h>17#include <linux/io.h>18#include <mach/titan.h>19#include "pci-sh4.h"2021static char titan_irq_tab[] __initdata = {22TITAN_IRQ_WAN,23TITAN_IRQ_LAN,24TITAN_IRQ_MPCIA,25TITAN_IRQ_MPCIB,26TITAN_IRQ_USB,27};2829int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin)30{31int irq = titan_irq_tab[slot];3233printk("PCI: Mapping TITAN IRQ for slot %d, pin %c to irq %d\n",34slot, pin - 1 + 'A', irq);3536return irq;37}383940