1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 226893c13SDaniel Hellstrom /* 326893c13SDaniel Hellstrom * asm/leon_pci.h 426893c13SDaniel Hellstrom * 526893c13SDaniel Hellstrom * Copyright (C) 2011 Aeroflex Gaisler AB, Daniel Hellstrom 626893c13SDaniel Hellstrom */ 726893c13SDaniel Hellstrom 826893c13SDaniel Hellstrom #ifndef _ASM_LEON_PCI_H_ 926893c13SDaniel Hellstrom #define _ASM_LEON_PCI_H_ 1026893c13SDaniel Hellstrom 1126893c13SDaniel Hellstrom /* PCI related definitions */ 1226893c13SDaniel Hellstrom struct leon_pci_info { 1326893c13SDaniel Hellstrom struct pci_ops *ops; 1426893c13SDaniel Hellstrom struct resource io_space; 1526893c13SDaniel Hellstrom struct resource mem_space; 16aa90b694SDaniel Hellstrom struct resource busn; 17d5341942SRalf Baechle int (*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); 1826893c13SDaniel Hellstrom }; 1926893c13SDaniel Hellstrom 20f05a6865SSam Ravnborg void leon_pci_init(struct platform_device *ofdev, 2126893c13SDaniel Hellstrom struct leon_pci_info *info); 2226893c13SDaniel Hellstrom 2326893c13SDaniel Hellstrom #endif /* _ASM_LEON_PCI_H_ */ 24