Daniel Hellstrom | 26893c1 | 2011-05-23 21:04:47 +0000 | [diff] [blame] | 1 | /* |
| 2 | * asm/leon_pci.h |
| 3 | * |
| 4 | * Copyright (C) 2011 Aeroflex Gaisler AB, Daniel Hellstrom |
| 5 | */ |
| 6 | |
| 7 | #ifndef _ASM_LEON_PCI_H_ |
| 8 | #define _ASM_LEON_PCI_H_ |
| 9 | |
| 10 | /* PCI related definitions */ |
| 11 | struct leon_pci_info { |
| 12 | struct pci_ops *ops; |
| 13 | struct resource io_space; |
| 14 | struct resource mem_space; |
Daniel Hellstrom | aa90b69 | 2013-03-04 00:24:27 +0000 | [diff] [blame] | 15 | struct resource busn; |
Ralf Baechle | d534194 | 2011-06-10 15:30:21 +0100 | [diff] [blame] | 16 | int (*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); |
Daniel Hellstrom | 26893c1 | 2011-05-23 21:04:47 +0000 | [diff] [blame] | 17 | }; |
| 18 | |
Sam Ravnborg | f05a686 | 2014-05-16 23:25:50 +0200 | [diff] [blame] | 19 | void leon_pci_init(struct platform_device *ofdev, |
| 20 | struct leon_pci_info *info); |
Daniel Hellstrom | 26893c1 | 2011-05-23 21:04:47 +0000 | [diff] [blame] | 21 | |
| 22 | #endif /* _ASM_LEON_PCI_H_ */ |