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; |
Ralf Baechle | d534194 | 2011-06-10 15:30:21 +0100 | [diff] [blame] | 15 | int (*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); |
Daniel Hellstrom | 26893c1 | 2011-05-23 21:04:47 +0000 | [diff] [blame] | 16 | }; |
| 17 | |
| 18 | extern void leon_pci_init(struct platform_device *ofdev, |
| 19 | struct leon_pci_info *info); |
| 20 | |
| 21 | #endif /* _ASM_LEON_PCI_H_ */ |