// SPDX-License-Identifier: GPL-2.01/*2* arch/sh/drivers/pci/ops-titan.c3*4* Ported to new API by Paul Mundt <[email protected]>5*6* Modified from ops-snapgear.c written by David McCullough7* Highly leveraged from pci-bigsur.c, written by Dustin McIntire.8*9* PCI initialization for the Titan boards10*/11#include <linux/kernel.h>12#include <linux/types.h>13#include <linux/init.h>14#include <linux/pci.h>15#include <linux/io.h>16#include <mach/titan.h>17#include "pci-sh4.h"1819static char titan_irq_tab[] = {20TITAN_IRQ_WAN,21TITAN_IRQ_LAN,22TITAN_IRQ_MPCIA,23TITAN_IRQ_MPCIB,24TITAN_IRQ_USB,25};2627int pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin)28{29int irq = titan_irq_tab[slot];3031printk("PCI: Mapping TITAN IRQ for slot %d, pin %c to irq %d\n",32slot, pin - 1 + 'A', irq);3334return irq;35}363738