Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  *  Copyright (C) 2018 John Crispin <john@phrozen.org>
0004  */
0005 
0006 #include <linux/pci.h>
0007 //#include <linux/of_irq.h>
0008 #include <linux/of_pci.h>
0009 
0010 int pcibios_plat_dev_init(struct pci_dev *dev)
0011 {
0012     return PCIBIOS_SUCCESSFUL;
0013 }
0014 
0015 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
0016 {
0017     return of_irq_parse_and_map_pci(dev, slot, pin);
0018 }