Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / drivers / pci / host / pcie-iproc.h
1 /*
2  * Copyright (C) 2014-2015 Broadcom Corporation
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation version 2.
7  *
8  * This program is distributed "as is" WITHOUT ANY WARRANTY of any
9  * kind, whether express or implied; without even the implied warranty
10  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  */
13
14 #ifndef _PCIE_IPROC_H
15 #define _PCIE_IPROC_H
16
17 #define IPROC_PCIE_MAX_NUM_IRQS 6
18
19 /**
20  * iProc PCIe device
21  * @dev: pointer to device data structure
22  * @base: PCIe host controller I/O register base
23  * @resources: linked list of all PCI resources
24  * @sysdata: Per PCI controller data
25  * @root_bus: pointer to root bus
26  * @phy: optional PHY device that controls the Serdes
27  * @irqs: interrupt IDs
28  */
29 struct iproc_pcie {
30         struct device *dev;
31         void __iomem *base;
32         struct list_head *resources;
33         struct pci_sys_data sysdata;
34         struct pci_bus *root_bus;
35         struct phy *phy;
36         int irqs[IPROC_PCIE_MAX_NUM_IRQS];
37 };
38
39 int iproc_pcie_setup(struct iproc_pcie *pcie);
40 int iproc_pcie_remove(struct iproc_pcie *pcie);
41
42 #endif /* _PCIE_IPROC_H */