Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * asm/leon_pci.h
0004  *
0005  * Copyright (C) 2011 Aeroflex Gaisler AB, Daniel Hellstrom
0006  */
0007 
0008 #ifndef _ASM_LEON_PCI_H_
0009 #define _ASM_LEON_PCI_H_
0010 
0011 /* PCI related definitions */
0012 struct leon_pci_info {
0013     struct pci_ops *ops;
0014     struct resource io_space;
0015     struct resource mem_space;
0016     struct resource busn;
0017     int (*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin);
0018 };
0019 
0020 void leon_pci_init(struct platform_device *ofdev,
0021            struct leon_pci_info *info);
0022 
0023 #endif /* _ASM_LEON_PCI_H_ */