blob: 049d067ed8bedf4d5cf50aefc86f9740f98884ec [file] [log] [blame]
Daniel Hellstrom26893c12011-05-23 21:04:47 +00001/*
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 */
11struct leon_pci_info {
12 struct pci_ops *ops;
13 struct resource io_space;
14 struct resource mem_space;
Daniel Hellstromaa90b692013-03-04 00:24:27 +000015 struct resource busn;
Ralf Baechled5341942011-06-10 15:30:21 +010016 int (*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin);
Daniel Hellstrom26893c12011-05-23 21:04:47 +000017};
18
Sam Ravnborgf05a6862014-05-16 23:25:50 +020019void leon_pci_init(struct platform_device *ofdev,
20 struct leon_pci_info *info);
Daniel Hellstrom26893c12011-05-23 21:04:47 +000021
22#endif /* _ASM_LEON_PCI_H_ */